Error message loading library

I am new to linux and pgi. Have FC 4 and pgi wk statation 6.0. Having problem while comiling terrain.deck file. Recieving error message
“src/rdnml : error while loading shared libraries :/usr/pgi/linux86/6.0/lib/libpgc.so can not restore segment prot after reloc : permision denied”
Similar message is recieved while running NCAR graphics examples. Please help.

Hi neeraj,

You need to set your LD_LIBRARY_PATH environment variable to the location of the PGI shared libraries.

For example:

export LD_LIBRARY_PATH=/usr/pgi/linux86/6.0/lib

or in csh

setenv LD_LIBRARY_PATH /usr/pgi/linux86/6.0/lib

Hope this helps,
Mat

Thanks mkcolg for help, infact I have already set the env as advised by you but the error still persisting

That sounds like an SElinux problem. Either disable SElinux all together, or try changing just the shared library files:

chcon -t texrel_shlib_t /usr/pgi/linux86/6.0/lib/*.so