Support #3483

Cannot install GammaLib on Ubuntu 20.14

Added by Nigro Cosimo about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:12/18/2020
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

90%

Category:-
Target version:2.0.0
Tags: installation ubuntu
Duration:

Description

Hello,

I am having trouble in installing GammaLib on Ubuntu 20.14.
The installation instructions
https://github.com/gammalib/gammalib#linux-installation
suggests the usual three commands
```
./configure
make
make check
make install
```
there is no configure file though in the original repo, but a `configure.ac`
I tried to generate a `configure` using `autoconf`
but I get the following output:
```
cosimo@posimo:~/software/gammalib$ autoconf
configure.ac:36: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:144: error: possibly undefined macro: AM_CONDITIONAL
configure.ac:649: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:779: error: possibly undefined macro: AC_MSG_WARN
configure.ac:872: error: possibly undefined macro: AC_MSG_NOTICE
configure.ac:877: error: possibly undefined macro: AM_PATH_PYTHON
configure.ac:887: error: possibly undefined macro: AM_PYTHON_CHECK_VERSION
cosimo@posimo:~/software/gammalib$ ./configure
configure: error: cannot find install-sh, install.sh, or shtool in . “.”/.
```
what am I doing wrong? Is there some additional step not explicit in the github that I should be following?

Thank you


Recurrence

No recurrence.

History

#1 Updated by Tibaldo Luigi about 4 years ago

Hi Cosimo,
you should have an autogen.sh script to start the configuration. I’m not sure if the instructions on GitHub are up to date. Could you please try to follow the instructions on the ctools website
http://cta.irap.omp.eu/ctools/admin/install_devel.html
and see if that solves your issue?

#2 Updated by Nigro Cosimo about 4 years ago

Hi Luigi,

yes running ./autogen.sh made it possible to install it.
I think both
https://github.com/gammalib/gammalib#linux-installation
and
http://cta.irap.omp.eu/gammalib/admin/install_source.html
should be updated.
Just adding a line specifying to run ./autogen.sh

Thanks a lot!

#3 Updated by Tibaldo Luigi about 4 years ago

  • Assigned To set to Knödlseder Jürgen
  • % Done changed from 0 to 50

I’ll let Jürgen decide what to do with those pages. Possibly we may want to get rid of installation instructions on GitHub and just leave there a link to the ctools website to avoid maintaining multiple versions of the doc

#4 Updated by Knödlseder Jürgen about 4 years ago

  • Status changed from New to In Progress
  • Target version set to 2.0.0

There is a difference between installing from source and cloning from GitHub. If you install from source there will be a configure script included and you do not need ./autogen.sh. I you install from GitHub you need the additional ./autogen.sh step.

I keep the issue open to make sure that this information is provided everywhere.

#5 Updated by Nigro Cosimo about 4 years ago

Actually in the installation page in the docs
http://cta.irap.omp.eu/gammalib/admin/install_source.html
the link provided for download
http://cta.irap.omp.eu/gammalib/download.html
appears broken.

#6 Updated by Knödlseder Jürgen about 4 years ago

  • % Done changed from 50 to 60

Nigro Cosimo wrote:

Actually in the installation page in the docs
http://cta.irap.omp.eu/gammalib/admin/install_source.html
the link provided for download
http://cta.irap.omp.eu/gammalib/download.html
appears broken.

Thanks for reporting, the correct link is indeed http://cta.irap.omp.eu/gammalib/admin/download.html. I updated the page.

#7 Updated by Knödlseder Jürgen about 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 60 to 90

I updated the README.md files of GammaLib and ctools, informing the user what to do if the configure file is missing.

Also available in: Atom PDF