如何在ubuntu中的PKG_CONFIG_PATH变量中设置目录

问题描述 投票:2回答:1

我想将一个包含.pc文件的目录添加到PKG_CONFIG_PATH变量中,这是某个程序在Ubuntu上运行所必需的。我试图从谷歌找到一个解决方案,但它并没有真正起作用。

我在这里粘贴日志。请帮忙。

tasbeer@tasbeer-desktop:~/Android/pocketsphinx/swig$ make
cc -g -Wall -DPIC -fPIC -I/usr/lib/jvm/default-java/include `pkg-config
--cflags sphinxbase pocketsphinx`  -c -o pocketsphinx_wrap.o
pocketsphinx_wrap.c
**Package sphinxbase was not found in the pkg-config search path.
Perhaps you should add the directory containing `sphinxbase.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sphinxbase' found
Package pocketsphinx was not found in the pkg-config search path.
Perhaps you should add the directory containing `pocketsphinx.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pocketsphinx' found**
ubuntu sphinx pkg-config
1个回答
0
投票

我认为这条路可能有点像红鲱鱼。

我遇到了类似的问题(安装不同的软件包时)。我通过从项目网站(本例中为linkparser)下载最新项目tar并按照包含的说明进行安装来解决该特定问题。

这个线程帮助我朝着正确的方向:

http://www.linuxforums.org/forum/suse-linux/87624-adjusting-pkg_config_path-environment-variable.html

© www.soinside.com 2019 - 2024. All rights reserved.