LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-06-2011, 01:49 PM   #1
mahdi109
LQ Newbie
 
Registered: Oct 2011
Posts: 17

Rep: Reputation: Disabled
problem with Mich2 installing


i am trying install MPICH2 in SLES (SUSE Linux Enterprise Server 10 sp2).
now i have this error...

linux-k10z:~ # mpd &
[1] 20593
linux-k10z:~ # bash: mpd: command not found

[1]+ Exit 127 mpd
linux-k10z:~ #



what should i do?
 
Old 11-06-2011, 01:53 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

I am very confused; You state you are trying to install mpich2, yet you are running mpd? What are you trying to accomplish?

Cheers,

Josh
 
Old 11-06-2011, 01:57 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
mpd is part of MPI implementations (such as MPICH); you need to run it before running MPI based programs (as otherwise, they'll just run in serial).

As far as the error is concerned, how did you install MPICH2 (i.e. from SLES packages or from source, if that is available)? Did the installation complete without problems? If so, it looks like the directory containing mpd isn't in your PATH.

Last edited by Nylex; 11-06-2011 at 01:59 PM.
 
Old 11-06-2011, 02:06 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by Nylex View Post
mpd is part of MPI implementations (such as MPICH); you need to run it before running MPI based programs (as otherwise, they'll just run in serial).

As far as the error is concerned, how did you install MPICH2 (i.e. from SLES packages or from source, if that is available)? Did the installation complete without problems? If so, it looks like the directory containing mpd isn't in your PATH.
Ahh ok, I see what he means now. You pretty much nailed that one....
 
Old 11-07-2011, 02:26 AM   #5
mahdi109
LQ Newbie
 
Registered: Oct 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
thanks
i use source package (mpich2-1.4.1p1.tar.gz). i install it in the root.

# cd mpich2-1.4.1
# ./configure --prefix=/usr/local/mpich2 CC=icc CXX=icpc F77=ifort FC=ifort
# make all install

installation completed without problem. and then :

i found MPICH2 installation Guide in internet, that say to do this:
Add the MPICH2 binary directory to the system path. To add the directory to all users' PATH variables, add the following line to the /etc/profile file.
This requires root permissions and must be included prior to the "export PATH" line.
PATH=/usr/local/mpich2/bin:$PATH

i opened /ect/profile by this command:
# gedit /ect/profile
but i didn`t find right place to add " PATH=/usr/local/mpich2/bin:$PATH "
so i continue and:

# echo "secretword=TheSecretWordFoo" > /etc/mpd.conf
# chmod 600 /etc/mpd.conf

this is all i do...
 
Old 11-07-2011, 02:34 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Does your /etc/profile already contain a line to set the PATH variable? If so, just add the directory to the end of it. If not, you can add the line anywhere, though you'll need the line "export PATH" somewhere after it. If you're unsure, post your /etc/profile.
 
Old 11-07-2011, 02:51 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
You can create a script /etc/profile.d/mpich2.sh with this line inside:
Code:
export PATH=/usr/local/mpich2/bin:$PATH
The script will be automatically sourced at each login and the code providing this functionality is inside /etc/profile.
 
Old 11-08-2011, 02:39 AM   #8
mahdi109
LQ Newbie
 
Registered: Oct 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Nylex View Post
Does your /etc/profile already contain a line to set the PATH variable? If so, just add the directory to the end of it. If not, you can add the line anywhere, though you'll need the line "export PATH" somewhere after it. If you're unsure, post your /etc/profile.


this is my /ect/profile

where should i add that line?
Attached Files
File Type: txt profile.txt (7.9 KB, 21 views)

Last edited by mahdi109; 11-08-2011 at 02:41 AM.
 
Old 11-08-2011, 02:42 AM   #9
mahdi109
LQ Newbie
 
Registered: Oct 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colucix View Post
You can create a script /etc/profile.d/mpich2.sh with this line inside:
Code:
export PATH=/usr/local/mpich2/bin:$PATH
The script will be automatically sourced at each login and the code providing this functionality is inside /etc/profile.


i do that, it dosent work.
 
Old 11-08-2011, 03:16 AM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by mahdi109 View Post
i do that, it dosent work.
Strange. These are the relevant statements in your /etc/profile:
Code:
#
# Source profile extensions for certain packages
#
if test -d /etc/profile.d -a -z "$PROFILEREAD" ; then
    for s in /etc/profile.d/*.sh ; do
        test -r $s && . $s
    done
    unset s
fi
This means you can put a file with extension .sh into /etc/profile.d and give it read permissions to all users, then the file will be sourced. Please, post the output of the following commands:
Code:
ls -l /etc/profile.d/mpich2.sh
cat /etc/profile.d/mpich2.sh
 
Old 11-08-2011, 03:32 AM   #11
mahdi109
LQ Newbie
 
Registered: Oct 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colucix View Post
Strange. These are the relevant statements in your /etc/profile:
Code:
#
# Source profile extensions for certain packages
#
if test -d /etc/profile.d -a -z "$PROFILEREAD" ; then
    for s in /etc/profile.d/*.sh ; do
        test -r $s && . $s
    done
    unset s
fi
This means you can put a file with extension .sh into /etc/profile.d and give it read permissions to all users, then the file will be sourced. Please, post the output of the following commands:
Code:
ls -l /etc/profile.d/mpich2.sh
cat /etc/profile.d/mpich2.sh

thanks
i make a file mpich2.sh in /etc/profile.d folder and Add export PATH=/usr/local/mpich2/bin:$PATH in it and then i do source /etc/profile.d/mpich2.sh but it dosent solve my problem.

this is the output:


linux-k10z:~ # ls -l /etc/profile.d/mpich2.sh
-rw-r--r-- 1 root root 40 Nov 8 02:38 /etc/profile.d/mpich2.sh
linux-k10z:~ # cat /etc/profile.d/mpich2.sh
export PATH=/usr/local/mpich2/bin:$PATH
linux-k10z:~ #

Last edited by mahdi109; 11-08-2011 at 05:06 AM.
 
Old 11-08-2011, 05:12 AM   #12
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Ok, sorry. I was focused on the export PATH problem. Actually the mpd daemon is not installed by default, unless you specify it during the configure process. This is due to the fact you can still run your MPI jobs using mpiexec, but if you want mpd you can add the following option to the ./configure command line:
Code:
--with-pm=mpi
or
Code:
--with-pm=hydra:mpd:gforker
to build all the three process managers, as suggested in the ./configure --help documentation.
 
1 members found this post helpful.
Old 11-08-2011, 11:59 AM   #13
mahdi109
LQ Newbie
 
Registered: Oct 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colucix View Post
Ok, sorry. I was focused on the export PATH problem. Actually the mpd daemon is not installed by default, unless you specify it during the configure process. This is due to the fact you can still run your MPI jobs using mpiexec, but if you want mpd you can add the following option to the ./configure command line:
Code:
--with-pm=mpi
or
Code:
--with-pm=hydra:mpd:gforker
to build all the three process managers, as suggested in the ./configure --help documentation.

finaly, i dont understand what to do?
dose mpiexec work?
 
Old 11-08-2011, 01:43 PM   #14
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by mahdi109 View Post
finaly, i dont understand what to do?
dose mpiexec work?
If you want to run the mpd daemon you need to re-compile from mpich2-1.4.1p1.tar.gz adding the option suggested above. If you want to use mpd as the runtime environment, you need to start it before submitting your job with mpiexec or mpirun. For details, take a look at the mpich2 documentation, here.
 
Old 11-09-2011, 02:05 AM   #15
mahdi109
LQ Newbie
 
Registered: Oct 2011
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colucix View Post
If you want to run the mpd daemon you need to re-compile from mpich2-1.4.1p1.tar.gz adding the option suggested above. If you want to use mpd as the runtime environment, you need to start it before submitting your job with mpiexec or mpirun. For details, take a look at the mpich2 documentation, here.

when i want run "mpiexec", this error appear:

Last edited by mahdi109; 11-09-2011 at 02:07 AM.
 
  


Reply



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
installing problem xp after installing linux paruhang Linux - Newbie 2 10-20-2011 02:38 PM
Installing Slackware on virtual box Problem, ext4 problem alfa_80 Linux - Newbie 14 01-16-2011 12:00 PM
Installing Simplescalar: Problem installing simpleutils yy_current_buffer’ undeclared niteshg Linux - Software 1 07-03-2009 04:09 PM
Problem Installing Limewire - Received Errors While Installing taurusx5 Linux - Software 2 08-05-2008 02:39 AM
Installing Red5 - Problem @ Installing fedora-rpmdevtools Aziz Linux - Software 2 11-04-2006 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration