I installed mpichkit on my scyld system,(i386 Scyld running on Opterons with pg6.1)then made the mpihello.f program compiled and ran, but I get this error… Anyideas what may be wrong?
[root@scyld mpichkit]# /usr/pgi/linux86/6.1/bin/mpirun -np 4 ./mpihello
Trying krb4 rcp…
trying normal rcp (/usr/bin/rcp)
master: Connection refused
/root/mpichkit/./mpihello: error while loading shared libraries: libpgc.so: cannot open shared object file: No such file or directory
/bin/rm: [root@scyld mpichkit]#
Hi Joey,
You need to set your environment variable LD_LIBRARY_PATH to the location of the PGI installation library directory. Add the following to your default environment, i.e. “.cshrc”, “.bashrc”, etc.:
For csh: setenv LD_LIBRARY_PATH /usr/pgi/linux86/6.1/lib
For bash: export LD_LIBRARY_PATH=/usr/pgi/linux86/6.1/lib
Hope this helps,
Mat
PGI=/usr/pgi; export PGI
MANPATH=$MANPATH:$PGI/linux86/6.1/man
export MANPATH
LM_LICENSE_FILE=$PGI/license.dat
export LM_LICENSE_FILE
PATH=$PGI/linux86/6.1/bin:$PATH
export PATH
NCARG_ROOT=/usr/local/ncarg
export NCARG_ROOT
PATH=/usr/local/ncarg/bin:$PATH
export PATH
LD_LIBRARY_PATH=/usr/pgi/linux86/6.1/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
My fault, try “/usr/pgi/linux86/6.1/libso” instead.
Thanks,
Mat