我正在尝试根据此处的说明在 ubuntu 上安装 lalsuite:
https://pycbc.org/pycbc/latest/html/install_lalsuite.html
一切都很顺利,直到我跑了
./00boot
./configure --prefix=${VIRTUAL_ENV}/opt/lalsuite --enable-swig-python
Run Code Online (Sandbox Code Playgroud)
我得到的错误是:
configure: error: could not find the zlib library
Run Code Online (Sandbox Code Playgroud)
我正在使用 virtualenv 在虚拟环境中执行所有这些操作。我相当确定我安装了 zlib 库:
$ sudo apt install zlib1g
Run Code Online (Sandbox Code Playgroud)
在彻底搜索解决方案后,我发现有人遇到了同样的问题:
https://ubuntuforums.org/showthread.php?t=2217198&page=2&s=3d14badd56b8ebb236dfc0970ba19435
但我真的不明白他们的解决方案。我对他们修复的解释是执行以下操作:
首先重新安装 pkg-config:
sudo apt-get update
sudo apt-get install pkg-config
Run Code Online (Sandbox Code Playgroud)
然后写下答案建议的行:
echo 'export PKG_CONFIG=/usr/bin/pkg-config' >> ~/.bashrc
Run Code Online (Sandbox Code Playgroud)
(顺便说一下,我在 virtualenv 中做所有这些)。
然后重新启动所有内容并再次尝试相同的操作:
./00boot
./configure --prefix=${VIRTUAL_ENV}/opt/lalsuite --enable-swig-python
Run Code Online (Sandbox Code Playgroud)
可悲的是,出现了同样的错误。
任何帮助表示赞赏。
error-handling pkg-config configure virtualenv software-installation