【问题标题】:installing new version of libtool for -- libwebsocket warmcat为 -- libwebsocket warmcat 安装新版本的 libtool
【发布时间】:2013-03-29 14:01:14
【问题描述】:

我正在安装 libwebsocket,它给了我错误:---
http://git.warmcat.com/cgi-bin/cgit/libwebsockets/snapshot/libwebsockets-1.0-chrome25-firefox17.tar.gz

/pi/libwebsockets-1.0-chrome25-firefox17$ ./autogen.sh 
Preparing the libwebsockets build system...please wait

Found GNU Autoconf version 2.69
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:",
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:",
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Found GNU Automake version 1.13
Found GNU Libtool version 1.5.26

Automatically preparing build ... Warning: autoreconf failed
Attempting to run the preparation steps individually

Preparing build ... ERROR: aclocal failed

目前当我运行 libtool --version:---

/home/pi$ libtool --version
ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)

Copyright (C) 2008  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.

如果我运行 whereis 命令,我会得到以下输出:----

/pi/libtool-2.4.2$ whereis libtool
libtool:

我必须安装 libtool 版本 2.4.2,以摆脱上述错误。
现在我已经为 libtool 安装了 2.4.2 版本:---
ftp://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz

安装 2.4.2 版本的 libtool 后,如果我运行 whereis 命令,我会得到以下输出:----

/pi/libtool-2.4.2$ whereis libtool
libtool: /usr/local/bin/libtool

但是如果我运行 libtool --version:---

/home/pi$ libtool --version
ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)

为什么 libtool --version 命令没有显示最新安装的 libtool 2.4.2 版本?

当我运行 ./autogen.sh 时,libwebsocket 也出现同样的错误。

【问题讨论】:

  • 这个文件是什么&在哪里 --- ltmain.sh ?它隐藏了实际安装的 libtool 吗?请提出建议。

标签: linux websocket embedded-linux libtool


【解决方案1】:

您是否尝试过使用 CMake 的最新版本(1.22)?构建起来很简单。

$ git clone git://git.libwebsockets.org/libwebsockets
$ cd libwebsockets/

阅读 README.build。不知道旧版本的libwebsockets,但我猜是 现在更倾向于使用 CMake 而不是 autotools。

$ mkdir build && cd build
$ cmake ..  -DCMAKE_INSTALL_PREFIX:PATH=/usr/local

最后一行类似于:

$ ./configure --prefix=/usr/local

整个东西构建得非常快,没有任何问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-01-07
    • 1970-01-01
    • 1970-01-01
    • 2013-08-07
    • 1970-01-01
    • 1970-01-01
    • 2012-09-16
    相关资源
    最近更新 更多