Hello, I am trying to produce an automated, reliable, and repeatable way of testing mysql releases, and I am finding an error that makes this impossible to accomplish.
I am trying to compile mysql and install it in a non-standard directory. I do notwant mysql installed in /usr or /usr/local. For example, I am trying to install it in /tmp/msource with the configure line: ./configure --prefix=/tmp/msource --exec-prefix=/tmp/msource --bindir=/tmp/msource/bin --sbindir=/tmp/msource/sbin --localstatedir=/tmp/msource/lib --sysconfdir=/tmp/msource --enable-assembler --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --with-mysqld-user=tester --with-unix-socket-path=/tmp/msource/var/run/mysql.sock 'make' and 'make install' succeed. I have also created a custom my.cnf file installed in /tmp/msource/etc/my.cnf. However, installing the database tables fails: ++++++++++++++++++++++++++++++++++++++++++++++++ $ /tmp/msource/bin/mysql_install_db --basedir=/tmp/msource --datadir=/tmp/msource/data Installing MySQL system tables... 100513 21:53:35 [ERROR] /tmp/msource/libexec/mysqld: unknown option '--skip-bdb' 100513 21:53:35 [ERROR] Aborting 100513 21:53:35 [Note] /tmp/msource/libexec/mysqld: Shutdown complete Installation of system tables failed! Examine the logs in /tmp/msource/data for more information. You can try to start the mysqld daemon with: shell> /tmp/msource/libexec/mysqld --skip-grant & and use the command line tool /tmp/msource/bin/mysql to connect to the mysql database and look at the grant tables: shell> /tmp/msource/bin/mysql -u root mysql mysql> show tables Try 'mysqld --help' if you have problems with paths. Using --log gives you a log in /tmp/msource/data that may be helpful. Please consult the MySQL manual section 'Problems running mysql_install_db', and the manual section that describes problems on your OS. Another information source are the MySQL email archives available at http://lists.mysql.com/. Please check all of the above before mailing us! And remember, if you do mail us, you MUST use the /tmp/msource/scripts/mysqlbug script! ++++++++++++++++++++++++++++ The following error just won't go away: 100513 21:53:35 [ERROR] /tmp/msource/libexec/mysqld: unknown option '--skip-bdb' ... even after I manually search for the location where this flag is passed, and manually edit that source to never issue it. [mysql-5.1.45-source]$ grep -irnH -- '--skip-bdb' * mysql-test/mtr:4229: mtr_add_arg($args, "--skip-bdb"); mysql-test/mysql-test-run:4229: mtr_add_arg($args, "--skip-bdb"); mysql-test/lib/v1/mysql-test-run.pl:3925: mtr_add_arg($args, "% s--skip-bdb", $prefix); mysql-test/mysql-test-run.pl:4229: mtr_add_arg($args, "--skip-bdb"); scripts/mysql_install_db.pl.in:422: "--skip-bdb", Clearly something is wrong here. I don't know if mysql is accidentally linking against some other, existing mysql library already present on my test machine. In any case, it shouldn't be doing that. I suspected that that somehow "/usr/bin/mysql_install_db" (for my existing MySQL installation) was being called (which contains --skip-bdb). But even after removing the --skip-bdb from that file the error persisted. Any ideas on what the error might be, and how to fix it ? Thanks for any help. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=arch...@jab.org