[mpich-discuss] Problems with running make
Reuti
reuti at staff.uni-marburg.de
Sun Mar 2 08:28:23 CST 2014
Am 02.03.2014 um 14:01 schrieb Ron Palmer:
> I am running centos on two of these, sargeant and constable, and RHEL on the third, gainsborough.
>
> By runtime libraries, do you mean for the three compilers included, ie gcc, fortran77 and fortran90?
Yes. But there should be a package with the runtime libraries, i.e. so that it's not necessary to install the complete compiler suite (I assume in your situation that they are installed, but with different versions). Maybe you can check for older/newer libs in the repository of the distributions.
Which libraries are necessary can be listed by issuing:
$ ldd cpi
on each of the machines and whether they are found.
-- Reuti
NB: With commercial compilers it's for this reason often allowed in the license to give away the runtime libraries (and only these) with your compiled application, as otherwise your customers couldn't run your applications.
> Please use one syllable words, I am the edge of my understanding :-(.
>
> Thanks
> Ron
>
>
> On 2/03/2014 22:55, Reuti wrote:
>> Hi,
>>
>> Am 02.03.2014 um 13:20 schrieb Ron Palmer:
>>
>>> Gus, Reuti, Rajeev and others,
>>> I do have mpif77 and mpif90 in mpi/bin, so I conclude that it has compiled ok.
>>>
>>> I have checked reuti's suggestions, indicating that the environment is ok. I had added 'PATH=/my/mpi/bin:$PATH' to each of the .bashrc files (for the user I am running on all three)
>>>
>>> I am using the same username on all three computers - is that ok?
>>>
>>> I have installed MPI on to a NFS drive, all accessing the same; 'which' confirms. Are there any libraries that needs to be installed elsewhere? do need to run make install as root?
>> No.
>>
>>
>>> I have added the 'LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/my/mpi/lib', though made no difference. (should those "{" and "}" be included? I entered it exactly like I have typed)
>>>
>>> I have mpicc the cpi program as suggested by Gus and tried it, as well as the originally provided cpi (part of the downloaded mpi) which I called cpi_orig, see the screen shot below. It looks like there is an issue with libgfortran.so.3...
>> Yep.
>>
>> Unless you build static applications, the runtime libraries (of the compiler) need to be available on all machines.
>>
>> There should be package with the runtime libraries in your Linux distribution.
>>
>> -- Reuti
>>
>>
>>> Perhaps I have not got the various compilers installed correctly? I would appreciate if someone could give me a suggestion on how to properly remove and re-install these (and select the correct ones).
>>>
>>> By the way, in the runs of cpi below, I reduced the number of cores to be used on the first pc listed in the machinefile, from 8 to 4, in the case there was an issue with the 9th one. As can be seen, it is the first node (or core) on a remote computer where the problems start to be listed which is node 5 in this case...
>>>
>>> If I run cpi on only one computer, it works. And yes, hostname works even if all computers are included in the machinefile.
>>>
>>> Clear as mud, hey?
>>> Thanks for your help.
>
> _______________________________________________
> discuss mailing list discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
More information about the discuss
mailing list