1. 程式人生 > >雲伺服器 安裝sysbench報錯./libtool: line 841: X--tag=CC: command not found

雲伺服器 安裝sysbench報錯./libtool: line 841: X--tag=CC: command not found

重點內容背景,安裝sysbench編譯make報錯:

./libtool: line 841: X--tag=CC: command not found
../libtool: line 874: libtool: ignoring unknown tag : command not found
../libtool: line 841: X--mode=link: command not found
../libtool: line 1007: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line
1008: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 2234: X-g: command not found ../libtool: line 2234: X-O2: command not found ../libtool: line 1954: X-L/usr/local/mysql/lib: No such file or directory ../libtool: line 2403: Xsysbench: command not found
../libtool: line 2408: X: command not found ../libtool: line 2415: Xsysbench: command not found ../libtool: line 2550: X-lmysqlclient_r: command not found ../libtool: line 2550: X-lrt: command not found ../libtool: line 2550: X-lm: command not found ../libtool: line 2632: X-L/data/sysbench-0.4.12/sysbench: No such file
or directory ../libtool: line 2550: X-lmysqlclient_r: command not found ../libtool: line 2550: X-lrt: command not found ../libtool: line 2550: X-lm: command not found ../libtool: line 2632: X-L/data/sysbench-0.4.12/sysbench: No such file or directory ../libtool: line 2550: X-lmysqlclient_r: command not found ../libtool: line 2550: X-lrt: command not found ../libtool: line 2550: X-lm: command not found

1,可能原因:

(1)、沒裝依賴包libtool
(2)、安裝的版本不對(libtool版本過舊)
(3)、其它原因

2,解決方法:

安裝依賴包libtool、libtoo更新到新版本、用autoreconf代替autogen.sh,方法如下:

這裡採用最後一種種辦法:

autoreconf -i
configure
make
make install

3,然後configure就正常通過

[[email protected] sysbench-0.4.12]# sysbench --help
sysbench: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
[[email protected] sysbench-0.4.12]# 

4,報lib報錯

[root@bizdb01 sysbench-0.4.12]# find / -name libmysqlclient.so.18
/mnt/resource/mysql-5.6.12/libmysql/libmysqlclient.so.18
/usr/local/mysql/lib/libmysqlclient.so.18
[root@bizdb01 sysbench-0.4.12]# 

這說明sysbench無法找到mysql的庫檔案,這很可能是環境變數LD_LIBRARY_PATH沒有設定,設定後即可解決該問題:

echo "export LD_LIBRARY_PATH=/usr/local/mysql/lib" >> /etc/profile/
source /etc/profile/
[root@bizdb01 sysbench-0.4.12]# echo "export LD_LIBRARY_PATH=/usr/local/mysql/lib" >> /etc/profile
[root@bizdb01 sysbench-0.4.12]# source /etc/profile
[root@bizdb01 sysbench-0.4.12]# 
[root@bizdb01 sysbench-0.4.12]# 
[root@bizdb01 sysbench-0.4.12]# sysbench --help
Usage:
  sysbench [general-options]... --test=<test-name> [test-options]... command


General options:
  --num-threads=N            number of threads to use [1]
  --max-requests=N           limit for total number of requests [10000]
  --max-time=N               limit for total execution time in seconds [0]
  --forced-shutdown=STRING   amount of time to wait after --max-time before forcing shutdown [off]
  --thread-stack-size=SIZE   size of stack per thread [32K]
  --init-rng=[on|off]        initialize random number generator [off]
  --test=STRING              test to run
  --debug=[on|off]           print more debugging info [off]
  --validate=[on|off]        perform validation checks where possible [off]
  --help=[on|off]            print help and exit
  --version=[on|off]         print version and exit


Compiled-in tests:
  fileio - File I/O test
  cpu - CPU performance test
  memory - Memory functions speed test
  threads - Threads subsystem performance test
  mutex - Mutex performance test
  oltp - OLTP test


Commands: prepare run cleanup help version


See 'sysbench --test=<name> help' for a list of options for each test.

[[email protected] sysbench-0.4.12]#

     min:                                  0.01ms
     avg:                                  3.40ms
     max:                                 99.25ms
     approx.  95 percentile:              19.00ms

Read 93.703Mb Written 62.688Mb Total transferred 156.39Mb (23.951Mb/sec)

5,接下來可以使用sysbench對伺服器進行壓力測試

 time sysbench --test=oltp --oltp-test-mode=nontrx --mysql-table-engine=innodb  --mysql-user=root  --mysql-password=""  --db-driver=mysql --num-threads=1000 --max-requests=100000  --oltp-nontrx-mode=select --mysql-db=test  --oltp-table-size=1000000 --oltp-table-name=t1  --mysql-socket=/usr/local/mysql/mysql.sock prepare

相關推薦

伺服器 安裝sysbench./libtool: line 841: X--tag=CC: command not found

重點內容背景,安裝sysbench編譯make報錯: ./libtool: line 841: X--tag=CC: command not found ../libtool: line 874: libtool: ignoring unknown tag :

CentOS7安裝MySQL,解決Failed to start mysqld.service: Unit not found CentOS7安裝MySQL,解決Failed to start mysqld.service: Unit not found

