LinuxQuestions.org
Help answer threads with 0 replies.
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 10-07-2011, 11:45 AM   #1
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Rep: Reputation: 0
mpich issue


Hello,

I have x86_64 (rhel 5.1) server. I am trying to install mpich-1.2.7p1 on it. I have given options as fc=gfortran, f90=gfortran and cc=gcc, but it is nor creating mpif90. Even if it creates, libmpichf90 does not get created.

I want to use only mpich1.2.7p1. what cam be the issue?
 
Old 10-07-2011, 03:45 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The issues: Missing patches, I guess : There are 9 patches for '1.2.7p1'.
( You can read the file mpich-el5.spec, to know the used options, flags.)

# yum install fdupes gdb gcc-gfortran xz
ftp://ftp.pbone.net/mirror/www.pclin...os2010.src.rpm
rpm -Uvh mpich-1.2.7p1-1pclos2010.src.rpm
cd <your-rpmbuild-account>/SOURCE/
xz -d mpich-1.2.7p1.tar.xz

rpmbuild -bb mpich-el5.spec : No errors, the packages are created ..
mpich-1.2.7p1-1.el5.i386.rpm , mpich-devel-1.2.7p1-1.el5.i386.rpm

cd /opt/ && ls -R mpich/ | wc → → 851 826 : All files are present.
( Please ask, if you want to download the packages, i386 or x86_64.)
EDIT : Sorry, I overlooked that you have x86_64.
..
Attached Files
File Type: txt mpich-el5.spec.txt (8.3 KB, 18 views)

Last edited by knudfl; 10-07-2011 at 04:05 PM.
 
Old 10-08-2011, 04:34 AM   #3
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Original Poster
Rep: Reputation: 0
thanks for help. Unfortunately i am just user. so cant use yum . i have to install it in my home dir only. what is the solution?
 
Old 10-08-2011, 08:34 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
OK, may not work without the dependencies. You can of course check with
'rpm -qa | grep <name>' to know, if they are already installed.

RPM packages are usually created in /home/<??>/rpms/* : See post #13 here
http://www.linuxquestions.org/questi...1-a-766486/#13

This package, mpich-1.2.7p1-EL5.x86_64.tar.bz2 is the content of
mpich-1.2.7p1-1.el5.x86_64.rpm + mpich-devel-1.2.7p1-1.el5.x86_64.rpm.

'tar xvf mpich-1.2.7p1-EL5.x86_64.tar.bz2' : And you have all the files.
>> https://docs.google.com/uc?id=0B7S25...nload&hl=en_US

.

Last edited by knudfl; 10-08-2011 at 08:36 AM.
 
Old 10-16-2011, 08:53 AM   #5
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Original Poster
Rep: Reputation: 0
thanks for the help.
Please let me know how i can use mpich-1.2.7p1-EL5.x86_64.tar.bz2 directly in use? I am normal user and dont have any rights to install/upgarde any rpms.

can you brief on the procedure right from scratch to install the patched/(patches) source.
 
Old 10-16-2011, 05:19 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Using the files in the tarball mpich-1.2.7p1-EL5.x86_64.tar.bz2:
Unpack to e.g. /home/<name>/opt/mpich/***
Edit mpif90 to your paths. Example "mpif90 command" :
./opt/mpich/ch-p4/bin/mpif90 -<option>

Requirements : The binary f95 must be in your path. Default is /usr/bin/f95
.....


Building mpich-1.2.7p1 manually, patches included :
No libmpichf90.a is created. ( At least I got none a week ago.)


Building rpm packages in /home/<name>/rpms/ :
http://www.linuxquestions.org/questi...1-a-766486/#13
rpmbuild -bb mpich-el5.spec :
You can stop the terminal, when the patching has been done,
and continue with a manual './configure' etc. in /rpms/BUILD/mpich-1.2.7p1
....
 
Old 10-17-2011, 10:16 PM   #7
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Original Poster
Rep: Reputation: 0
thank you very much.

Unfortunately i am not able o understand the steps. Let me put these steps here. please correct me if i am wrong.

1)Using the files in the tarball mpich-1.2.7p1-EL5.x86_64.tar.bz2:
Unpack to e.g. /home/<name>/opt/mpich/***
Edit mpif90 to your paths. Example "mpif90 command" :
./opt/mpich/ch-p4/bin/mpif90 -<option>

Requirements : The binary f95 must be in your path. Default is /usr/bin/f95.....
Using the files in the tarball mpich-1.2.7p1-EL5.x86_64.tar.bz2:
Unpack to e.g. /home/<name>/opt/mpich/***
Edit mpif90 to your paths. Example "mpif90 command" :
./opt/mpich/ch-p4/bin/mpif90 -<option>

Requirements : The binary f95 must be in your path. Default is /usr/bin/f95
.....
Above mentioned is one way where patched and error free tar ball can be used directly and will not throw any error.

2)Building mpich-1.2.7p1 manually, patches included :
No libmpichf90.a is created. ( At least I got none a week ago.)


Building rpm packages in /home/<name>/rpms/ :
http://www.linuxquestions.org/questi...1-a-766486/#13
rpmbuild -bb mpich-el5.spec :
You can stop the terminal, when the patching has been done,
and continue with a manual './configure' etc. in /rpms/BUILD/mpich-1.2.7p1

this second method requires root previliges which i dont have.

So i can use method number 1 where can directly start using patched tar ball provided in the above link (https://docs.google.com/uc?id=0B7S25...nload&hl=en_US) and start using it directly just by setting paths.

Please correct me if i am wrong.

Thank you in advance..
 
Old 10-18-2011, 01:51 PM   #8
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Original Poster
Rep: Reputation: 0
Hi,
any updates?
 
Old 10-18-2011, 01:52 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
This second method requires root previliges which i dont have.
No, nothing of the above requires root access. Please explain.

About the files : Just try out the binary files in the package.
Would be easier for you to understand, when everything is in place,
I guess.
 
Old 10-23-2011, 05:13 AM   #10
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Original Poster
Rep: Reputation: 0
hi,

can i get all the patches and configure options so that i try on my machine?
thanks
 
Old 10-23-2011, 05:24 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Can I get all the patches and configure options so that I try on my machine ?
rpm -Uvh mpich-1.2.7p1-1pclos2010.src.rpm :
The "rpm install" of an SRC.RPM package will not install anything.

Will only unpack the files to rpms/SOURCE/ : All 9 patches etc.
http://www.linuxquestions.org/questi...1-a-766486/#13
>>> post # 13.

Configure options are listed in the file mpich-1.2.7p1/configure,
line 56 .. 410.

The command : ./configure --help
... Will show the most of the "option text".

.
 
Old 10-24-2011, 07:20 PM   #12
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Original Poster
Rep: Reputation: 0
thanks a lot for the help sir.
 
Old 11-24-2011, 09:19 PM   #13
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Original Poster
Rep: Reputation: 0
Dear Sir,

Can you please let me know the architecture of the machine where you have installed the same? i mean hardware/processor and os as this is not working across machines .
 
Old 11-25-2011, 06:53 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"Architecture command" : uname -m

Processor command : cat /proc/cpuinfo

( And may more important : 'ld', glibc version must be equal or older
than the version on the "new target OS".
Meaning that you cannot use an mpich compiled on RHEL 5.1 on an older OS.)
 
Old 11-26-2011, 01:51 AM   #15
aksharb
LQ Newbie
 
Registered: Mar 2011
Posts: 27

Original Poster
Rep: Reputation: 0
Dear Sir,

i wanted to know the machine architecture and platform of your machine on which you have successfully compiled /installed mpich1.2.7p1.

Last edited by aksharb; 11-26-2011 at 03:19 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
Problem with MPICH L-p-BTM Linux - Networking 2 11-17-2010 04:12 PM
MPICH Problem khushbu Linux - Newbie 1 05-31-2008 08:39 PM
mpich problem dennis_0007 Linux - Newbie 2 04-10-2008 04:26 AM
Mpich hoshen Linux - General 1 03-09-2006 10:53 AM
Mpich chui_yap Linux - General 1 03-20-2005 05:32 PM

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

All times are GMT -5. The time now is 01:52 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
Open Source Consulting | Domain Registration