Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Compiling mySQL under 10.2 UNIX
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!
    •    
  • Currently 1.00 / 5
  You rated: 1 / 5 (3 votes cast)
 
[9,360 views]  

Compiling mySQL under 10.2 | 2 comments | Create New Account
Click here to return to the 'Compiling mySQL under 10.2' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Kernel Panic on test
Authored by: Anonymous on Aug 24, '02 07:11:46PM

Hmmm... well for me, building the source appears to work ok under 10.2, until you run the tests with make test - then you get a kernel panic some way through, so I would be very cautious about running MySQL built this way under 10.2 unless you can get through the tests ok.

Alex



[ Reply to This | # ]
Kernel Panic on test
Authored by: mgrabens on Aug 28, '02 11:59:47AM

Dumb question, but you did run the scripts/mysql_install_db.sh script right ? The test relies on these databases existing...



[ Reply to This | # ]