compile on OS X

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
legoses
Posts: 1
Joined: Tue May 18, 2010 8:01 pm

compile on OS X

Post by legoses » Tue May 18, 2010 8:05 pm

I need help compiling on OS X. When I run the configure script I get the message:

+--------------------------------------------------------------+
| About the Intel Fortran compiler |
+--------------------------------------------------------------+
| Your compiler will work properly only if the LD_LIBRARY_PATH |
| and INTEL_LICENSE_FILE environment variables are correctly |
| set-up. Please make sure that this is the case before |
| building ABINIT. |
| |
| In most cases it means sourcing a script in the Intel |
| compiler install directory, e.g.: |
| |
| . /opt/intel/fc/9.1/bin/ifortvars.sh |
| |
| for a Bourne-like shell (do not forget the leading dot), or |
| |
| source /opt/intel/fc/9.1/bin/ifortvars.csh |
| |
| for a C-like shell. |
| |
| If you do not know what this is all about, please refer to |
| the Intel documentation or ask your system administrator. |
| |
| Please note that the same holds for the Intel C and C++ |
| compilers. |
+--------------------------------------------------------------+

'make' then fails with several error messages.

Any ideas?

TIA

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: compile on OS X

Post by mverstra » Tue May 18, 2010 9:55 pm

1) read the netiquette http://forum.abinit.org/viewtopic.php?f=20&t=251 about how to post with full information so we can diagnose the problem.

2) the message you did post is just a warning that you need to configure your environment properly to use the compiler, nothing to worry about.

Matthieu

PS: we compile on MAC OSX several times a day with gfortran, no problem. ifort, I don't know.
Matthieu Verstraete
University of Liege, Belgium

User avatar
Alain_Jacques
Posts: 279
Joined: Sat Aug 15, 2009 9:34 pm
Location: Université catholique de Louvain - Belgium

Re: compile on OS X

Post by Alain_Jacques » Wed May 19, 2010 10:20 am

We definitely need much more details about your OSX setup - what did you do to configure, what compiler and MPI lib do you have, any Fink or MacPorts installation in your path, what's the error message????
If the error message mentions missing directories, retry with an "export MDKIR=mkdir -p" before the configuration step. Abinit won't compile with Apple provided MPI libs so test it with a "--disable-mpi" if you have a working MPI setup.
I have tested Abinit under OSX with ifort 11.0 and openMPI 1.3 up to versions 5.9.x with success. For the 6.0.x, I don't know ... no Intel license anymore - I'm looking for a sponsor :-)

Kind regards,

Alain

Locked