29

I am trying to install GSL libraries on Ubuntu 14.04 via terminal. I searched on Google but I couldn't find any command which can install it from the terminal but just through the Ubuntu software center. How can it be installed via terminal?

35

The GSL source package provides the following binary packages:

  • gsl-bin: GNU Scientific Library (GSL) -- binary package
  • libgsl0-dbg: GNU Scientific Library (GSL) -- debug symbols package
  • libgsl0-dev: GNU Scientific Library (GSL) -- development package
  • libgsl0ldbl: GNU Scientific Library (GSL) -- library package

To install the library package, open a Terminal and type:

sudo apt-get install libgsl0ldbl
  • 2
    What's the difference between the different packages? Should I install gsl-bin or libgsl0ldbl? – becko Sep 23 '14 at 15:10
  • 1
    @becko: It depends on your needs, install gsl-bin as it will install both (gsl-bin depends on libgsl0ldbl) – Sylvain Pineau Sep 23 '14 at 15:21
  • 2
    @becko it really depends on your needs. If you only install/run some programs that requires gsl, then libgsl0ldbl should suffice. If you develop/compile some other program that requires gsl, libgsl0-dev could be required. – HongboZhu Feb 17 '16 at 14:46
  • @HongboZhu And what about gsl-bin? – becko Feb 17 '16 at 15:58
  • 1
    @becko gsl-bin contains pre-compiled binaries , which also uses the library libgsl0ldbl. The shared library is combined with the binary if it is only needed by the binary. Otherwise they are separated (as in this case). It is very likely that the gsl routines compiled in gsl-bin are required. So why not start with sudo apt-get install gsl-bin – HongboZhu Feb 18 '16 at 12:22
18

The packages for GSL can be found here
You can install just the library by using: apt-get install libgsl0ldbl

You can also install the development package and binary using: apt-get install gsl-bin libgsl0-dev

The resources/docs can also be installed using: apt-get install gsl-doc-info gsl-doc-pdf gsl-ref-html gsl-ref-psdoc

*depending on your setup you may need to use sudo before the apt-get command

protected by Sylvain Pineau Jun 21 '16 at 15:11

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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