安裝sysbench過程報錯,解決辦法
安裝sysbench過程包如下錯誤:
../libtool: line 838: X--tag=CC: command not found
../libtool: line 871: libtool: ignoring unknown tag : command not found
../libtool: line 838: X--mode=link: command not found
../libtool: line 1004: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1005: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 2231: X-g: command not found
../libtool: line 2231: X-O2: command not found
../libtool: line 1951: X-L/usr/local/mysql/lib: No such file or directory
../libtool: line 2400: Xsysbench: command not found
../libtool: line 2405: X: command not found
../libtool: line 2412: Xsysbench: command not found
../libtool: line 2420: mkdir /.libs: No such file or directory
../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lrt: command not found
../libtool: line 2547: X-lm: command not found
../libtool: line 2629: X-L/root/sysbench-0.4.12/sysbench: No such file or directory
../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lrt: command not found
../libtool: line 2547: X-lm: command not found
../libtool: line 2629: X-L/root/sysbench-0.4.12/sysbench: No such file or directory
../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lrt: command not found
../libtool: line 2547: X-lm: command not found
../libtool: line 5162: Xgcc -pthread "" "" -o @OUTPUT@ sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -L/root/sysbench-0.4.12/sysbench -lmysqlclient_r -lrt -lm: No such file or directory
../libtool: line 5163: Xgcc -pthread "" "" -o @OUTPUT@ sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o tests/fileio/libsbfileio.a tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -L/root/sysbench-0.4.12/sysbench -lmysqlclient_r -lrt -lm: No such file or directory
../libtool: line 5168: X: command not found
../libtool: line 5172: : command not found
make[2]: Leaving directory `/root/sysbench-0.4.12/sysbench'
make[1]: Leaving directory `/root/sysbench-0.4.12/sysbench'
make[1]: Entering directory `/root/sysbench-0.4.12'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/root/sysbench-0.4.12'
[root@localhost sysbench-0.4.12]#
解決方法:
1. 直接複製系統自帶的libtool到專案目錄,應該在/usr/bin目錄下,覆蓋程式碼檔案目錄下的libtool,再執行make
(沒裝就apt-get install libtool 或者 yum install libtool 安裝一下吧)
cp /usr/bin/libtool /root/sysbench-0.4.12
2. 修改aclocal.m4檔案,將上面的LIBTOOL='$(SHELL) $(top_builddir)/libtool'改成LIBTOOL='$(SHELL) /usr/bin/libtool'後重新執行./configure
[root@localhost sysbench-0.4.12]# vi aclocal.m4
LIBTOOL='$(SHELL) /usr/bin/libtool'
3. 將原始碼目錄下libtool指令碼中所有的$ECHO替換成$echo. 或者將指令碼檔案ltmain.sh裡的$echo替換成$ECHO,都一樣,重新執行./configure
# An echo program that does not interpret backslashes.
ECHO="echo"
改成: echo="echo"
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26250550/viewspace-1682634/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- ROS 安裝過程中出現“hash校驗和不符”報錯解決辦法ROS
- 11g rac 安裝過程中常見錯誤解決辦法
- Windows 7安裝過程當機的解決辦法Windows
- Perl CPAN安裝報錯CPAN::Modulelist的解決辦法
- 關於npm install安裝報錯的解決辦法NPM
- PhpCms安裝報錯怎麼辦?PHPCMS安裝使用常見問題解決辦法PHP
- Mysql安裝過程中遇到的問題及解決辦法MySql
- Python-安裝部分包報錯解決辦法彙總Python
- Xamarin提示安裝包錯誤解決辦法
- 安裝RAC 執行root.sh指令碼報錯,解決辦法指令碼
- sysctl -P 報錯解決辦法
- OEM安裝報錯不是內部或外部程式的解決過程
- 安裝wsl錯誤的一種解決辦法
- cnpm link 報錯解決辦法NPM
- git報錯400的解決辦法Git
- python3.9安裝wordcloud出錯解決辦法PythonCloud
- Win7安裝錯誤提示與解決辦法Win7
- tensorflow安裝使用過程錯誤及解決方法
- nvidia驅動安裝過程中報已有nouveau驅動錯誤解決
- 資料庫安裝過程報錯:at.java.awt.X11GraphicsEnvironment解決之道資料庫Java
- 記一次wordpress安裝過程中遇到的問題及解決辦法
- Linux下安裝oracle,遇到錯誤的解決辦法LinuxOracle
- Fedora 8下永中Office安裝出錯的解決辦法
- Mybatis批量更新SQL報錯☞解決辦法MyBatisSQL
- 執行Docker命令報錯解決辦法Docker
- isNaN("abc")編譯報錯解決辦法NaN編譯
- 安裝sass報錯解決方案
- Could not resolve host: 'localhost 報錯解決辦法localhost
- 建庫時EM報錯的解決辦法
- IOConsole Updater 報錯解決辦法
- puppeteer 安裝失敗的解決辦法
- Laravel安裝horizon報錯解決方案Laravel
- mac Pro 安裝scrapy報錯解決Mac
- win安裝wordcloud報錯解決方案Cloud
- 安裝sysbench報錯 libmysqlclient.so.18()(64bit)IBMMySqlclient
- Windows 8.1應用安裝錯誤0×80004005的解決辦法Windows
- livemesh 安裝錯誤號:80070422 解決辦法