免费注册 查看新帖 |

Chinaunix

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

./configure 找不到路径的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-15 11:26 |只看该作者 |倒序浏览
不好意思,我之前帖子发错地方了,而悬赏分又不知道怎么转移过来,麻烦大家到
http://bbs.chinaunix.net/thread-1159207-1-1.html
查看问题,谢谢了~~

论坛徽章:
0
2 [报告]
发表于 2008-06-15 11:34 |只看该作者
我用./configure && make 安装sumo时,出现:
configure: error: xerces-lib not found. Specify path with option --with-xerces-libraries=DIR.
我就通过软件包管理器搜索xerces-c,点击安装之后,再去运行./configure && make ,结果还是出现同样的错误。
我用find, whereis 都找不到xerces,请问ubuntu的软件包安装之后路径是什么?
PS. 我刚从红旗6转到linux mint的系统,对ubuntu不熟,麻烦大家帮帮忙,谢谢了~

明显是缺文件xerces-lib 可以在goolge下个

论坛徽章:
0
3 [报告]
发表于 2008-06-15 11:39 |只看该作者
谢谢cnjnhu的提醒,不过我已经用新立德软件管理包下载了xerces-c++了呀,为什么问题还是没解决?

论坛徽章:
0
4 [报告]
发表于 2008-06-15 11:44 |只看该作者
让你找这个文件 xerces-lib 应该是库文件。
你可以用find 找一下  find /  -name exeres-lib
还有就是有这个文件,但是没链接到库 ldd  一下
加路径到 /etc/ld.so.conf  然后运行ldconfig

最好还是考个到你的/lib /usr/lib

[ 本帖最后由 cnjnhu 于 2008-6-15 13:24 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-06-15 11:52 |只看该作者
共享库文件的路径一般为/usr/lib,但我在./configure后边加上这个路径也不行。
使用sudo find / -name xerces-lib,好像是没有权限:
daisy@daisy ~/Desktop/sumo/sumo-0.9.8 $ sudo find / -name xerces-lib
find: /home/daisy/.gvfs: Permission denied

论坛徽章:
0
6 [报告]
发表于 2008-06-15 13:30 |只看该作者
./configure --prefix=/opt  这里是把软件安装到这个路径

共享库一般是/lib /usr/lib ,ld.so会优先查找的  可以查看LD_LIBYRARY_PATH环境变量

你可以用ldconfig -p |grep xerces-lib 看共享库链接对吗?

论坛徽章:
0
7 [报告]
发表于 2008-06-16 22:01 |只看该作者
谢谢cnjnhu,不过问题还是没有解决~
以下是我需要配置的环境:
    *  First check whether your Linux distribution comes with a xerces-c package and install it together with the header files (for SuSE users this is the -dev package). Version 2.5 should suffice.
    * Second download the sources of SUMO, Proj, GDAL, Fox (if you want a GUI), and Xerces-C (if it does not come with your distribution).
    * If you are building a fresh repository checkout and don't need precise geocoordinates you can leave out Proj and GDAL.
不知道是不是因为它们的依赖关系的问题...

论坛徽章:
0
8 [报告]
发表于 2008-06-16 22:39 |只看该作者
好象是我之前没装gdal,安装之后,缺少xerces-lib的问题好像解决了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP