Closed tomasikp closed 8 years ago
This worked for me on OS X 10.8.
Download MySQL (mysql-5.5.28-osx10.6-x86_64.dmg): http://www.mysql.com/downloads/mysql/ Download Node.js source code: http://nodejs.org/dist/v0.8.12/node-v0.8.12.tar.gz Add the following to ~/.bash_profile: export PATH = $PATH:/usr/local/mysql-5.5.28-osx10.6-x86_64/bin Extract Node.js source code and run: export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/" export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang export CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ ./configure make sudo make install Install db-mysql via npm: sudo npm install -g db-mysql
installed db-mysql with node 0.8.8 installed from universal .dmg. No major errors thrown during npm install. When tried to run the program with db-mysql I got an error like cited in #82 :
installed node from development branch on github, and immediately got an error thrown on npm install:
installed node 0.6.21 and have no problems at all. Appears that db-mysql has build issues on node > 0.6.x