6
I compiled Bitcoin Core on one Raspberry Pi from source after installing all the necessary dependencies including all the libboost's and BerkeleyDB. That application runs fine, and bitcoind lives happily in /usr/local/bin
So I tried copying bitcoind and the other Bitcoin executables from that directory to a brand new Raspberry Pi running a brand new clean operating system, and the applications wouldn't run. I got errors until I installed libboost and BerkeleyDB and all the other dependencies on that second computer as well.
I thought the compiling process made a stand-alone executable program? Why did the compiled binary still require these shared libraries?
Like, executables are available to download from bitcoin.org that are truly stand-alone. How can I compile from source an executable as stand-alone as these?
Executables can still require libraries to be available. It is possible to compile (or actually link) those libraries into the executable itself so the executable becomes truly stand alone. This is called a statically linked binary. On phone atm, can't look up details. – Jannes – 2016-06-04T00:23:23.360