![](/img/trans.png)
[英]Package webkitgtk-3.0 was not found in the pkg-config search path
[英]Package was not found in the pkg-config search path
我正在嘗試在 ubuntu 18.04 上安裝此package。 安裝說明說安裝命令應如下所示:
- autoreconf -i -f
- ./configure --with-libmaus2=${LIBMAUSPREFIX} \
--prefix=${HOME}/biobambam2
- make install
第一行似乎沒有任何錯誤。 當我嘗試像這樣運行第二行時:
./configure --with-libmaus2=/SOFT/libmaus2-2.0.794-release-20210706224245/ --prefix=/SOFT/biobambam2-2.0.182-release-20210412001032/
我收到以下錯誤:
configure: error: Package requirements (libmaus2 >= 2.0.774) were not met:
Package libmaus2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmaus2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libmaus2', required by 'world', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables libmaus2_CFLAGS
and libmaus2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我知道./configure
看不到我提供的庫目錄,但我不知道如何修復它。
您需要正確安裝 libmaus2 並正確設置 PKG_CONFIG_PATH:
./configure --prefix=/SOFT/libmaus2 && make -j8 install
export PKG_CONFIG_PATH=/SOFT/libmaus2/lib/pkgconfig
./configure --prefix=/SOFT/biobambam2 && make -j8 install
一般來說,安裝適當的開發者版本的庫就可以了。
“配置”搜索所需的庫,例如:
pkg-config --modversion libmaus2
通常,Ubuntu 分發兩個版本:一個是普通庫。 另一個是開發者版本,包含 pc 文件和 header 文件等用於 pkg-config,並在 pkg 名稱中添加了“-dev”。 您可以檢查可用的庫作為
apt-cache search libmaus
返回(在我的系統上 Ubuntu 22)
libmaus2-2
libmaus2-dev
如果安裝 libmaus2-dev,名為 libmaus2.pc 的 pc 文件將被安裝到,例如,/usr/lib/x86_64-linux-gnu/pkgconfig/libmaus2.pc Install libmaus2 不會得到那個。
如果您必須自己構建 libmaus 並安裝到不在 pkg-config 搜索路徑中的路徑,請執行類似
export PKG_CONFIG_PATH=/special/path/to/pkgconfig:${PKG_CONFIG_PATH}
注意:使用以下命令檢查 pkg-config 搜索路徑:
pkg-config --variable pc_path pkg-config
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.