View unanswered posts | View active topics
|
Page 1 of 1
|
[ 3 posts ] |
|
Author |
Message |
lw840305
|
Posted: Tue Jan 13, 2015 5:51 am |
|
Joined: Mon May 28, 2012 7:38 pm Posts: 20
|
Dear all, I met an error when compiling galprop in ubuntu 14.01. The error is as follows:
g77 -O3 -Wall -c -o WNEWTR_FUNC_aws.o WNEWTR_FUNC_aws.f WNEWTR_FUNC_aws.f: In subroutine `set_sigma': WNEWTR_FUNC_aws.f:32: SUBROUTINE SET_SIGMA(CDR,FILENAME,FNLENGTH) ! IMOS20020502 1 WNEWTR_FUNC_aws.f:45: (continued): CHARACTER*(FNLENGTH) FILENAME 2 Invalid declaration of or reference to symbol `fnlength' at (2) [initially seen at (1)] WNEWTR_FUNC_aws.f: In function `sigma': In file included from WNEWTR_FUNC_aws.f:0: WNEWTR_FUNC_aws.f:200: warning: unused variable 'k' WNEWTR_FUNC_aws.f:200: warning: unused variable 'j' WNEWTR_FUNC_aws.f:200: warning: unused variable 'i' make[2]: *** [WNEWTR_FUNC_aws.o] Error 1 make[2]: Leaving directory `/home/faust/Research/PROGRAM/CRPropagation/GALPROP_WORKSPACE/galprop/source' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/faust/Research/PROGRAM/CRPropagation/GALPROP_WORKSPACE/galprop' make: *** [all] Error 2
I am a freshman and not sure about fortran. Maybe g77 can not be used here, but I don't know how to change the compiler.
Thank you very much for telling me what the wrong is and how to fix it!
|
|
Top |
|
 |
strong
|
Posted: Tue Jan 13, 2015 8:36 am |
|
Joined: Wed May 17, 2006 7:02 am Posts: 285 Location: MPE Garching
|
you need gfortran, and hence on the ./configure line include the following: F77=gfortran see e.g. the README of the current version at http://sourceforge.net/projects/galprop
_________________ Andy Strong, MPE
|
|
Top |
|
 |
lw840305
|
Posted: Tue Jan 13, 2015 8:40 pm |
|
Joined: Mon May 28, 2012 7:38 pm Posts: 20
|
Thank you very much for your reply! I have reinstalled a newer version of galprop. It works.
Thank you very much!
|
|
Top |
|
 |
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: Google [Bot] and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|