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

(RESOLVED) ./ungrib.exe: Error while loading shared libraries

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

Hossan

New member
Hello,
I am trying to give a demo run by following same instruction as mentioned here: http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php
WPS and WRF V4 setup was successful as I have performed all the compatibility tests successfully as mentioned in the tutorial.

But when I tried to implement ./ungrib.exe, the following error occurred
./ungrib.exe: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Could you please help me ? How to create libpng12.so.0?

Thanks
 

Attachments

  • Screenshot from 2019-10-23 11-26-03.png
    Screenshot from 2019-10-23 11-26-03.png
    211.6 KB · Views: 3,351
  • namelist.wps
    1.3 KB · Views: 102
  • Like
Reactions: A R
I think you may need to add the directory containing the 'libpng12.so.0' file to your LD_LIBRARY_PATH environment variable.

Assuming that the file $DIR/grib2/lib/libpng12.so.0 exists, you could try:

export LD_LIBRARY_PATH=$DIR/grib2/lib:$LD_LIBRARY_PATH
 
Top