當輸入命令 ~]# systemctl start mysql.service 要啟動MySQL資料庫是卻是這樣的提示 Failed to start mysqld.service: Unit not found 解決方法如下:   首先需要安裝mariadb-serv

安裝第三方庫 Python version 2.7 required, which was not found in the registry

try 三方庫 64位 req not 安裝 window 是我 found 我的Windows 系統是64位 這個問題有人說是註冊表沒有 ,手動註冊了一下就好了,但是我註冊的時候運行報錯。 那麽我的做法是: 刪掉本機所有安裝過得python , 1、 先進入控制面板,刪除

安裝redis cc: command not found

解壓 com all ins amp 新解 list man [1] 1、下載redis後 make 編譯時報錯 cd src && make allmake[1]: Entering directory /root/jevel/redis-2.8.17/s

art 解決grub2-install安裝 grub2-install: error: disk ‘hostdisk//dev/sda1’ not found.

out sudo in /dev/sdb是優盤裝置 grub2-install /dev/sdb 報錯 Installing for x86_64-efi platform. grub

[IDE - Eclipse] JSP:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

引入 ips eclips size eclipse -i let details javax 是因為Eclipse的Web項目不自動引入相關jar包. Right Click on the Project ? Properties ? Project Facets. Yo

匯入第三方warning: -no_pie ignored for arm64 symbol(s) not found for architecture arm64

最近在老專案裡新增BGFMDB及AFNetWorking的時候一直報錯,具體錯誤資訊如下: ld: warning: -no_pie ignored for arm64 Undefined symbols for architecture arm64: "_OBJC_C

Linux 解決"libc.so.6: version GLIBC_2.14 not found"

觸發場景 java服務端解析apk裝了apktool之後仍無法讀取,看一下log發現"libc.so.6: version GLIBC_2.14 not found"   報錯原因 檢視伺服器支援的glibc得知這臺伺服器最高支援2.12的,而我裝的apktool這個版本需

編譯安Apache2.4checking for APR... no configure: error: APR not found. Please read the documentation.

Apache2.4編譯報錯checking for APR… no configure: error: APR not found. Please read the documentation.

:exec:"gcc" executable file not found in %PATH%

問題 在編譯以太坊原始碼時出現以下錯誤資訊: exec: "gcc": executable file not found

redhat 安裝yum教程(解決依賴關係)-bash: yum: command not found 問題解決

1下載yum的rpm安裝包  [[email protected] rpm]# wget http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch

CentOS6.5安裝Docker 阿里伺服器centos6.5 安裝docker的問題解決方案

筆者這裡是用CnetOS6.5系統,開始安裝Docker之旅: [[email protected] ~]# uname -r2.6.32-431.el6.x86_64 [[email protected] ~]# cat /etc/iss

伺服器安裝oracle修改IP地址監聽器問題

當在雲伺服器中安裝oracle時,按照一般的安裝步驟安裝後,需要修改兩個檔案的iIP地址才可以在本機進行訪問,修改注意點: 監聽器部分不要改成伺服器的公網IP,要改成伺服器的計算機名字才可以,兩個配置資料夾均要修改 tnsnames.ora檔案修改: listener.ora: 其中h

滴滴伺服器安裝php的時候virtual memory exhausted: Cannot allocate memory make: *** [ext/fileinfo/libmagic/ap

滴滴雲伺服器安裝php的時候,在make的時候報錯 virtual memory exhausted: Cannot allocate memory make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1 網上搜索的

阿裏安裝openstack

阿裏雲安裝openstack報錯在CentOS 7下使用DevStack一鍵安裝包安裝OpenStack,突然來個報錯,信息如下:報錯一、解決方法:修改hosts文件,同步主機名vim /etc/hosts127.0.0.1 openstack報錯二、ERROR : Error appeared during

安裝nghttp2 error: Libtool library used but 'LIBTOOL' is undefined

ade use rec int nbsp acl 重新 con 操作 nghttp2 報錯error: Libtool library used but ‘LIBTOOL‘ is undefined 如果重新安裝libtool和autoconf升級

關於xshell連接阿裏服務器後的問題,git安裝失敗,找不到git包

rip https 繼續 bubuko image 錯誤 pos 完成後 ges 1.如果安裝git出現這樣的錯誤的,在接下來鍵入這樣一行命令 curl https://packages.gitlab.com/install/repositories/gitlab/git

阿裏ECS服務器 Centos7.2 使用 yum 安裝 ansible

cache centos7.2 連接 ESS epo shadow ges 服務器 proc #####################使用阿裏雲的ECS服務器Centos7.2系統安裝ansible提示安裝不上###########原因通過Yum安裝最新發布版本通過Yum

Python3安裝turtle File “/tmp/pip-install-hpqxw6_s/turtle/setup.py”, line 40

Python3.5安裝turtle: pip3 install turtle 提示錯誤: Collecting turtle Using cached https://files.pythonhosted.org/packages/ff/f0/21a42e9e424d24bdd0

linux中安裝Gitlab伺服器後登入502解決辦法(圖文集合)

     前幾天安裝好了本地的Gitlab伺服器,都沒什麼問題,可以直接開啟。但是今天一通過 http//192.168.1.164:9090 來訪問直接報了502錯誤。如下圖: 502錯誤就是閘道器錯誤: 伺服器正在作為一個閘道器或代