我正在安装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的错误。

最佳答案

您是否使用CMake尝试了最新版本(1.22)?直接构建。

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


阅读README.build。不知道libwebsockets的旧版本,但是我猜它是
现在更多的是使用CMake而不是自动工具。

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


最后一行类似于:

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


整个过程很快完成,没有任何问题。

关于linux - 安装新版本的libtool的目的— libwebsocket warmcat,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15704808/

10-11 16:51