[esp-r] Re: Error installing ESP-r - setting up an OS X computer for building ESP-r.

Jon Hand jon at esru.strath.ac.uk
Mon Jan 18 16:33:35 GMT 2016


In the  source distribution of ESP-r in the manual/OS/Apple folder is a text file
named setting_up_ox.txt.  It gives instructions for setting up the 'tool chain'
needed to compile ESP-r on OSX. What I have used on many many OS X
computers is the Macports environment.  It has the whole suite of GNU compilers
(and they all match).  They get put in /opt/local/bin

When you give the Install command include the --compiler_version option
e.g.  --compiler_version -mp-4.7  if /opt/local/bin includes gcc-mp-4.7 g++-mp-4.7
and gfortran-mp-4.7.  If you get a different version adapt the command to suit.

I have attached a copy of the instructions. It works on OS X 10.7 10.8 10.9 and 10.10.

-Jon Hand
  
________________________________________
From: esp-r-bounces at lists.strath.ac.uk [esp-r-bounces at lists.strath.ac.uk] on behalf of Raghuram Kalyanam [kalyanam at rhrk.uni-kl.de]
Sent: 18 January 2016 12:52
To: esp-r at lists.strath.ac.uk
Subject: [esp-r]  Error installing ESP-r

Hi Everyone,

I am having hard time installing ESP-r on my MacOSX. Here is the output I got

Installing ESP-r system. This may take some time.
 Moving to /Users/raghuramkalyanam/Downloads/ESP-rSource-master/src...
    - gathering version information (none)...    - building disableSQLite... Done.
    - building disableXML... Done.
    - building libX11... Done.
    - building aco...
 ERROR: could not build executable aco!
 ERROR: result /Users/raghuramkalyanam/Downloads/ESP-rSource-master/src/esruaco/aco!
 Compilation messages follow:
 -----------------------------------------
Compilation of aco on Mon Jan 18 13:43:29 CET 2016
 Make command:
 -------------
   make MCTYPE=osx MCC=gcc MCPL=g++ MFC=gfortran DESTdir=/Applications/ESP-r ESPdir=/Applications/ESP-r/esp-r WWLINK=unshared EXE= XINSTALLDIR=/usr/X11R6 CFLAGS=-I../include -I../shocc -I/usr/local/include -I../cetc/h3kreports -I/usr/X11R6/include -DOSX -DLIN -m64 -DX11  FFLAGS=-I../include -I../shocc -I/usr/local/include -I../cetc/h3kreports -DOSX -DLIN -m64 -DX11 -fno-automatic -DGCC4 LD_FLAGS= ULIBS=-L/Users/raghuramkalyanam/Downloads/ESP-rSource-master/src/lib -lversion -lxesru -L/usr/X11R6/lib -lX11 -lXML -lSQLite  xml_status= SQLite_status= -f Makefile  aco >>.make_msg 2>&1



 Make output:
 ------------
cd `pwd`/esruaco; /Applications/Xcode.app/Contents/Developer/usr/bin/make
gcc -I../include -I../shocc -I/usr/local/include -I../cetc/h3kreports -DOSX -DLIN -m64 -DX11    -fno-automatic  -DGCC4 -c h3kmodule.f90
clang: warning: argument unused during compilation: '-I ../include'
clang: warning: argument unused during compilation: '-I ../shocc'
clang: warning: argument unused during compilation: '-I /usr/local/include'
clang: warning: argument unused during compilation: '-I ../cetc/h3kreports'
clang: warning: argument unused during compilation: '-fno-automatic'
error: invalid value 'f95' in '-x f95'
make[1]: *** [h3kmodule.o] Error 1
make: *** [aco] Error 2
 -----------------------------------------
 Install: Fatal error.
 Executable aco could not be built!
 Installation aborted.

gcc and g++ are in /usr/bin/, but gfortran was in different folder i.e in /usr/local/bin. I created a symbolic link for the same in usr/bin.

Mac OSX version 10.11.2

Any Ideas please?

Best Regards,
Raghu
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: setting_up_osx.txt
Url: http://lists.strath.ac.uk/archives/esp-r/attachments/20160118/44b9a5d7/attachment-0001.txt 


More information about the esp-r mailing list