Skip to content

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

@Pysis868

Description

@Pysis868
⋊> 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 =/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions