Originally Posted by nebula
I've installed pgplot5.2 using gfortran. When I run the python script, which use pgplot libraries, I receive the following error:
ImportError: /home/science_tools/pgplot5.2/libpgplot.so: undefined symbol: _gfortran_st_close
If you google for that error message, you'll see a bunch of links to pages that all seem to involve some sort of compile error that causes the linker to fail. Have you tried any sample FORTRAN or C programs from the PGplot web site to verify that the library has been built correctly? (Maybe there's even a "make test" step that you can run.)
Also, I understand that there is supposed to be a Python module, Ppgplot, that lets you use the pgplot library. Are you using that? I'm wondering if the cause of the error you're seeing is that you're not
using that module.
(Caveat: I'm not an expert Python programmer by the stretch of anyone's imagination. I'm just throwing out the simple troubleshooting ideas that I'd be trying.)