在 pkg-config 搜索路径中找不到包
Package was not found in the pkg-config search path
我正在尝试在 ubuntu 18.04 上安装 this 软件包。安装说明说安装命令应该如下所示:
- 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 :
- 以这种方式配置和编译 libmaus2:
./configure --prefix=/SOFT/libmaus2 && make -j8 install
export PKG_CONFIG_PATH=/SOFT/libmaus2/lib/pkgconfig
./configure --prefix=/SOFT/biobambam2 && make -j8 install
我正在尝试在 ubuntu 18.04 上安装 this 软件包。安装说明说安装命令应该如下所示:
- 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 :
- 以这种方式配置和编译 libmaus2:
./configure --prefix=/SOFT/libmaus2 && make -j8 install
export PKG_CONFIG_PATH=/SOFT/libmaus2/lib/pkgconfig
./configure --prefix=/SOFT/biobambam2 && make -j8 install