LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2010, 04:10 PM   #1
parisahb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
mpif90 missed


i'v installed openmpi-1.4.3,now i want to compile a simlpe fortran program written with mpi by mpif90,but the error is "command not found"
 
Old 10-18-2010, 05:20 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,741

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
When you do :
cd openmpi-1.4.3/ && ./configure && make && su -c make install

.. you will get : /usr/local/bin/mpif90

So how did you install openmpi on Debian ?
Please also respond to your other thread from today about opemmpi.
..
 
Old 10-18-2010, 05:47 PM   #3
parisahb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy mpif90 missed

i've done this for install openmpi:
tar -xvjf openmpi-1.4.3.tar.bz2
then i typed your answer"cd openmpi-1.4.3/ && ./configure && make && su -c make install" in terminal,but the mpif90 is also not found as a command!!
 
Old 10-18-2010, 06:06 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,741

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
So which files did you get installed to /usr/local/bin/ ? ?


Another thing to do : cd openmpi-1.4.3/examples/ && make
.. then you should see this :
Code:
mpicc -g    hello_c.c   -o hello_c
mpicc -g    ring_c.c   -o ring_c
mpicc -g    connectivity_c.c   -o connectivity_c

mpic++ -g    hello_cxx.cc   -o hello_cxx
mpic++ -g    ring_cxx.cc   -o ring_cxx

mpif77 -g hello_f77.f -o hello_f77
mpif77 -g ring_f77.f -o ring_f77

mpif90 -g hello_f90.f90 -o hello_f90
mpif90 -g ring_f90.f90 -o ring_f90
 
Old 10-19-2010, 03:12 AM   #5
parisahb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
mpif90 missed

Dear knudfl, there is nothing in my /usr/local/bin folder! so when i typed " cd openmpi-1.4.3/examples/ && make" i got this:

mpicc -g hello_c.c -o hello_c
make: mpicc: Command not found
make: *** [hello_c] Error 127

pleas guid me
 
Old 10-19-2010, 03:18 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Did the installation of OpenMPI go ok? Were there any errors?
 
Old 10-19-2010, 02:33 PM   #7
parisahb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy mpif90 missed

i've done unzip and untar by type this in the folder that was openmpi-1.4.3.tar.bz2:
$tar -xvjf openmpi.tar.bz2
no error was occured
as in instal file was suggested i typed:
$cd openmpi-1.4.3
$mkdir build
$cd build
when i typed ($../configure ) because i was installing openmpi again the outputs were:
$checking for a BSD-compatible install... /usr/bin/install -c
$checking whether build environment is sane... yes
$checking for a thread-safe mkdir -p... /bin/mkdir -p
$checking for gawk... gawk
$checking whether make sets $(MAKE)... yes
$configure: error: source directory already configured; run "make distclean" there first

i don't know what should i do next!?
 
Old 10-19-2010, 05:40 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Did you try reading the error message?
 
Old 10-20-2010, 11:33 AM   #9
parisahb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
mpif90 missed

i road the error message,i'v written that here in previous post,
after this error i was done "make all install" but i missed mpif90 again.
 
Old 10-20-2010, 03:47 PM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by parisahb View Post
i road the error message,i'v written that here in previous post,
after this error i was done "make all install" but i missed mpif90 again.
What do you mean? Did you try running "make distclean" as suggested and then trying again to build it? Unfortunately, I can't reach the Open MPI website now, so I can't look at the installation instructions in more detail.
 
  


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
Have I missed something? What are those icons? sycamorex General 7 08-20-2009 05:47 PM
mpif90 download on linux and related issues The_Watcher Linux - Software 0 02-14-2009 04:06 PM
/build missed cosmonauta Linux - Wireless Networking 1 10-25-2005 08:02 AM
Have I missed something? Jonny_Michaels LQ Suggestions & Feedback 3 05-13-2004 11:55 AM
FREE! not to be missed! acid_kewpie Programming 2 12-10-2001 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration