免费注册 查看新帖 |

Chinaunix

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

shared library "expat.5" does not exist [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-06 10:02 |只看该作者 |倒序浏览
expat2 我都安装卸载了N遍了. 还是提示 expat.5 - not found
--------------------------------------------------------------------------------------------------------
hello# make install
===>   php5-gd-5.1.4 depends on executable: phpize - found
===>   php5-gd-5.1.4 depends on file: /usr/local/bin/autoconf259 - found
===>   php5-gd-5.1.4 depends on shared library: freetype.9 - found
===>   php5-gd-5.1.4 depends on shared library: png.5 - found
===>   php5-gd-5.1.4 depends on shared library: jpeg.9 - found
===>   php5-gd-5.1.4 depends on shared library: t1.5 - not found
===>    Verifying install for t1.5 in /usr/ports/devel/t1lib
===>   t1lib-5.1.0_1,1 depends on executable: gmake - found
===>   t1lib-5.1.0_1,1 depends on file: /usr/local/bin/libtool - found
===>   t1lib-5.1.0_1,1 depends on shared library: X11.6 - not found
===>    Verifying install for X11.6 in /usr/ports/x11/xorg-libraries
===>   xorg-libraries-6.8.2 depends on executable: imake - found
===>   xorg-libraries-6.8.2 depends on shared library: freetype.9 - found
===>   xorg-libraries-6.8.2 depends on shared library: fontconfig.1 - not found
===>    Verifying install for fontconfig.1 in /usr/ports/x11-fonts/fontconfig
===>   fontconfig-2.2.3,1 depends on executable: gmake - found
===>   fontconfig-2.2.3,1 depends on executable: pkg-config - found
===>   fontconfig-2.2.3,1 depends on shared library: freetype.9 - found
===>   fontconfig-2.2.3,1 depends on shared library: expat.5 - not found
===>    Verifying install for expat.5 in /usr/ports/textproc/expat2
===>   Returning to build of fontconfig-2.2.3,1
Error: shared library "expat.5" does not exist
*** Error code 1

Stop in /usr/ports/x11-fonts/fontconfig.
*** Error code 1

Stop in /usr/ports/x11/xorg-libraries.
*** Error code 1

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

Stop in /usr/ports/graphics/php5-gd.
---------------------------------------------------------------------------------------------
expat2 安装完毕显示,是不是问题出在这呢?
hello# make install
===>  Installing for expat-2.0.0_1
===>   Generating temporary packing list
===>  Checking if textproc/expat2 already installed
/bin/sh ./conftools/mkinstalldirs /usr/local/lib /usr/local/include
/bin/sh ./libtool --mode=install /usr/bin/install -c -o root -g wheel libexpat.la /usr/local/lib/libexpat.la
/usr/bin/install -c -o root -g wheel .libs/libexpat.so.6 /usr/local/lib/libexpat.so.6
(cd /usr/local/lib && { ln -s -f libexpat.so.6 libexpat.so || { rm -f libexpat.so && ln -s libexpat.so.6 libexpat.so; }; })
(cd /usr/local/lib && { ln -s -f libexpat.so.6 libexpat.so || { rm -f libexpat.so && ln -s libexpat.so.6 libexpat.so; }; })
/usr/bin/install -c -o root -g wheel .libs/libexpat.lai /usr/local/lib/libexpat.la
/usr/bin/install -c -o root -g wheel .libs/libexpat.a /usr/local/lib/libexpat.a
chmod 644 /usr/local/lib/libexpat.a
ranlib /usr/local/lib/libexpat.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so( manual pages.
----------------------------------------------------------------------
for FN in ./lib/expat.h ./lib/expat_external.h ; do install  -o root -g wheel -m 444 $FN /usr/local/include ; done
/bin/sh ./conftools/mkinstalldirs /usr/local/bin /usr/local/man/man1
/bin/sh ./libtool --mode=install install  -s -o root -g wheel -m 555 xmlwf/xmlwf /usr/local/bin/xmlwf
install -o root -g wheel -m 555 -s xmlwf/.libs/xmlwf /usr/local/bin/xmlwf
install  -o root -g wheel -m 444 ./doc/xmlwf.1 /usr/local/man/man1
===>   Compressing manual pages for expat-2.0.0_1
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for expat-2.0.0_1

论坛徽章:
0
2 [报告]
发表于 2006-06-06 10:46 |只看该作者
查看 ports 里 Makefile 内容,似乎只有这里提到 expat.5 这个文件

# New ports collection makefile for:    expat
# Date created:         Thu Aug 26 14:38:07 CEST 1999
# Whom:                 Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD: ports/textproc/expat2/Makefile,v 1.32 2006/02/23 10:39:20 ade Exp $
#

PORTNAME=       expat
PORTVERSION=    2.0.0
PORTREVISION=   1
CATEGORIES=     textproc
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=     expat

MAINTAINER=     kuriyama@FreeBSD.org
COMMENT=        XML 1.0 parser written in C

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=       --build=${ARCH}-portbld-freebsd${OSREL}
ALL_TARGET=     default
INSTALLS_SHLIB= yes
MAN1=           xmlwf.1

SHLIB_MAJOR=    6

MAKE_ENV=       LIBCURRENT="${SHLIB_MAJOR}" \
                SHELL="/bin/sh"
PLIST_SUB=      SHLIB_MAJOR="${SHLIB_MAJOR}"

list-depend-ports:
        cd ${PORTSDIR}; \
        find . -mindepth 3 -maxdepth 3 -name Makefile -execdir sh -c \
                'find . -type f | grep -v CVS | xargs grep -q expat.5' \; \
                -print

.include <bsd.port.mk>

最后出现似乎在找 依赖的包. 我看不大懂,有高手指点下吗? 把 expat.5 给弄出来.

论坛徽章:
0
3 [报告]
发表于 2006-06-06 18:05 |只看该作者
ding ...

论坛徽章:
0
4 [报告]
发表于 2006-06-06 18:39 |只看该作者
更新ports

论坛徽章:
0
5 [报告]
发表于 2006-06-06 20:39 |只看该作者
我装机器前刚更新过PORTS的.现在 expat 版本是 2.0.0.1,更新还有用么?

论坛徽章:
0
6 [报告]
发表于 2006-06-06 20:56 |只看该作者
expat的版本应该是ports中的最新的版本,ldconfig -r|grep expat得到的结果应该是expat.6,但是
我不知道你的ports中的其他的软件依赖的却是expat.5

论坛徽章:
0
7 [报告]
发表于 2006-06-07 09:20 |只看该作者
ocean390  所言既是.看来并不是 expat 安装问题. 呵呵... 轻松点了.

我这生成的果然是6 了.
84:-lexpat.6 => /usr/local/lib/libexpat.so.6

其他的我没用最新的.是否有个安装先后的问题?

先 MYSQL - apache - php - php_exptensions , 那把 expat 放在哪? apache 前?

和这有关吗?

论坛徽章:
0
8 [报告]
发表于 2006-06-07 10:05 |只看该作者
能不能 通过 ldconfig 更改动态库的内容?

论坛徽章:
0
9 [报告]
发表于 2006-06-07 10:24 |只看该作者
我直接更改了 Makefile 里的 expat.5 -> expat.6

结果: depends on shared library: expat.6 - found
gmake: Makefile: No such file or directory
gmake: *** No rule to make target `Makefile'.  Stop.
*** Error code 2
这个错误会和 expat.6 有关吗?

郁闷到极点了.

论坛徽章:
0
10 [报告]
发表于 2006-06-07 11:18 |只看该作者
但是如果是最新的ports tree的话,里面应该依赖的都是expat.6吧,你可以是一下另外一个方法,
ln -s libexpat.so.6 libexpat.so.5,然后/etc/rc.d/ldconfig一下,可能可以。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP