Gnu 科学图书馆在 Ubuntu 16.04 中停止工作 [英] Gnu Scientific Library stopped working in Ubuntu 16.04

查看:21
本文介绍了Gnu 科学图书馆在 Ubuntu 16.04 中停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Ubuntu 14.04 上安装了 GSL(Gnu Scientific 库)并且运行良好.然后我升级到 Ubuntu 16.04,现在如果我尝试使用 GSL 编译 C++ 代码,我会收到错误消息

I had GSL (Gnu Scientific library) installed on my Ubuntu 14.04 and it was working fine. I then upgraded to Ubuntu 16.04 and now if I try to compile C++ code using GSL I obtain the error message

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?

推荐答案

升级似乎删除了旧包.您需要从存储库重新安装它们.命令 apt-cache search gsl 包含以下相关包:

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:

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

既然你在做开发工作,你应该安装libgsl-dev.

Since you're doing dev work, you should install libgsl-dev.

这篇关于Gnu 科学图书馆在 Ubuntu 16.04 中停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