[Slackbuilds-users] How to manage libs in a non default lib dir ?

nico slack at lodpp.net
Sat Apr 7 14:26:09 UTC 2018

Hello !

Bit of context first:
I try to create a slackbuild script for dublin-traceroute ( 
https://github.com/insomniacslk/dublin-traceroute ) which depends on 
libtins ( https://github.com/mfontanini/libtins )

The cmake-template for slackbuilds is doing a good job - and I got the 
package libtins/dublin-traceroute building and installing fine

I cannot start dublin-traceroute

:~ $ dublin-traceroute
dublin-traceroute: error while loading shared libraries: 
libdublintraceroute.so.0.1.1: cannot open shared object file: No such 
file or directory

ldd is pointing in the right direction... lib are not found (for both 
:~ $ ldd /usr/local/bin/dublin-traceroute
     linux-vdso.so.1 (0x00007ffc474ff000)
     libdublintraceroute.so.0.1.1 => not found <<<<<<<<<<<<<<<<<<<<<
     libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc60c887000)
     libtins.so.4.0 => not found <<<<<<<<<<<<<<<<<<<<<
     libpcap.so.1 => /usr/lib64/libpcap.so.1 (0x00007fc60c637000)
     libssl.so.1 => /lib64/libssl.so.1 (0x00007fc60c3c4000)
     libcrypto.so.1 => /lib64/libcrypto.so.1 (0x00007fc60bf65000)
     libjsoncpp.so.11 => /usr/lib64/libjsoncpp.so.11 (0x00007fc60bd30000)
     libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fc60b9b1000)
     libm.so.6 => /lib64/libm.so.6 (0x00007fc60b616000)
     libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fc60b3ff000)
     libc.so.6 => /lib64/libc.so.6 (0x00007fc60b015000)
     /lib64/ld-linux-x86-64.so.2 (0x00007fc60caa6000)
     libnl-genl-3.so.200 => /usr/lib64/libnl-genl-3.so.200 
     libnl-3.so.200 => /usr/lib64/libnl-3.so.200 (0x00007fc60abef000)
     libdbus-1.so.3 => /usr/lib64/libdbus-1.so.3 (0x00007fc60a99e000)
     libdl.so.2 => /lib64/libdl.so.2 (0x00007fc60a79a000)

but they do exist in /usr/local/lib:
:~ $ ls -lastr /usr/local/lib | egrep "dublin|tins"
10212 -rwxr-xr-x  1 root root 10456832 Apr  7 13:52 libtins.so.4.0*
     0 lrwxrwxrwx  1 root root       14 Apr  7 13:53 libtins.so -> 
     0 lrwxrwxrwx  1 root root       28 Apr  7 14:12 
libdublintraceroute.so -> libdublintraceroute.so.0.1.1*
   612 -rwxr-xr-x  1 root root   623688 Apr  7 14:16 

 From googling, main issue would be lib are looked in those pathes and 
obviously /usr/local/lib is not one of them :
  # cat /etc/ld.so.conf

I could copy libs to a proper directory, makes symlinks or edit 
/etc/ld.so.conf .....

As I want to submit those slackbuilds once finished to slackbuilds.org, 
what could be an acceptable solution to fix the lib issues ?

Best regards,


More information about the SlackBuilds-users mailing list