如何在 ubuntu 中的 PKG_CONFIG_PATH 变量中设置目录
我想将包含 .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**
I want to add a directory containing a .pc file, to the PKG_CONFIG_PATH variable, that is required for a certain program to run on Ubuntu. I tried to find out a solution from google but it didn't really work.
I am pasting the log here. Please help.
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**
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这条路可能有点转移注意力。
我遇到了类似的问题(在安装不同的软件包时)。我通过从项目网站(本例中为 linkparser)下载最新的项目 tar 并按照包含的说明进行安装来解决了该特定问题。
这个帖子有点帮助我朝正确的方向发展。
I think the path may be a bit of a red herring.
I had a similar issue (while installing a different package). I solved that particular issue by downloading a latest project tar from the project website (linkparser in this case) and installing following the instructions included.
This thread kind of helped me in the right direction.