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

标签 ubuntu sphinx pkg-config

我想在 PKG_CONFIG_PATH 变量中添加一个包含 .pc 文件的目录,这是某个程序在 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**

最佳答案

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

我有一个类似的问题(在安装不同的包时)。我通过从项目网站(在本例中为链接解析器)下载最新的项目 tar 并按照包含的说明进行安装,解决了该特定问题。

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

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

关于ubuntu - 如何在 ubuntu 的 PKG_CONFIG_PATH 变量中设置目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4769383/

相关文章:

python - meson 找到 python3 二进制文件,但找不到 python3 依赖项

c - 如何将库添加到 PKG-CONFIG Mac

windows-7 - 在 Ubuntu 和 Windows 7 之间共享双引导存储库?

在ubuntu上强制下载php

PHP无法在ubuntu中连接到postgreSQL

javascript - js2咖啡: command not found

database - Sphinx 过滤器 - 我可以在过滤器属性之间设置 'OR' 吗?

mysql - 一个好的电子商务搜索是如何工作的?

mysql - sphinx 错误 : failed to merge index

cmake - 从 `pkg-config` 使用 `cmake` 的正确方法是什么?