FreeBSD 6.0-RELEASE 下使用prots安装 jdk15遇到的一个问题

# cd /usr/ports/java/jdk15/
# make install
...
/bin/sh /usr/ports/graphics/cairo/work/gnome-libtool --tag=CC --mode=link cc  -O2 -fno-strict-aliasing -pipe -march=pentiumpro   -pthread -o imagediff  imagediff.o libcairotest.la ../src/libcairo.la  -pthread -lm
cc -O2 -fno-strict-aliasing -pipe -march=pentiumpro -pthread -o .libs/imagediff imagediff.o -pthread  ./.libs/libcairotest.a ../src/.libs/libcairo.so -L/usr/X11R6/lib -lXrender -lX11 -lXext -L/usr/local/lib -lpng /usr/local/lib/libglitz.so -lfontconfig -lfreetype -lz -pthread -lm -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: warning: libexpat.so.5, needed by /usr/X11R6/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetElementHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetDoctypeDeclHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParserFree'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetCharacterDataHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ErrorString'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParseBuffer'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParserCreate'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetUserData'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetErrorCode'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetBuffer'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetCurrentLineNumber'
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4/test.
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4.
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.0.4.
*** Error code 1

Stop in /usr/ports/graphics/cairo.
*** Error code 1

Stop in /usr/ports/x11-toolkits/pango.
*** Error code 1

Stop in /usr/ports/x11-toolkits/gtk20.
*** Error code 1

Stop in /usr/ports/devel/gconf2.
*** Error code 1

Stop in /usr/ports/www/mozilla.
*** Error code 1

Stop in /usr/ports/java/jdk15.


原因:
看看你的/usr/lib/;/usr/X11R6/lib;/usr/local/lib/下面有没有“libexpat.so*”的文件,可能是你用ports安装软件将expat的库文件升级了。
做个名为"libexpat.so.5"的符号连接到那个文件即可。
如果没有,用ports安装expat(到/usr/ports下面make search一下),然后再做符号连接。
如果你的系统有"libexpat.so.5",运行下面的命令试试:
ldconfig -m PATH(文件所在路径)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值