When I execute, I get libpgc.so: cannot open shared object file?
The 4.0-x linux releases feature a shared libpgc.so along with libpgthread.so. Before, the libraries libpgc.a and libpgthread.a were used, and they are still available. The default link will use a shared libpgc and libpghtread, so that users can build one executable for several versions of linux. If a user builds his application using, for example, pgcc, on a Red Hat 6.2 system, normally this will only run on a Red Hat 6.2 system. Using gcc, however, the executable created should run on any linux system Red Hat 7.1 as well, because the libc.so is shared and the version running on Red Hat 7.1 will be the libc.so that works on that release. We have done the same thing with libpgc.so and libpgthread.so. If you wish to execute code built on your (for example) Red Hat 7.2 system, on another Red Hat 7.2 system, simply copy libpgc.so and libpgthread.so from $PGI/linux86/lib or $PGI/linux86/liblf to the target system, and add the directory you placed it in to the LD_LIBRARY_PATH path environme
Related Questions
- Why do I get the error message "ERROR while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory" when I try to start Gridgen on my OpenSuse machine?
- Without adding an object to the guimap file, can we execute the script on a particular object??
- When I execute, I get libpgc.so: cannot open shared object file?