Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Dear Forum,
if i am running ungrib.exe using ./ungrib.exe there is no error. but if i am using script to run ungrib.exe the following error appears.
error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

i tried to install libpng12.so.0 but it says it is already there.
 
Hello.
Maybe you don't have the dir. that contains the library and bin files in the LD_LIBRARY_PATH or LIBRARY_PATH env. variables.

is the libpng12.so.0 file is in /usr/lib then the output of: echo ${LD_LIBRARY_PATH} should have /usr/lib in the output
 
Please add the path to libpng in your script, then try again. I am not sure whether this works or not, please keep me updated about the result. Thanks in advance.
 
Top