简体   繁体   English

Gnu科学图书馆停止在Ubuntu 16.04中工作

[英]Gnu Scientific Library stopped working in Ubuntu 16.04

I had GSL (Gnu Scientific library) installed on my Ubuntu 14.04 and it was working fine. 我在Ubuntu 14.04上安装了GSL(Gnu科学库),并且运行良好。 I then upgraded to Ubuntu 16.04 and now if I try to compile C++ code using GSL I obtain the error message 然后,我升级到Ubuntu 16.04,现在,如果我尝试使用GSL编译C ++代码,则会收到错误消息

g++ -c FILE.cpp
In file included from FILE.cpp:1:0:
FILE.h:3:28: fatal error: gsl/gsl_matrix.h: No such file or directory
compilation terminated.
Makefile:42: recipe for target 'FILE.o' failed
make: *** [FILE.o] Error 1

How do I fix this issue? 如何解决此问题?

The upgrade appears to have removed older packages. 升级似乎已删除了较旧的软件包。 You will need to re-install them from the repository. 您将需要从存储库中重新安装它们。 The command apt-cache search gsl includes the following relevant packages: apt-cache search gsl命令包括以下相关软件包:

libgsl-dev - GNU Scientific Library (GSL) -- development package
libgsl2 - GNU Scientific Library (GSL) -- library package
gsl-bin - GNU Scientific Library (GSL) -- binary package

Since you're doing dev work, you should install libgsl-dev . 由于您正在进行开发工作,因此应安装libgsl-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM