Issue with `libz.so.1` when running PhantomJS
0
votes
0
answers
94
views
After extracting the file contents from the
phantomjs
archive, I ran the command phantomjs
and was met with the error:
phantomjs: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
I have searched online for solutions, but the problem still persists. I have updated the dynamic linker cache with ldconfig
. I have updated the library path with:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libz.so.1:$LD_LIBRARY_PATH
I have even deleted the symbolic link /usr/lib/x86_64-linux-gnu/libz.so.1
and recreated it pointing to /usr/lib/x86_64-linux-gnu/libz.so.1.3
. Also, the latest version of zlib1g-dev
is already installed (1:1.3.dfsg-3+b1).
If the solutions above did not resolve the issue, then what other solution could there be?
Asked by user362339
Feb 7, 2024, 06:20 PM