I'm currently playing around with my uni's computing cluster, it uses centOS, I was trying to compile and run a mpi (parallel programming library) code, and found 2 problems:
1. I can't just compile with mpicc, I need to run it from the absolute directory, what do I need to do to add it to my environment variable or something such that I can just use the mpicc bash command?
2. The library file could not be linked either, anyways to link the include path as well?
-
Code:
sudo make install
-
-
ALLurGroceries Vegan Vermin Super Moderator
I think you want to add to your PATH, either in .bashrc or .bash_profile:
Code:PATH=$PATH:/path/to/mpicc
-
what allurgoreries said, or you can make a link to existing executable and place that link to already known path ... e.g.
echo $PATH
(this will show you your different PATHs that are already included and searched if you type command in the shell, so if you add new one, you should see it too - also i'm sure, you see there the " /usr/local/bin" PATH so ...
cd /usr/local/bin
ln -s /path/to/executable anyname
start shell, type 'anyname' ... that's it
the /usr/local/bin path is always known and searched - i use it for my custom scripts, or links, usually easier, than add new path to my profile ... -
The library should be in a directory included in $LD_LIBRARY_PATH.
centOS path issues
Discussion in 'Linux Compatibility and Software' started by fzhfzh, Aug 9, 2010.