1

Just tried to uninstall bitcoind and install bitcoin-qt but now it says

error while loading shared libraries : libminiupnpc.so.16 cannot open shared object file : no such file or directory

pacman -Fs libminiupnpc.so.16 returns nothing

Any idea how to fix ?

0

Are you sure you have your system up to date? That really looks like a lack of pacman -Syu. Next is the digression of how you can reach this conclusion:

Assuming that bitcoin-qt is installed and the system is up to date:

pacman -Syu
pacman -S bitcoin-qt

(Necessarily in that order)

We can check from where it is linking with libminiupnpc.so.16 with:

$ strace bitcoin-qt 2>&1 | grep miniupnpc
open("/usr/lib/libminiupnpc.so.16", O_RDONLY|O_CLOEXEC) = 3

That looks promising, now we check for that file:

# pacman -Qo /usr/lib/libminiupnpc.so.16
/usr/lib/libminiupnpc.so.16 is owned by miniupnpc 2.0-1

Good, that is part of the UPnP client. Now let's see if there are dependency problems with pacman and bitcoin-qt:

# pacman -Qi bitcoin-qt
Name            : bitcoin-qt
Version         : 0.12.1-2
Description     : Bitcoin is a peer-to-peer network based digital currency - Qt
Architecture    : x86_64
URL             : http://www.bitcoin.org/
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : boost-libs  desktop-file-utils  libevent  qt5-base  miniupnpc  qrencode  protobuf
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 9.17 MiB
Packager        : Timothy Redaelli <EMAIL>
Build Date      : Thu 30 Jun 2016 14:49:30 BST
Install Date    : Sat 06 Aug 2016 21:02:27 BST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Not really, bitcoin-qt is dependent on miniupnpc alright. Therefore, unless you mess with the files themselves (or perform pacman -S without performing pacman -Syu) you should never reach the state your machine currently is in.

For the problem at hand, you should reinstall both packages (pacman will reinstall them happily), with:

pacman -Syu  # always! always do this!
pacman -S community/miniupnpc
pacman -S community/bitcoin-qt

And the library should be in place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.