Bug #50067 "/bin/rm: cannot remove `libtoolT': No such file or directory" during compile
Submitted: 5 Jan 2010 0:05 Modified: 12 Jan 2010 6:00
Reporter: Roel Van de Paar Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5.0m2 OS:Linux (Ubuntu 9.0.4)
Assigned to: CPU Architecture:Any

[5 Jan 2010 0:05] Roel Van de Paar
Description:
roel@roel-ubuntu-vm:/source/mysql-5.5.0-m2$ ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-plugins=max-no-ndb --with-embedded-server --enable-local-infile --with-mysqld-user=mysql
[...]
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove `libtoolT': No such file or directory
config.status: executing default commands

MySQL has a Web site at http://www.mysql.com/ which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discussion.

Remember to check the platform specific part of the reference manual for
hints about installing MySQL on your platform. Also have a look at the
files in the Docs directory.

Thank you for choosing MySQL!

roel@roel-ubuntu-vm:/source/mysql-5.5.0-m2$

How to repeat:
Use mysql-5.5.0-m2.tar.gz source on Ubuntu 9.0.4

roel@roel-ubuntu-vm:/source/mysql-5.5.0-m2$ uname -a
Linux roel-ubuntu-vm 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1 18:57:07 UTC 2009 i686 GNU/Linux
roel@roel-ubuntu-vm:/source/mysql-5.5.0-m2$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) 
roel@roel-ubuntu-vm:/source/mysql-5.5.0-m2$ ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-plugins=max-no-ndb --with-embedded-server --enable-local-infile --with-mysqld-user=mysql

Suggested fix:
Configure without the '/bin/rm: cannot remove `libtoolT': No such file or directory' error.
[5 Jan 2010 0:06] Roel Van de Paar
See: http://www.google.com.au/search?q=%2Fbin%2Frm%3A+cannot+remove+%60libtoolT%27%3A+No+such+f...
[5 Jan 2010 0:14] Roel Van de Paar
config.log

Attachment: config.zip (application/zip, text), 38.56 KiB.

[5 Jan 2010 0:17] Roel Van de Paar
Can we simply avoid trying to delete this file?
[12 Jan 2010 6:00] Sveta Smirnova
Thank you for the report.

This is not a bug. See comment "[18 Sep 2009 8:45] Sveta Smirnova" in bug #47411 for details and workaround.
[18 Dec 2012 18:19] Jose Carlos
edit configure and change  $RM "$cfgfile" to  $RM -f "$cfgfile" to fix "cannot remove `libtoolT': No such file or directory'" error.