Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: doof on December 22, 2016, 04:15:05 AM



Title: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: doof on December 22, 2016, 04:15:05 AM
I recently upgraded my Ubnutu 14 desktop to 16.04 LTS.

When I attempt to start bitcoind from terminal, I get this error

xx@xx:~$ bitcoind
bitcoind: error while loading shared libraries: libboost_program_options.so.1.54.0: cannot open shared object file: No such file or directory

Thinks I've tried:
Removing the bitcoind package and the lib boost package
Adding them back
apt-get updates

Some are saying on other forums its a symbolic link problem, but haven't been abled to solve it.  We are down one node because of this error :(


Title: Re: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: BigBoom3599 on December 22, 2016, 10:48:09 AM
Looks like you're missing the boost library you need to run bitcoind, try this:
Code:
sudo apt-get install libboost-all-dev


Title: Re: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: doof on December 22, 2016, 09:11:25 PM
Thanks for the suggestion, tried that one already

Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libboost-all-dev is already the newest version (1.58.0.1ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
doof@SubZero:~$

Also tried
Code:
sudo apt-get install libboost-program-options1.54.0 libboost-program-options1.54-dev


Title: Re: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: doof on December 22, 2016, 09:20:49 PM
Also tried

Code:
sudo apt-get purge bitcoind
sudo apt-get autoremove

Could it be a bad symbolic link or something?


Title: Re: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: doof on December 22, 2016, 09:36:29 PM
Ok, creating a symbolic link fixed that problem.

Code:
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.54.0

Now I have this:

Code:
bitcoind: symbol lookup error: bitcoind: undefined symbol: _ZN5boost15program_options11to_internalERKSs


Title: Re: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: professor9 on September 02, 2017, 10:06:07 AM
i have managed to fight this **** through:
first of all install Ubuntu 14.04

apt-get update
sudo apt-get install libboost1.54-all-dev
sudo apt-get install libdb-dev libdb++-dev
sudo apt-get install libminiupnpc-dev

only this way, no symbolic link and other...


Title: Re: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: gallery2000 on September 23, 2017, 06:20:26 AM
i have managed to fight this **** through:
first of all install Ubuntu 14.04

apt-get update
sudo apt-get install libboost1.54-all-dev
sudo apt-get install libdb-dev libdb++-dev
sudo apt-get install libminiupnpc-dev

only this way, no symbolic link and other...

libboost1.54 is for Ubuntu 14.04 and Ubuntu 16 does not compile with it.  You have to install these dependencies again


Title: Re: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: VegaAISolutions on September 23, 2017, 06:28:47 AM
the most efficient way to solve a dependency problem like this is to just containerized the application inside of an operating system that has the relevant libraries, even if you use a minimal install you can apply the libraries via volumes and other neat Docker tricks. though it's worth noting that docker isn't the only container system in the world.


Title: Re: libboost_program_options.so.1.54.0: cannot open shared object file
Post by: alforro on March 29, 2018, 10:23:16 PM
Ok, creating a symbolic link fixed that problem.

Code:
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.54.0

Now I have this:

Code:
bitcoind: symbol lookup error: bitcoind: undefined symbol: _ZN5boost15program_options11to_internalERKSs

I get the same error with Ubuntu 16.04

Code:
undefined symbol: _ZN5boost15program_options11to_internalERKSs

I will post the solution if when I find it