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

Fedora 34: src/jp2a: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such file or directory #8

Closed
nasseef20 opened this issue Jul 5, 2021 · 2 comments

Comments

@nasseef20
Copy link

Fedora 34 does not have the jp2a package in their repo. So I built the package using instructions from the README.md
All the dependencies were met in my system.

autoreconf -vi
./configure --with-jpeg-prefix=/usr/local \
           --with-curl-config=`which curl-config`
make -j

went fine with no errors.

However, after a make -j install, whenever I try to use jp2a, the error jp2a: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such file or directory shows up.

So I uninstalled jp2a using make -j uninstall, then used

autoreconf -vi
./configure --with-jpeg-include=PATH --with-jpeg-lib=PATH\
            --with-curl-config=`which curl-config`
make -j

and tried a make check. No errors came up.

To test whether it works, ran src/jp2a with an image, the same error shows up.

@Talinx
Copy link
Owner

Talinx commented Jul 5, 2021

Which libjpeg do you want to use? One from the Fedora packages or one that you installed manually?
In case you installed libjpeg manually, what is the output of ls /usr/local/lib? There should be a file called libjpeg.so.9. You may need to run sudo ldconfig /usr/local/lib so that it can be found.
In case that it still doesn't work I'd be interested in the output of sudo ldconfig /usr/local/lib -v 2> /dev/null | grep libjpeg.

@nasseef20
Copy link
Author

sudo ldconfig /usr/local/lib fixed this problem for me. Thanks a lot for taking the time to help me through this problem

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

No branches or pull requests

2 participants