免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2299 | 回复: 3
打印 上一主题 下一主题

编译,安装一个软件时提示找不到libgnomeprint-2.2。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-18 10:50 |只看该作者 |倒序浏览
RHEL4系统,编译,安装linsmith时提示找不到libgnomeprint-2.2问题。
以下是./configure中止的提示信息:
......
checking for GNOMEPRINT... Package libgnomeprint-2.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgnomeprint-2.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgnomeprint-2.2' found
configure: error: Package requirements (libgnomeprint-2.2 >= 2.2) were not met:



Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GNOMEPRINT_CFLAGS
and GNOMEPRINT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

我找了libgnomeprint-2.2.1.3.tar.bz2和libgnomeprint-2.2.1.3-0.ximian.6.2.i586.rpm,分别都装了,而且也执行了

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

并且我也能在/usr/local/lib/pkgconfig里面看到有libgnomeprint-2.2.pc文件,可就是./configure的时候总是中止,然后提示上面的信息。
请问这个要怎么解决?谢谢。

[ 本帖最后由 dpx4086 于 2007-8-18 10:52 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-08-19 10:21 |只看该作者
有人能帮帮我吗?谢谢

论坛徽章:
0
3 [报告]
发表于 2007-08-19 16:22 |只看该作者

回复 #2 dpx4086 的帖子

你看的懂那个报错什么意思不?  

人家明明告诉你,说你的环境变量有问题。 错误明显的告诉你,如果你安装的时候没有安装到标准的地方,那么请在编译的时候指定你的LIB和 .h 文件(其实就是连接库和头文件找不到)

那么你在编译的时候,也就是./configure 记得告诉把你的头文件和lib指定一下路径。

现在学LINUX的人,根本不去动脑。

论坛徽章:
0
4 [报告]
发表于 2007-08-19 16:24 |只看该作者
或者你试一下把你的头文件和lib全部联接到 /usr/include 和/usr/lib 看看,这个路径就是默认放头文件和连接库的位置。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP