[mpich-discuss] mpich2 some errors..
Gus Correa
gus at ldeo.columbia.edu
Thu Jul 5 10:35:20 CDT 2012
On 07/04/2012 12:57 PM, Anthony Chan wrote:
>
> It appears you ain't familiar with building open source softwares under unix.
> If you are using linux, you could install directly using pre-built packages:
>
> http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads
>
> ----- Original Message -----
>> But if I donot use sudo,Pemission denied for me to make.
Hi Geng
You need to choose the --prefix path to an area where you have
write permission, as suggested by Reuti.
Also, you don't need to use sudo if you install MPICH2
in an area where you have write permissions,
say, under your home directory.
See Jeff Hammond's suggestion about this.
If you are on Linux, make sure you have gcc
in your system, and also g++ and gfortran if you want
MPICH2 built with C++, F77 and F90 bindings.
Download to an area that you have write permission,
and untar it there, say, $HOME/Downloads:
$ cd $HOME/Downloads
$ tar -zxvf mpich2-1.4.1p1.tar.gz
Configure it with prefix pointing to *another* path,
but also where you have write permissions, say,
$HOME/local/mpich2-1.4.1p1 :
$ cd mpich2-1.4.1p1
$ ./configure --prefix=$HOME/local/mpich2-1.4.1p1
[Add --enable-shared to the command line above if you want
shared libraries, as Reuti also suggested.]
$ make
$ make install
Set your PATH and LD_LIBRARY_PATH to point to the
MPICH2 that you just built.
This will avoid other versions that may be installed
on your system:
If you use sh/bash:
export PATH=$HOME/local/mpich2-1.4.1p1/bin:${PATH}
export LD_LIBRARY_PATH=$HOME/local/mpich2-1.4.1p1/lib
If you use csh/tcsh:
setenv PATH $HOME/local/mpich2-1.4.1p1/bin:${PATH}
setenv LD_LIBRARY_PATH $HOME/local/mpich2-1.4.1p1/lib
>> Then error
>> occurs.
>> Also,maybe the version is not the main reason for that error.Because I
>> have tried several versions.
Don't waste time with out of date versions.
You won't get help for old versions either.
For your own good, just download and install the latest:
http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads
Also, it is worth to carefully read the documentation, as it answers
many questions that you may have:
http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=docs
I hope this helps,
Gus Correa
>> So I still have no idea about that.
>> Do you have any idea?
>> Thanks.
>> Geng
>>
>>
>> 2012-07-05
>>
>>
>>
>> crgeng_medphys
>>
>>
>>
>> 发件人: Jeff Hammond
>> 发送时间: 2012-07-05 00:01:55
>> 收件人: mpich-discuss at mcs.anl.gov
>> 抄送:
>> 主题: Re: [mpich-discuss] mpich2 some errors..
>>
>> Use the latest version of MPICH2. It's not practical for the
>> developers to support versions of MPICH2 that are that old.
>>
>> Jeff
>>
>> PS You should not need to use sudo to execute make and this is a bad
>> practice since it can have unpleasant consequences with packages that
>> have poorly designed buildsystems (MPICH2 is not an example of such a
>> package though).
>>
>> On Wed, Jul 4, 2012 at 10:58 AM, crgeng_medphys
>> <crgeng_medphys at yahoo.cn> wrote:
>>>
>>> Hi Reuti:
>>> "./configure --prefix
>>> sudo make
>>> sudo make install"
>>> this is the way I installed the MPICH2. The version is
>>> MPICH2-1.0.7rc2.
>>> Yes, you are right. I want to build a dynamic library with my
>>> application
>>> and try to add a static library from MPICH2.
>>> So what can I do with this error?
>>> Thanks and best regards!
>>> geng
>>>
>>>
>>> 2012-07-04
>>> ________________________________
>>> crgeng_medphys
>>> ________________________________
>>> 发件人: Reuti
>>> 发送时间: 2012-07-04 23:44:10
>>> 收件人: mpich-discuss at mcs.anl.gov
>>> 抄送:
>>> 主题: Re: [mpich-discuss] mpich2 some errors..
>>> Am 04.07.2012 um 09:05 schrieb crgeng_medphys:
>>>
>>>>
>>>> Dear Sir:
>>>>
>>>> Thanks for your development of MPICH first.
>>>> And I have a problem after I install mpich to compile my
>>>> application.
>>>
>>> How did you install MPICH2 and which version?
>>>
>>> Do you want to build a dynamic library with your application and try
>>> to add
>>> a static library from MPICH2?
>>>
>>> -- Reuti
>>>
>>>
>>>> The error is following,
>>>> "
>>>> /usr/bin/ld: /home/g/mpich2/lib/libmpichcxx.a(initcxx.o):
>>>> relocation
>>>> R_X86_64_32S against `vtable for MPI::Datatype' can not be used
>>>> when making
>>>> a shared object; recompile with -fPIC
>>>> /home/g/mpich2/lib/libmpichcxx.a: could not read symbols: Bad
>>>> value
>>>> collect2: ld returned 1 exit status
>>>> "
>>>>
>>>> It probably means that I should recompile MPI with -fPIC.
>>>> But I cannot understand the definite mean of this error, could you
>>>> give me
>>>> some advice?
>>>> Thanks and best regards!
>>>> Geng
>>>>
>>>> crgeng_medphys
>>>> _______________________________________________
>>>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>>>> To manage subscription options or unsubscribe:
>>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>>
>>> _______________________________________________
>>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>>> To manage subscription options or unsubscribe:
>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>>
>>> _______________________________________________
>>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>>> To manage subscription options or unsubscribe:
>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>>
>>
>>
>>
>> --
>> Jeff Hammond
>> Argonne Leadership Computing Facility
>> University of Chicago Computation Institute
>> jhammond at alcf.anl.gov / (630) 252-5381
>> http://www.linkedin.com/in/jeffhammond
>> https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond
>> _______________________________________________
>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>> To manage subscription options or unsubscribe:
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>
>> _______________________________________________
>> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
>> To manage subscription options or unsubscribe:
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list