[Pw_forum] installing OpenMPI and Quantum Espresso on a Mac OS X system

Gabriele Sclauzero sclauzer at sissa.it
Fri Jun 12 17:42:05 CEST 2009



Michael Hayden wrote:
> Paolo,
> 
> Do you know the cause of this?

Yes

> 
> My paths are set in my .profile as such:
> export PATH=/usr/local/bin:/usr/local/lib:$PATH
> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
> 
> This was my ./configure command:
> ./configure --prefix=/usr/local/espresso-4.0.5 MPIF90=mpif90 CC=gcc 
> F77=gfortran F90=gfortran MPIF77=mpif77 CXX=g++ MPICC=mpic++ 
> FFT_LIBS=/usr/local/lib 
this line above should be
FFT_LIBS=-L/usr/local/lib -lfftw
or something similar, since it was not meant to be a library path, but a linking command 
(please see espresso user guide and troubleshooting)

> LAPACK_LIBS=/usr/local/espresso-4.0.5/flib/lapack.a 
> BLAS_LIBS=/usr/local/espresso-4.0.5/flib/blas.a

this instead is fine since it gives a path to an object file (better, an archive of object 
files)

> 
> Mike

HTH

GS


> 
> 
> 
> On Jun 12, 2009, at 11:05 AM, Paolo Giannozzi wrote:
> 
>>
>> On Jun 12, 2009, at 16:46 , Michael Hayden wrote:
>>
>>> mpif90  -o pw.x [...] /usr/local/lib /usr/local/lib
>>
>> you are linking "/usr/local/lib" (a directory)...
>>
>>> ld: in /usr/local/lib, can't map file, errno=22
>>
>>
>> and the linker complains
>>
>> Paolo
>> ---
>> Paolo Giannozzi, Dept of Physics, University of Udine
>> via delle Scienze 208, 33100 Udine, Italy
>> Phone +39-0432-558216, fax +39-0432-558222
>>
>>
>>
>> _______________________________________________
>> Pw_forum mailing list
>> Pw_forum at pwscf.org <mailto:Pw_forum at pwscf.org>
>> http://www.democritos.it/mailman/listinfo/pw_forum
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://www.democritos.it/mailman/listinfo/pw_forum

-- 


o ------------------------------------------------ o
| Gabriele Sclauzero, PhD Student                  |
| c/o:   SISSA & CNR-INFM Democritos,              |
|        via Beirut 2-4, 34014 Trieste (Italy)     |
| email: sclauzer at sissa.it                         |
| phone: +39 040 3787 511                          |
| skype: gurlonotturno                             |
o ------------------------------------------------ o



More information about the users mailing list