Install GNUScientificlibrary (GSL) on Ubuntu)

Source: Internet
Author: User
Due to the needs of data processing in this paper, we need to use the libeemd package and install the gsl Scientific Library. There is no way to do this in Windows. We can only switch to Ubuntu for scientific computing. GSL (GNUScientificLibrary), as one of the three major scientific computing libraries, not only covers basic linear algebra, differential equations, integral, random numbers, number of combinations, equation root, polynomial root, sorting, etc, there are also simulated annealing, Fast Fourier transformation, wavelet, interpolation, basic splines, least square fitting, and special functions.

Because of the data processing needs of the thesis, we need to uselibeemdThis package needs to be installedgslScientific database, WindowsThere is no way to proceed.UbuntuPerform scientific computing.

GSL(GNU Scientific Library)As one of the three major scientific computing libraries, in addition to covering basic linear algebra, differential equations, integral, random numbers, number of combinations, equation root, polynomial root, sorting, and simulated annealing, fast Fourier Transform, wavelet, interpolation, basic splines, Least Square Fitting, special functions, etc.

Of course, you most want to install the GSL scientific database through commands.

Method 1:

The GSL source code 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

Run the following command on the terminal:

sudo apt-get install libgsl0ldbl

Note: Install different versions based on your needs.gsl-binAll content (gsl - binDependencylibgsl0ldbl)

Method 2:

Compile the source code of ubuntu by yourself (gsl1.6 is used, which is too troublesome on windows). decompress the package and enter the directory. Execute:

./configuremakemake install

This process takes several minutes. Note thatmake installThe dynamic library and header files are automatically copied/usr/local/libAnd/usr/local/includeBut if the two directories do not have the write permission, the two directories cannot be created, resulting in installation failure.sudo make installOr manually grant permissions to solve this problem.

Note: you can still use the former to complete the competition.

sudo apt-get install libgsl0-dev

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2016-04/129729.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.