I am running Yellow Dog Linux release 6.2(Pyxis) on my PS3. I would like to compile and run C programs that utilize OpenMP for parallel programming. Unfortunately, I have not been very successful.
I am able to compile programs containing OpenMP statements error free, but when I attempt to execute the binaries I receive the following error:
./file: error while loading shared libraries: libgomp.so.1: cannot open shared object file: No such file or directory
Compiling programs without OpenMP statements works fine.
Because it has to do something with missing libraries, I am not sure if knowing the executable search paths may help in diagnosis, but when echoing the path environment variable:
As a possible point-of-interest, after rooting through various directories, I found "libgomp.so" under the path "/usr/lib/gcc/ppc64-yellowdog-linux/4.1.2/", but no "libgomp.so.1".
The version of GCC on this machine, 4.1.2 20080704 (Red Hat 4.1.2-44), is identical to the ones I have on two other machines (CentOS release 5.3 (Final) and CentOS release 5.4 (Final)) and they both compile and execute OpenMP code flawlessly.
I have tried building and installing another version of GCC that would possibly include the OpenMP libraries, since, according to some sources, GCC has only supported OpenMP since version 4.2. But I have not been successful with that either (that problem would make a good second thread.)
I would greatly appreciate any tips or pointing in the right direction.