Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library not in default location, and not linked correctly / at all #4

Open
Pysis868 opened this issue Nov 9, 2022 · 0 comments
Open

Comments

@Pysis868
Copy link

Pysis868 commented Nov 9, 2022

⋊> convert "$file" "$file.png"
convert: error while loading shared libraries: libfpx.so.1: cannot open shared object file: No such file or directory

⋊> cat /etc/ld.so.conf.d/libfpx-i686.conf
/usr/local/lib

⋊> sudo ldconfig
ldconfig: /usr/local/lib/libfpx.so.1 is not a symbolic link

# The problem
⋊> cd /usr/local/lib/
⋊> ls -lh libfpx.*
-rw-r--r--. 1 root root 7.9M Nov  8 22:22 libfpx.a
-rwxr-xr-x. 1 root root  911 Nov  8 22:22 libfpx.la*
-rwxr-xr-x. 1 root root 3.7M Nov  8 22:22 libfpx.so*
-rwxr-xr-x. 1 root root 3.7M Nov  8 22:22 libfpx.so.1*
-rwxr-xr-x. 1 root root 3.7M Nov  8 22:22 libfpx.so.1.0.31*

# A positive example
⋊> pushd /usr/lib64/
⋊> ls -lh libcrypt.*
lrwxrwxrwx. 1 root root   17 Feb  1  2022 libcrypt.so -> libcrypt.so.2.0.0*
lrwxrwxrwx. 1 root root   17 Feb  1  2022 libcrypt.so.1 -> libcrypt.so.1.1.0*
-rwxr-xr-x. 1 root root 198K Feb  1  2022 libcrypt.so.1.1.0*
lrwxrwxrwx. 1 root root   17 Feb  1  2022 libcrypt.so.2 -> libcrypt.so.2.0.0*
-rwxr-xr-x. 1 root root 198K Feb  1  2022 libcrypt.so.2.0.0*

⋊> magick -version
Version: ImageMagick 7.1.0-53 beta Q16-HDRI x86_64 04ee6cec5:20221106 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): bzlib djvu fontconfig fpx freetype gvc heic jbig jng jp2 jpeg lcms lqr lzma openexr pangocairo png raqm raw tiff webp x xml zip zlib
Compiler: gcc (12.2)

⋊> neofetch OS Kernel
OS: Fedora release 36 (Thirty Six) x86_64
Kernel: 6.0.5-200.fc36.x86_64

Is this the intended location using compilation defaults for both projects?
https://stackoverflow.com/questions/17889799/libraries-in-usr-local-lib-not-found =/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant