View unanswered posts | View active topics
|
Page 1 of 1
|
[ 7 posts ] |
|
Author |
Message |
Di Mauro
|
Posted: Sat Apr 14, 2012 2:27 am |
|
Joined: Thu Apr 05, 2012 9:09 am Posts: 2
|
Greetings...
I am very new to Galprop and I have to install it on Ubuntu. I'm following the ReadMe file instructions but I encounter some problems during the installation.
In the readme file it is written that the packages cfitsio, CCfits, healpix and gsl (GNU Scientific Library) and CLHEP are required so I have downloaded them in the suggested Urls.
Then it is written to use the following command:
--------------- cd <directory where working copy of galprop and this README file is> autoreconf -i -v -f
./configure --with-cfitsio=<path for cfitsio> --with-ccfits=<path for ccfits> --with-healpix=<path for healpix>/src/cxx/generic_gcc --with-gsl=<path for gsl> --with-clhep=<path for CLHEP> --prefix=<path for installed software> --with-galdef=<path for GALDEF files> --with-fitsdata=<path for FITS files> --datadir=<path for .dat files> ---------------
I have done it and then I have used the command "make" as written in the readme file. This is the output:
-------------------------------------------- configure.ac:53: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from... ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... acinclude.m4:279: GAL_M128D is expanded from... acinclude.m4:291: GAL_ARCH is expanded from... configure.ac:53: the top level configure.ac:109: warning: AC_LANG_PROGRAM(Fortran 77): ignoring PROLOGUE: [#include <omp.h>] ../../lib/autoconf/lang.m4:225: AC_LANG_SOURCE is expanded from... ../../lib/autoconf/lang.m4:242: AC_LANG_PROGRAM is expanded from... ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from... ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from... acinclude.m4:538: GAL_OPENMP_FORTRAN is expanded from... configure.ac:109: the top level source/Makefile.am:16: library used but `RANLIB' is undefined source/Makefile.am:16: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB' source/Makefile.am:16: to `configure.ac' and run `autoconf' again. make: *** [Makefile.in] Errore 1 ----------------------------------------------------
Some problem on the configure.ac file seems to be present.
-Have I to install the packages cfitsio, CCfits, healpix and gsl (GNU Scientific Library) and CLHEP one at a time or the : "./configure --with-cfitsio=<path for cfitsio> --with-ccfits=<path for ccfits> --with-healpix=<path for healpix>/src/cxx/generic_gcc --with-gsl=<path for gsl> --with-clhep=<path for CLHEP> --prefix=<path for installed software> --with-galdef=<path for GALDEF files> --with-fitsdata=<path for FITS files> --datadir=<path for .dat files> " command already installs all of them?
-I don't understand where I find the galdef file I have to put in the galdef directory to run galprop. For example if I want to calculate ISRF, I' m interested in the isrf_energy_density.cc programm in the source directory. How can I compile this programme to compute ISRF?
Thanks in advance.
Mattia Di Mauro
|
|
Top |
|
 |
strong
|
Posted: Sat Apr 14, 2012 8:28 am |
|
Joined: Wed May 17, 2006 7:02 am Posts: 285 Location: MPE Garching
|
Hi Mattia, you have to first install each of the packages, and the ./configure then points to where they are installed. The galdef files should go the in the directory specified by ./configure by "--with-galdef=<path for GALDEF files>" The ISRF routine is used by galprop but is not provided standalone, however it would be fairly easy to call it from a main program, and it would be a good idea for us to provide that as a tool. Let us know of your progress! Andy
_________________ Andy Strong, MPE
|
|
Top |
|
 |
Di Mauro
|
Posted: Wed Apr 25, 2012 3:48 am |
|
Joined: Thu Apr 05, 2012 9:09 am Posts: 2
|
Thanks Prof. Strong for your answer.
I have installed all the five programms each separately and then I have used the following commands: --------------- cd <directory where working copy of galprop and this README file is> autoreconf -i -v -f
./configure --with-cfitsio=<path for cfitsio> --with-ccfits=<path for ccfits> --with-healpix=<path for healpix>/src/cxx/generic_gcc --with-gsl=<path for gsl> --with-clhep=<path for CLHEP> --prefix=<path for installed software> --with-galdef=<path for GALDEF files> --with-fitsdata=<path for FITS files> --datadir=<path for .dat files> ---------------
as written in the manual but this is the output:
--------------------------------------------- configure.ac:53: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from... ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... acinclude.m4:279: GAL_M128D is expanded from... acinclude.m4:291: GAL_ARCH is expanded from... configure.ac:53: the top level configure.ac:109: warning: AC_LANG_PROGRAM(Fortran 77): ignoring PROLOGUE: [#include <omp.h>] ../../lib/autoconf/lang.m4:225: AC_LANG_SOURCE is expanded from... ../../lib/autoconf/lang.m4:242: AC_LANG_PROGRAM is expanded from... ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from... ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from... acinclude.m4:538: GAL_OPENMP_FORTRAN is expanded from... configure.ac:109: the top level source/Makefile.am:16: library used but `RANLIB' is undefined source/Makefile.am:16: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB' source/Makefile.am:16: to `configure.ac' and run `autoconf' again. make: *** [Makefile.in] Errore 1 mattia@mattia-R540-R580-R780-SA41-E452-E852:~/Dottorato/galprop$ ./Makefile.am bash: ./Makefile.am: Permesso negato mattia@mattia-R540-R580-R780-SA41-E452-E852:~/Dottorato/galprop$ sudo ./Makefile.am sudo: ./Makefile.am: command not found ------------------------------------------------------------------
Seems to be present some problems with configure.ac and Makefile.am files and the binary ./source/galprop isn't generated.
What could be the problems?
Thanks in advance. Mattia Di Mauro
|
|
Top |
|
 |
strong
|
Posted: Wed Apr 25, 2012 3:54 am |
|
Joined: Wed May 17, 2006 7:02 am Posts: 285 Location: MPE Garching
|
this one is beyond me, suggest you ask Troy or Gulli who wrote the config script.
_________________ Andy Strong, MPE
|
|
Top |
|
 |
tporter
|
Posted: Thu Jul 19, 2012 9:06 pm |
|
Joined: Wed May 17, 2006 2:35 pm Posts: 23 Location: Santa Cruz, California
|
The easiest way to proceed is to define AC_PROG_RANLIB in configure.ac, then redo the autoreconf -v -i -f, ./configure ..., make and make install sequence. For example, you can edit configure.ac near these lines:
# Checks for programs. AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AM_PROG_AS AC_PROG_RANLIB <----- add this
then redo the whole sequence. It doesn't look like you have installed galtoolslib, either (which is required). You need to get that if not installed already and do it before the configuration for the galprop build. Some of the issues people have with the gnu autotools are very useful, and might prompt us to change to, e.g., cmake in the future.
For the ISRF, the code you want to use standalone is simply the reader that will allow you to get the interpolated value for the ISRF that is read in from the supplied data files. However, a different code that I wrote is used to calculate realisations of the ISRF (called FRaNKIE). It is not completely user friendly, but we can discuss if you need a different calculation of the ISRF for some purpose.
_________________ Dr. Troy A. Porter Hansen Experimental Physics Laboratory 452 Lomita Mall Stanford University Stanford, CA 94305
|
|
Top |
|
 |
lx9507
|
Posted: Thu Nov 01, 2012 3:53 am |
|
Joined: Tue Oct 30, 2012 7:06 am Posts: 4
|
I think that we don't need to add "AC_PROG_RANLIB" into configure.ac. Instead, we just need to install GNU libtool. The following could be typed in the terminal: sudo apt-get install libtool And so we could solve this problem.
However, another error was encountered when I went on the next step in building: TYPE COMMOND: make OUTPUT: /home/lixiang/software/healpix_2.20a/src/cxx/generic_gcc/lib/libcxxsupport.a(cxxutils.o): In function `openmp_max_threads': /home/lixiang/software/healpix_2.20a/src/cxx/cxxsupport/openmp_support.h:51: undefined reference to `omp_get_max_threads'
I guess I was failing to link to GOMP(OpenMP), but what can I do to overcome it?
Thanks for help!
_________________ Best, Xiang Li =========================== Purple Moutain Observatory, CAS Nanjing, P.R.China ===========================
Last edited by lx9507 on Tue Nov 27, 2012 12:08 am, edited 3 times in total.
|
|
Top |
|
 |
lx9507
|
Posted: Thu Nov 01, 2012 4:45 am |
|
Joined: Tue Oct 30, 2012 7:06 am Posts: 4
|
OK, I see. Just add "--enable-openmp" after "./configure" commond.
_________________ Best, Xiang Li =========================== Purple Moutain Observatory, CAS Nanjing, P.R.China ===========================
|
|
Top |
|
 |
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users 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
|