Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,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 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[8,340 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 whomever posted them. This site is not responsible for what they say.
Kernel Panic on test
Authored by: alexf on Sat, Aug 24 2002 at 7:11PM PDT
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 Wed, Aug 28 2002 at 11:59AM PDT
Dumb question, but you did run the scripts/mysql_install_db.sh script right ? The test relies on these databases existing...

[ Reply to This | # ]