首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Libtool错配版本

Libtool错配版本
EN

Stack Overflow用户
提问于 2016-05-25 06:29:08
回答 1查看 439关注 0票数 1

我试图在Centos 5.11 (内核2.6.18-409.el5)上安装USBIP,但是当我输入"make“时总是会出现这个错误:

代码语言:javascript
复制
make[1]: Entering directory "/root/Downloads/usbip-0.1.7/src"
Making all in lib
make[2]: Entering directory "/root/Downloads/usbip-0.1.7/src/lib"
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -Wall -W -Wstrict-prototypes -std=gnu99  -DUSBIDS_FILE='"/usr/local/share/usbip/usb.ids"' -g -O2 -MT libusbip_la-names.lo -MD -MP -MF ".deps/libusbip_la-names.Tpo" -c -o libusbip_la-names.lo "test -f "names.c" || echo './'"names.c; \
        then mv -f ".deps/libusbip_la-names.Tpo" ".deps/libusbip_la-names.Plo"; else rm -f ".deps/libusbip_la-names.Tpo"; exit 1; fi   


libtool: Version mismatch error.  This is libtool 1.9b, but the
 libtool: definition of this LT_INIT comes from an older release.
    libtool: You should recreate aclocal.m4 with macros from libtool 1.9b
    libtool: and run autoconf again.
    make[2]: [libusbip_la-names.lo] Error 1
    make[2]: Leaving directory "/root/Downloads/usbip-0.1.7/src/lib"
    make[1]: [all-recursive] Error 1
    make[1]: Leaving directory "/root/Downloads/usbip-0.1.7/src"
    make: *** [all] Error 2

我在论坛上看到了几种解决方案,比如"autoreconf -vfi“,但它对我不起作用。

目前,我试图重新安装libtool以获得最后一个版本,但我不能。当我输入“”时,我总是能够键入" libtool“:

代码语言:javascript
复制
[tuk@VM01 Downloads]# libtool --version
ltmain.sh (GNU libtool) 1.9b
Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

双生子总是在这里:

代码语言:javascript
复制
[tuk@VM01 Downloads]# find / -name "libtool*"
/opt/share/man/man1/libtoolize.1
/opt/share/man/man1/libtool.1
/opt/share/aclocal/libtool.m4
/opt/share/info/libtool.info-1
/opt/share/info/libtool.info-2
/opt/share/info/libtool.info
/opt/share/libtool
/opt/bin/libtool
/opt/bin/libtoolize
/usr/local/share/man/man1/libtoolize.1
/usr/local/share/man/man1/libtool.1
/usr/local/share/aclocal/libtool.m4
/usr/local/share/info/libtool.info-1
/usr/local/share/info/libtool.info-2
/usr/local/share/info/libtool.info
/usr/local/share/libtool
/usr/local/bin/libtool
/usr/local/bin/libtoolize
/usr/share/automake-1.9/am/libtool.am

我有什么办法来安装USBIP吗?谢谢你

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-25 12:02:42

解决了!

我有几个libtool的二进制文件:

代码语言:javascript
复制
[root@SVSLOFLEX2 ~]# which -a libtool
/usr/local/bin/libtool
/usr/bin/libtool

/usr/local/bin的版本是1.9b (而且它不工作)

我添加了这一行以使用另一个版本的libtool (默认情况下):

代码语言:javascript
复制
export PATH=/usr/bin:$PATH

/usr/bin的版本是1.5.22,现在已经安装了USBIP。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37429355

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档