LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mpif90 missed (https://www.linuxquestions.org/questions/linux-newbie-8/mpif90-missed-838887/)

parisahb 10-18-2010 03:10 PM

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"

knudfl 10-18-2010 04:20 PM

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.
..

parisahb 10-18-2010 04:47 PM

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!!

knudfl 10-18-2010 05:06 PM

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


parisahb 10-19-2010 02:12 AM

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

Nylex 10-19-2010 02:18 AM

Did the installation of OpenMPI go ok? Were there any errors?

parisahb 10-19-2010 01:33 PM

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!?

Nylex 10-19-2010 04:40 PM

Did you try reading the error message?

parisahb 10-20-2010 10:33 AM

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.

Nylex 10-20-2010 02:47 PM

Quote:

Originally Posted by parisahb (Post 4133649)
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.


All times are GMT -5. The time now is 01:13 PM.