Go to the first, previous, next, last section, table of contents.


Comments on porting to other systems.

A working Posix thread library is needed for the server. On Solaris 2.5 we use SUN PThreads (the native thread support in 2.4 and earlier versions are not good enough) and on Linux we use LinuxThreads by Xavier Leroy Xavier.Leroy@inria.fr.

The hard part of porting to a new UNIX variant without good native thread support is probably to port MIT threads. See `mit-pthreads/README' and Programming POSIX Threads.

The MySQL distribution includes a patched version of Provenzano's Pthreads from MIT (see MIT Pthreads web page). This can be used for some operating systems that does not have posix threads.

It is also possible to use another user level thread package named FSU Pthreads (see FSU pthread home page). This implementation is being used for the SCO port.

See the `thr_lock.c' and `thr_alarm.c' programs in the mysys directory for some tests/examples of these problems

Both the server and the client needs a working C++ compiler (we use gcc and have tried SparcWorks). Other compiler that is known to work is the IRIX cc.

To compile only the client use `./configure --without-server'

There currently no support for only compiling the server. Nor is it likly to be added unless someone has a good reason for it.

If you want/need to change any Makefile or the configure script you must get automake and autoconf. We have used autoconf-2.12 and automake-1.2.

All steps needed to remake everything from the most basic files.

/bin/rm */.deps/*.P
/bin/rm -f config.cache
aclocal
autoheader
aclocal
automake
autoconf
./configure --with-debug=yes --prefix='your installation directory'

# The makefiles generated above needs GNU make (called gmake below)
gmake clean all install init-db

If you run into problem with a new port, you may have to do some debugging of mysql! See section Debugging MySQL

NOTE: Before you start debugging mysqld, first get the test programs mysys/thr_alarm and mysys/thr_lock to work. This will ensure that your thread installation has even a remotely change to work!


Go to the first, previous, next, last section, table of contents.