/usr/lib and /usr/lib4
Posted: 25. Nov 2015, 11:07
When I started using Salix (64-bit), I realized the default library directory is /usr/lib64 instead of /usr/lib, so I had to change the installation scripts for my own libraries accordingly. However, the /usr/lib directory does exists, and even some SBo packages assume the dependencies they need installed should be there. For example, the maxima SBo installation script looks for sbcl in /usr/lib and since it doesn't find it there, installation fails. A simple symbolic link of /usr/lib64/sbcl to /usr/lib/sbcl solves the problem in this particular case. This is clearly a SBo issue, and has nothing to do with Salix itself. However, it made me finally ask about, just to clarify things:.
(1) I assume /usr/lib is for 32-bit libraries. Using file on the libraries installed in /usr/lib verifies that, for example:Am I correct? And, if /usr/lib is for 32-bit libraries, and since both maxima and its dependency sbcl are both installed in /usr/lib64, why the maxima installation script assumes sbcl is in /usr/lib? Just a badly-maintained SBo package, or I am missing something here?
(2) Is it safe to symlink /usr/lib64/foo to /usr/lib/foo as a workaround, to make a given SBo package "foo" being installed and working? I am asking because blindly messing up with library directories is not the safest thing in the world (I had issues with that in the past on Debian, albeit rather minor issues).
(1) I assume /usr/lib is for 32-bit libraries. Using file on the libraries installed in /usr/lib verifies that, for example:
Code: Select all
pap[~]$ file /usr/lib/dri/fglrx_dri.so
/usr/lib/dri/fglrx_dri.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
(2) Is it safe to symlink /usr/lib64/foo to /usr/lib/foo as a workaround, to make a given SBo package "foo" being installed and working? I am asking because blindly messing up with library directories is not the safest thing in the world (I had issues with that in the past on Debian, albeit rather minor issues).