ProAnswers.org

How to compile MySQL on platforms were no binaries are provided?

1 Like

If we wanted to run MySQL on a 64bit PPC Linux platform. We compiled it as follows:

CC=“gcc” CFLAGS="-O3 -mpowerpc -m64 -mcpu=powerpc" CXX=“gcc”
CXXFLAGS="-O3 -m64 -mpowerpc -mcpu=powerpc"
./configure --prefix=/app/mysql/5.0.37

make

make install

If you never compiled something on your Linux machine before maybe some necessary tools are missing:




	gmake

	autoconf

	automake

	libtool

	m4

	bison


Further very often there are some header files of standard libraries not installed:




	libreadline-dev

	libncurses5-dev


If you install all those it should work...