Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-05-2005, 09:59 PM   #1
LQ Newbie
Registered: Jun 2005
Posts: 12

Rep: Reputation: 0
command not found error


I installed mpi(mpich-1.2.7) on my linux cluster. Its working only if i execute the programs like..
$./usr/local/mpich-1.2.7/bin/mpiCC -o filename filename.cpp
$./usr/local/mpich-1.2.7/bin/mpirun -np 5 filename

the commands mpicc, mpiCC and mpirun has to be given with the entire path! is there anyway of specifying the path from where it has to take the command ? so that just

$mpirun -np 5 filename



Old 07-05-2005, 10:13 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Edit ~/.bashrc (and/or ~/.bash_profile) and add a line
export PATH=${PATH}:/usr/local/mpich-1.2.7/bin

Old 07-06-2005, 12:26 PM   #3
LQ Newbie
Registered: Jun 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks a lot!!!

It worked!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
command not found error lordshipmayhem Linux - Newbie 4 06-28-2005 09:15 PM
c++ command not found error... ? Cheka Linux - Newbie 2 01-29-2005 03:43 PM
command not found error message dcarlis Linux - Newbie 3 10-21-2004 07:30 PM
rpm error-> patch: command not found Bosnja Linux - Software 5 01-30-2004 12:59 PM
bash: command not found error ksgill Linux - Newbie 10 07-01-2003 03:47 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration