Cloud Server Installation sysbench error./libtool:line 841:x--tag=cc:command not found

Source: Internet
Author: User

Key content background, install Sysbench compile make error:

./libtool: Line 8417 5--tag=cc:command not found.. /libtool: Line 874: libtool:ignoring Unknown Tag: command  not found .. /libtool: Line 8417 5--mode=link:command not found.. /libtool: Line 1007: * * * warning:inferring theMode ofOperation is deprecated.: command  not found .. /libtool: Line 1008: * * * Future versions ofLibtool wouldrequire --mode=mode is 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 suchfile or Directory.. /libtool: Line 2403: Xsysbench: command  not found .. /libtool: Line 2408X 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./sysbench:no suchfile 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./sysbench:no suchfile 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, Possible causes:

(1), does not install the dependency package Libtool
(2), the installation of the wrong version (Libtool version is too old)
(3), other reasons

< copyright, the article allows reprint, but must be linked to the source address, otherwise investigate legal liability!>
Original Blog Address: http://blog.csdn.net/mchdba/article/details/46381741
Hara Douglas Fir (MCHDBA)

2, Workaround:

Install the dependency package Libtool, Libtoo update to the new version, use autoreconf instead of autogen.sh, as follows:

Here's a final approach:

autoreconf -iconfiguremakemake install
3, and then configure the normal passage.
[[email protected] sysbench-0.4.12]# sysbench --helperrorwhileshared libraries: libmysqlclient.so.18sharedobjector directory[[email protected] sysbench-0.4.12]# 
4, reported the LIB error
[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]# 

This means that Sysbench cannot find the MySQL library file, which is most likely the environment variable ld_library_path is not set and can be set to resolve the problem:

Echo"Export Ld_library_path=/usr/local/mysql/lib">>/etc/profile/Source/etc/profile/[Root@bizdb01sysbench-0.4.]# echo "Export ld_library_path=/usr/local/mysql/lib" >>/etc/profile[Root@bizdb01sysbench-0.4.]# Source/etc/profile[Root@bizdb01sysbench-0.4.]# [Root@bizdb01sysbench-0.4.]# [Root@bizdb01sysbench-0.4.]# sysbench--helpUsage: Sysbench [general-options] ...--test=<test-name> [test-options] ... commandgeneralOptions:--num-threads=n number ofthreads to use [1]--max-requests=n Limit forTotal number ofRequests [10000]--max-time=n Limit forTotal Execution Timeinchseconds [0]--forced-shutdown=string Amount ofTime to wait after--max-time before forcing shutdown [off]--thread-stack-size=size Size ofStack per thread [ +K]--init-rng=[ on|off] Initialize random number generator [off]--test=string test to run--debug=[ on|off]Printmore Debugging Info [off]--validate=[ on|off] Perform validation checks where possible [off]--help=[ on|off]PrintHelp andExit--version=[ on|off]PrintVersion andexitcompiled-inch tests: Fileio-file I/O test cpu-cpu performance test memory-memory functions Speed test threads-threads subsystem p Erformance Test Mutex-mutex performance Test OLTP-OLTP testCommands: Prepare run Cleanup help Versionsee' sysbench--test=<name> help '  forA list ofOptions forEach 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, next you can use Sysbench to stress test the server
Time Sysbench--Test=Oltp--Oltp-test-mode=Nontrx--Mysql-table-engine=InnoDB--Mysql-user=Root--Mysql-password=""  --Db-driver=Mysql--Num-threads= + --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

Cloud Server Installation sysbench error./libtool:line 841:x--tag=cc:command not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.