我正在尝试安装一个软件包,它依赖于gsl。在包文档中,提到了:
0. This installation is known to work easily if you use Mac OS X and have
installed python and gsl using MacPorts.
1. Modify the setup_cfg.py
Change the 'GSL_INCLUDE' and 'GSL_LIB' variables to your path to the GSL
header and library files. For example:
GSL_INCLUDE = 'some_path/gsl-1.15/include'
GSL_LIB = 'some_path/gsl-1.15/lib'我使用ubuntu并使用
sudo apt-get install libgsl0-dev如何找到gsl库路径?'some_path/gsl-1.15/include‘;'some_path/gsl-1.15/lib’
abhishek:/usr/lib$ pkg-config --libs gsl
-lgsl -lgslcblas -lm发布于 2015-12-19 09:28:05
如果您安装了libgsl0-dev包,那么它的头文件应该在/usr/include/gsl中,它的库应该在/usr/lib中。
您可以通过查看命令dpkg -L libgsl0-dev的输出或查看http://packages.ubuntu.com上的联机文件列表来确认这一点。
我认为从您发布的信息中无法知道您正在安装的软件是否需要gsl子目录,也就是说,它是否想要。
GSL_INCLUDE = '/usr/include/gsl'或者只是
GSL_INCLUDE = '/usr/include'(用C语言来说,这就是像#include <gsl/cblas.h>和#include <cblas.h>这样的东西之间的区别)。你可能需要两者都试试。
注意,/usr/include和/usr/lib是gcc等工具的标准搜索路径。最常见的情况是,当开发包安装到这样的路径时,就没有必要显式地设置它们--您将看到pkg-config --cflags --libs没有输出任何-I或-L包含路径或库路径指令。
https://askubuntu.com/questions/710907
复制相似问题