[esp-r] Re: Error of Installing ESP-r on Mac OS X 10.8.5

Xiao LIU (6514827) Xiao.Liu at nottingham.edu.cn
Tue Oct 22 09:56:02 BST 2013


Hi, Jon,

Yes, you are right. My mistake is that I installed gcc and gfortran in different paths and folders. 

After correcting the main mistake and following the instruction of installing ESP-r on Mac step by step, I have successfully installed ESP-r on my Mac OS X 10.8.5. Quite thankful to your kindness and help.

Best regards, 


Xiao LIU
PhD Candidate
Centre for Sustainable Energy Technologies (CSET)
The University of Nottingham, Ningbo, China (UNNC)
Mobile: (+86)150 6746 9263
E-mail:   Xiao.Liu at nottingham.edu.cn
Address: 199 Taikang East Road, University Park, Ningbo, China
Post code: 315100
________________________________________
From: Jon Hand [jon at esru.strath.ac.uk]
Sent: Friday, October 18, 2013 4:20 PM
To: Xiao LIU (6514827); esp-r at lists.strath.ac.uk
Subject: RE: Error of Installing ESP-r on Mac OS X 10.8.5

This is useful information.  One issue might be that the gfortran
is found in /sw/bin/gfortran and g++ and gcc are in /usr/bin. They might
be sufficiently different in their versions to be a problem.

What command did you use with the Install script?  It should be
similar to:
  ./Install -d /Users/mac/cset/esp-r --gcc4 --debug --reuse_ish_calcs

I do not have access to an OSX 10.8.5 computer (mine are 10.7.5) so
I cannot replicate this.

One more thing - on your computer are real numbers written
as 9.55 or 9,55 ?

Regards, Jon Hand
________________________________________
From: Xiao LIU (6514827) [Xiao.Liu at nottingham.edu.cn]
Sent: 18 October 2013 06:51
To: Jon Hand; esp-r at lists.strath.ac.uk
Subject: RE: Error of Installing ESP-r on Mac OS X 10.8.5

Hi, Jon,

I have not done a build on this computer before.

In the terminal, I got the response as following when I typed the commands

Shawn-Liu:~ mac$ which g++
/usr/bin/g++
Shawn-Liu:~ mac$ which gfortran
/sw/bin/gfortran
Shawn-Liu:~ mac$ which gcc
/usr/bin/gcc

The version of OSX is 10.8.5 and it is 64 bit

Any ideas?

Xiao LIU
PhD Candidate
Centre for Sustainable Energy Technologies (CSET)
The University of Nottingham, Ningbo, China (UNNC)
Mobile: (+86)150 6746 9263
E-mail:   Xiao.Liu at nottingham.edu.cn
Address: 199 Taikang East Road, University Park, Ningbo, China
Post code: 315100
________________________________________
From: Jon Hand [jon at esru.strath.ac.uk]
Sent: Thursday, October 17, 2013 4:22 PM
To: Xiao LIU (6514827); esp-r at lists.strath.ac.uk
Subject: RE: Error of Installing ESP-r on Mac OS X 10.8.5

>From the message it would appear that you are attempting to install
ESP-r on an OSX computer. My guess is that you have not installed
the full development environment needed to build ESP-r.
  Have you done a build on this compueter before?
  Have you installed the GNU gcc g++ and gfortran compilers as listed in the osx
  setup instructions e.g. if you give the commands
  which gcc
  which g++
  which gfortran

in a terminal do you get a response?

What version of OSX are you running?

Regards, Jon Hand
________________________________________
From: esp-r-bounces at lists.strath.ac.uk [esp-r-bounces at lists.strath.ac.uk] on behalf of Xiao LIU (6514827) [Xiao.Liu at nottingham.edu.cn]
Sent: 17 October 2013 06:21
To: esp-r at lists.strath.ac.uk
Subject: [esp-r]  Error of Installing ESP-r on Mac OS X 10.8.5

Subject: Error of Installing ESP-r on Mac OS X 10.8.5

Hi,

I am trying to install ESP-r in my computer with the latest system of Mac OS X 10.8.5. Following with the instruction from the website <http://www.esru.strath.ac.uk/Programs/ESP-r_central.htm>
and after resolving several dependencies with other software I still get an error. I am copying the relevant text from the error below (verbose text):

    - building libX11... Done.
    - building aco...
 ERROR: could not build executable aco!
 ERROR: result /Users/mac/Src/development_branch/src/esruaco/aco!
 Compilation messages follow:
 -----------------------------------------
Compilation of aco on Mon  Oct     14   11:21:58 CST
Make command:
-------------
   make MCTYPE=osx MCC=gcc MCPL=g++ MFC=gfortran DESTdir=/Users/mac/cset ESPdir=/Users/mac/cset/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/mac/Src/development_branch/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; 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.



Could you give me some ideas of how to resolve this? Great appreciation for your help and kindness.
I am installing revision r9  9495 of the development branch.


Xiao LIU
PhD Candidate
Centre for Sustainable Energy Technologies (CSET)
The University of Nottingham, Ningbo, China (UNNC)
Mobile: (+86)150 6746 9263
E-mail:   Xiao.Liu at nottingham.edu.cn
Address: 199 Taikang East Road, University Park, Ningbo, China
Post code: 315100
This message and any attachment are intended solely for the addressee and may contain confidential information.
If you have received this message in error, please send it back to me, and immediately delete it.

Please do not use, copy or disclose the information contained in this message or in any attachment.

Any views or opinions expressed by the author of this email do not necessarily reflect the views of The University of Nottingham Ningbo China.


This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
you are advised to perform your own checks.

Email communications with The University of Nottingham Ningbo China may be monitored as permitted by UK and Chinese legislation.

_______________________________________________
esp-r mailing list
esp-r at lists.strath.ac.uk
http://lists.strath.ac.uk/mailman/listinfo/esp-r
This message and any attachment are intended solely for the addressee and may contain confidential information.
If you have received this message in error, please send it back to me, and immediately delete it.

Please do not use, copy or disclose the information contained in this message or in any attachment.

Any views or opinions expressed by the author of this email do not necessarily reflect the views of The University of Nottingham Ningbo China.


This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
you are advised to perform your own checks.

Email communications with The University of Nottingham Ningbo China may be monitored as permitted by UK and Chinese legislation.
This message and any attachment are intended solely for the addressee and may contain confidential information.                        
If you have received this message in error, please send it back to me, and immediately delete it.                                               
  
Please do not use, copy or disclose the information contained in this message or in any attachment.                                        

Any views or opinions expressed by the author of this email do not necessarily reflect the views of The University of Nottingham Ningbo China.    

                                                 
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system:
you are advised to perform your own checks.       
                                                     
Email communications with The University of Nottingham Ningbo China may be monitored as permitted by UK and Chinese legislation.         



More information about the esp-r mailing list