Compiling mySQL under 10.2

Aug 24, '02 08:31:01AM

Contributed by: dperetti

If you don't want to use the pre-built mySQL package (see yesterday's hints), you can compile from source in 10.2 with a simple edit of the configure file. Once you have the source expanded and you've opened that folder in the Terminal, edit the configure file and look for the section that begins:

*darwin*)
if test "$ac_cv_c_compiler_gnu" = "yes"
then...
You want to change the line which reads
  with_named_curses=""
into this line:
  with_named_curses="-ltermcap"
You can now compile in the usual way:
  % ./configure --mandir=/usr/local/share/man/ --with-innodb
or even
  % ./configure --mandir=/usr/local/share/man/ --with-innodb \
--without-server
This is useful if you had installed the server before the upgrade. Personally, I prefer to create a binary distribution and install it by hand:
  % make
% ./scripts/make_binary_distribution
Happy coding!

Comments (2)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020824083101804