Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I execute, I get libpgc.so: cannot open shared object file?

execute file object Shared
0
Posted

When I execute, I get libpgc.so: cannot open shared object file?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123