In order to use gnu gsl library I've installed it with the following command :
sudo apt-get install libgsl0ldbl
When I write a simple c++ code just to check whether I installed it correctly or not, g++ says that
fatal error: gsl/gsl_vector.h: No such file or directory
My code can be seen below :
#include <iostream>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_statistics.h>
using namespace std;
int main()
{
return 0;
}
what might be the reason ? Thanks in advance. [I'm trying to run it on ubuntu 14.04 64-Bit]
edit
I tried to compiled it with the following command
g++ test.cpp
Best Answer
There are a number of libgsl packages, as shown by an
apt-cache search
:In more detail,
apt-cache show libgsl0ldbl
includes the descriptionwhereas
apt-cache show libgsl0-dev
hasso in this case you need to install
libgsl0-dev
This is quite a common distinction in the Ubuntu/Debian packaging system: there is usually a "runtime" package, and a "development" package that is indicated by a
-dev
suffix. The-dev
package is the one to look for when building software from source - it will install the runtime package as a dependency if it is required.