Home > Mac, Programming, Web Development > MySQL++ on Mac using MAMP

MySQL++ on Mac using MAMP

Typical install… like there is such a thing!  I sat down eager to take MySQL++ for a test-drive, so I opened up a few Safari tabs, shuttling between the MySQL and MySQL++ sites (the library has been taken over by a caring individual), and sipped my large glass of water.  Everything went along smashingly until configure complained that it couldn’t find the MySQL library and include files.  Oh yeah, I’m using MAMP, so I don’t have any!  This was the solution:

  1. Download MySQL++ from here.
  2. Unarchive MySQL++.
  3. Download closest compatible MySQL version (5.0.77 at time of writing) here.
  4. Unarchive MySQL
  5. Open a terminal window
  6. cd /path/to/MySQL++
  7. ./configure ./configure –with-mysql-lib=/path-to-wherever-you-unarchived-mysql/lib –with-mysql-include=/path-to-wherever-you-unarchived-mysql/include –prefix=/path/where/you/want/mysql++/installed
  8. make
  9. sudo make install
  10. Revel in installation success

Update: when I tried to build and run one of the sample programs in xcode, I got a “Signal 10″ bus error – but only in debug builds (release were fine)!  After an hour lost in the www woods, I started manually flipping all the target settings that were different and found that the preprocessor macro “-D_GLIBCXX_DEBUG=1″ was the problem.  Of course, once I knew what I was looking for, I found it in two seconds on the web.  You can read a more detailed description of the problem here.  Once I removed the macro, all was well.

Update #2: the library tries to find the mySQL server in the default location, not wherever MAMP’s mySQL server is.  One solution, which I found here, is to put a symbolic link in the place where the library looks, which points to the real file in MAMP.

Categories: Mac, Programming, Web Development Tags: , ,

windows 7 product key

windows 7 product key

windows 7 key generator

windows 7 key generator

free winrar download

free winrar download

winzip activation code

winzip activation code

free winrar

free winrar

winzip free download

winzip free download

winrar free download

winrar free download

winrar download free

winrar download free

winzip free download full version

winzip free download full version

windows 7 activation crack

windows7 activation crack

windows 7 crack

windows 7 crack

free winzip

free winzip
\n