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

发布于 2024-10-14 04:51:07 字数 766 浏览 5 评论 0原文

我想将包含 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒绊 2024-10-21 04:51:07

我认为这条路可能有点转移注意力。

我遇到了类似的问题(在安装不同的软件包时)。我通过从项目网站(本例中为 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文