I was trying to build sysbench on ubuntu, and hit some libtool issues. I saw these on several versions of Ubuntu (8.04.2 and 9.04) so clearly it couldn't be a strict ubuntu issue.
The symptom:
../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 2400: Xsysbench: command not found
X: user not authorized to run the X server, aborting.
../libtool: line 2412: Xsysbench: command not found
../libtool: line 2420: mkdir /.libs: No such file or directory
mkdir: cannot create directory `/.libs': Permission denied
make[2]: *** [sysbench] Error 1
make[2]: Leaving directory `/home/dan/sysbench-0.4.12/sysbench'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dan/sysbench-0.4.12/sysbench'
make: *** [all-recursive] Error 1
The solution:
libtoolize --force --copy; aclocal; autoconf; automake; make
6 comments:
Got the same thing on SLES 10 SP1. Your fix worked. My curiosity asked "why did this happen?", but my time limits me to guessing the reason.
My best guess is a newer autoconf/automake package shipped with a current source base (sysbench-0.4.12 in my case) running on *some* older releases generates bogus libtool results.
FWIW, this same setup works on OpenSolaris.
--
qneill
A solution found yesterday:
$ cd ~/ssysbench-4.0.12
# apt-get install libtool
$ rm ./libtool
$ ln -s /usr/bin/libtool
$ make install
@Artur. Thanks your solution worked for me on CentOS 5.1
@Artur. Worked for me too, this time on SuSE SLES10
Artur is boss!
You solution worked for me on ubuntu 10.04
you just delete "/usr/bin/sh", and then "ln -s /usr/bin/bash /usr/bin/sh" to make a new soft link ,
it will make sense,
Post a Comment