Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
[ 99%] Building CXX object sql/CMakeFiles/sql.dir/
Linking CXX static library libsql.a
[100%] Built target sql
[100%] Building CXX object sql/CMakeFiles/mysqld.dir/
Linking CXX executable mysqld
c++: error: _ALL_STATIC=1: No such file or directory
make[2]: *** [sql/mysqld] Error 1
make[1]: *** [sql/CMakeFiles/mysqld.dir/all] Error 2
make: *** [all] Error 2

./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --without-debug --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared --localstatedir=/usr/local/mysql/data --with-extra-charsets=none --enable-assembler --with-unix-socket-path=/tmp/mysql.socket

Those are my build flags. I have installed build essentials. I am really unsure what the problem is. Theres not much of a error.

share|improve this question
c++: error: _ALL_STATIC=1: No such file or directory

Thats the error right there, and its being caused by your

--with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static

Perhaps you meant -static , not -all-static ?

Its worth noting that MySQL 5.5 has a cmake only build system, so you're probably better off porting all of those to the appropriate cmake build flags.

Its also worth nothing that 5.5 has landed in precise, and will be the only version of MySQL in 12.04, so you could backport those packages to 11.10 if you were so inclined.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.