Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ldconfig seems no functional under alpine 3.3

I'm currently install the goczmq (https://github.com/zeromq/goczmq) on golang:1.6.2-alpine docker container, as following:

wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.10.tar.gz
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.10.tar.gz.sig
wget https://download.libsodium.org/jedi.gpg.asc
gpg --import jedi.gpg.asc
gpg --verify libsodium-1.0.10.tar.gz.sig libsodium-1.0.10.tar.gz
tar zxvf libsodium-1.0.10.tar.gz
cd libsodium-1.010.
./configure; make check
sudo make install
sudo ldconfig

The process failed on ldconfig, there seems be a command ldconfig, but I don't think it is actually functional. Any insights? Thank you in advance.

like image 377
perigee Avatar asked May 02 '16 20:05

perigee


1 Answers

Alpine's version of ldconfig requires you to specify the target folder or library as an argument. Note that alpine has no /etc/ld.so.conf file, nor does it recognize one if you create it.

Example with no target path:

$ docker run -ti alpine sh -c "ldconfig; echo \$?"
1

Example with target path:

$ docker run -ti alpine sh -c "ldconfig /; echo \$?"
0

However, even with that there are frequently linking errors. Others suggest:

  • Manual symbolic links
  • Installing glibc into your container.
like image 135
Ben Walther Avatar answered Sep 21 '22 10:09

Ben Walther