I am trying to install gsl 2.5 on Ubuntu 18.04. Followed the following steps:

1. Downloaded the latest gsl pkg from http://ftpmirror.gnu.org/gsl/. Unzipped the tarball with archive manager, a folder named 'gsl-release-2-5' is created, opened the terminal and cd to this folder.


$ cd /home
$ cd ~/gsl_pkg/gsl-release-2-5
$ sudo apt install libgsl-dev
$ ./configure
error:: bash: ./configure: No such file or directory

Received the error above.

What steps should I take now to mitigate the situation and install gsl 2.5 successfully?


Also executed the cmd :

$ autoreconf -i -f -v

gave the reult as follows-

autoreconf: configure.ac: not using Gettext

autoreconf: running: aclocal --force

autoreconf: configure.ac: tracing

autoreconf: configure.ac: not using Libtool

  • Look for and read files named README and INSTALL which may contain specific build instructions for the tarball. – ubfan1 Jul 1 '19 at 15:12
  • @kedar your link is a 404 and isn't this in a package in the public repos ? packages.ubuntu.com/… – tatsu Jul 1 '19 at 15:18
  • 1
    @Melebius You are right, the file "configure" is not present in the list, instead file name "configure.ac" is present. Thank you – kedar Jul 1 '19 at 16:15
  • @ubfan1 I read the README and INSTALL files but could not proceed after step 1. Below I am pasting the lines from the INSTALL file. Please do take a look and let me know if I am missing some vital information. – kedar Jul 1 '19 at 16:19
  • 1
    Alas ! It worked. @abu-ahmedal-khatiri Thank you so much for sticking around this problem with me. Thank you for giving your time and efforts. – kedar Jul 1 '19 at 20:25

The site of ftpmirror.gnu.org/gsl your provide is eror:404 . The latest of gsl link available on https://mirror.freedif.org/GNU/gsl/gsl-latest.tar.gz and extract it.

To compile and buildin the package follow:

  1. cd ~/yourFolderOf_gsl/gsl-releaseVersions
  2. ./configure && make && make install
  3. If you have the error output that ./autogen.sh: 10: ./autogen.sh: autoreconf: not found Now use ./configure --enable-maintainer-mode . You need to install a build dependencies. Run sudo apt-get install autoconf automake pkg-config libgtk-3-dev and execute autogen.sh
  4. If that successfully, you can regenerate of configure file again using ./configure && make && make install
  5. if the gsl-config program is not on your PATH, you may need to set the GSL_CONFIG environment variable to point to it.

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.