• -DWITH_NDB_BINLOG={ON|OFF} 

Enable binary logging by default in the mysqld  built using this option. ON by default. 

• -DWITH_NDB_DEBUG={ON|OFF} 

Enable building the debug versions of the NDB Cluster binaries. OFF by default. 

• -DWITH_NDB_JAVA={ON|OFF} 

Enable building NDB Cluster with Java support, including ClusterJ . 

This option is ON by default. If you do not wish to compile NDB Cluster with Java support, you must disable it explicitly by specifying -DWITH_NDB_JAVA=OFF  when running CMake . Otherwise, if Java cannot be found, configuration of the build fails. 

• -DWITH_NDB_PORT= port 

Causes the NDB Cluster management server ( ndb_mgmd ) that is built to use this port  by default. If this option is unset, the resulting management server tries to use port 1186 by default. 

## 2.9.8 Dealing with Problems Compiling MySQL 

• -DWITH_NDB_TEST={ON|OFF} 

If enabled, include a set of NDB API test programs. The default is OFF. 

• -DWITH_PLUGIN_NDBCLUSTER={ON|OFF} 

Alias for WITH_NDBCLUSTER . 

The solution to many problems involves reconfiguring. If you do reconfigure, take note of the following: 

•If CMake  is run after it has previously been run, it may use information that was gathered during its previous invocation. This information is stored in CMakeCache.txt . When CMake  starts, it looks for that file and reads its contents if it exists, on the assumption that the information is still correct. That assumption is invalid when you reconfigure. 

•Each time you run CMake , you must run make  again to recompile. However, you may want to remove old object files from previous builds first because they were compiled using different configuration options. 

To prevent old object files or configuration information from being used, run the following commands before re-running CMake : 

## On Unix: 

shell> make clean shell> rm CMakeCache.txt 

## On Windows: 

shell> devenv MySQL.sln /clean shell> del CMakeCache.txt 

If you build outside of the source tree, remove and recreate your build directory before re-running CMake . For instructions on building outside of the source tree, see How to Build MySQL Server with CMake. 

On some systems, warnings may occur due to differences in system include files. The following list describes other problems that have been found to occur most often when compiling MySQL: 

