LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
command not found error


Hi,

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

works?

Thanks,

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

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


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

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

It worked!

NG
 
  


Reply


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


All times are GMT -5. The time now is 04:49 PM.

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