日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

升级libtool带来的问题已经解决

發布時間:2023/12/13 综合教程 36 生活家
生活随笔 收集整理的這篇文章主要介紹了 升级libtool带来的问题已经解决 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

今天新裝了個linux系統。因為版本比較低,所以對libtool, automake, autoconf,m4,pkg-config進行了升級。

結果沒有想到出了一個很是奇怪的錯誤。是在編譯一個程序時,configure已經過了,在make的時候報的錯誤。

libtool: unrecognized option `--tag=CC'
Try `libtool --help' for more information.

它說不認識--tag這個參數,查看了,可是是有的:

[zhaowei@localhost src]$ libtool --help
Usage: libtool [OPTION]... [MODE-ARG]...

Provide generalized library-building support services.

--config show all configuration variables
--debug enable verbose shell tracing
-n, --dry-run display commands without modifying any files
--features display basic configuration information and exit
--finish same as `--mode=finish'
--help display this help message and exit
--mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
--quiet same as `--silent'
--silent don't print informational messages
--tag=TAG use configuration variables from tag TAG
--version print version information

MODE must be one of the following:

clean remove files from the build directory
compile compile a source file into a libtool object
execute automatically set library path, then run a program
finish complete the installation of libtool libraries
install install libraries or executables
link create a library or an executable
uninstall remove libraries from an installed directory

MODE-ARGS vary depending on the MODE.Try `libtool --help --mode=MODE' for
a more detailed description of MODE.

Report bugs to <>.

后來發現,在我編譯的這個程序目錄下的libtool沒有這個--tag參數,這個東西是autogen.sh這個腳本產生configure文件時生成的。

現在問題明朗了,libtool會使用ltmain.sh這個腳本,每次生成的時候,libtool會拷貝一個ltmain.sh到當前的程序目錄中。那 就是這個ltmain.sh的版本不對了。我升級了libtool,但還保留了原來的,于是新的libtool居然使用了舊的ltmain.sh。新的 libtool我安裝到/usr/local/下了,所以ltmain.sh在/usr/local/share/libtool下,老的在/usr /share/libtool下,我把老的libtool徹底刪除就ok了。

總結

以上是生活随笔為你收集整理的升级libtool带来的问题已经解决的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。