title: mac npm install mysql-libmysqlclient error
body: <p>OS:Mac OS X Lion 10.7.3(64bit)<br>
  Xcode:4.3.2<br>
  Command Line Tools:installed<br>
  gcc:4.2<br>
  g++:4.2<br>
  node:0.6.16<br>
  npm:1.1.20<br>
  mysql:5.5.21<br>
  I try install npm-modules of mysql-libmysqlclient, I installed success on CentOS 6.2, but the OS has problem, this talk about its <a href="https://github.com/Sannis/node-mysql-libmysqlclient/issues/107#issuecomment-5485498" rel="nofollow">https://github.com/Sannis/node-mysql-libmysqlclient/issues/107#issuecomment-5485498</a></p>
  
  <pre><code>localhost:nodejs yangzhaojie$ npm -d install mysql-libmysqlclient
  npm info it worked if it ends with ok
  npm info using npm@1.1.20
  npm info using node@v0.6.16
  npm http GET https://registry.npmjs.org/mysql-libmysqlclient
  npm http 200 https://registry.npmjs.org/mysql-libmysqlclient
  npm http GET https://registry.npmjs.org/mysql-libmysqlclient/-/mysql-libmysqlclient-1.3.2.tgz
  npm http 200 https://registry.npmjs.org/mysql-libmysqlclient/-/mysql-libmysqlclient-1.3.2.tgz
  npm info shasum 8ae08483d5e37fcb5a37e6e459c7eda073ff486b
  npm info shasum /var/folders/bc/gxqr_gj55lg1x77dgcym3mmc0000gn/T/npm-1336054761009/1336054761009-0.6183159125503153/tmp.tgz
  npm info shasum 2e0901d4c28613050078931d2930b7f98a9353d0
  npm info shasum /Users/yangzhaojie/.npm/mysql-libmysqlclient/1.3.2/package.tgz
  npm info into /Users/yangzhaojie/tech/nodejs mysql-libmysqlclient@1.3.2
  npm info installOne mysql-libmysqlclient@1.3.2
  npm info unbuild /Users/yangzhaojie/tech/nodejs/node_modules/mysql-libmysqlclient
  npm info preinstall mysql-libmysqlclient@1.3.2
  npm info build /Users/yangzhaojie/tech/nodejs/node_modules/mysql-libmysqlclient
  npm info linkStuff mysql-libmysqlclient@1.3.2
  npm info install mysql-libmysqlclient@1.3.2
  
  &gt; mysql-libmysqlclient@1.3.2 install /Users/yangzhaojie/tech/nodejs/node_modules/mysql-libmysqlclient
  &gt; node-gyp rebuild
  
  info it worked if it ends with ok 
  spawn python [ '/Users/yangzhaojie/.node-gyp/0.6.16/tools/gyp_addon',
    'binding.gyp',
    '-I/Users/yangzhaojie/tech/nodejs/node_modules/mysql-libmysqlclient/build/config.gypi',
    '-f',
    'make' ]
  spawn make [ 'BUILDTYPE=Release', '-C', 'build' ]
    CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings.o
    CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings_connection.o
  ../src/mysql_bindings_connection.cc:1322:22: error: variable length array of non-POD element type 'Local&lt;v8::Value&gt;'
      Local&lt;Value&gt; argv[argc];
                       ^
  ../src/mysql_bindings_connection.cc:1627:22: error: variable length array of non-POD element type 'Local&lt;v8::Value&gt;'
      Local&lt;Value&gt; argv[argc];
                       ^
  ../src/mysql_bindings_connection.cc:1691:22: error: variable length array of non-POD element type 'Local&lt;v8::Value&gt;'
      Local&lt;Value&gt; argv[argc];
                       ^
  3 errors generated.
  make: *** [Release/obj.target/mysql_bindings/src/mysql_bindings_connection.o] Error 1
  ERR! Error: `make` failed with exit code: 2
      at ChildProcess.onExit (/Users/yangzhaojie/app/node-0.6.16/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
      at ChildProcess.emit (events.js:70:17)
      at maybeExit (child_process.js:362:16)
      at Process.onexit (child_process.js:398:5)
  ERR! not ok
  npm info mysql-libmysqlclient@1.3.2 Failed to exec install script
  npm info unbuild /Users/yangzhaojie/tech/nodejs/node_modules/mysql-libmysqlclient
  npm info preuninstall mysql-libmysqlclient@1.3.2
  npm info uninstall mysql-libmysqlclient@1.3.2
  npm info postuninstall mysql-libmysqlclient@1.3.2
  
  npm ERR! mysql-libmysqlclient@1.3.2 install: `node-gyp rebuild`
  npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
  npm ERR! 
  npm ERR! Failed at the mysql-libmysqlclient@1.3.2 install script.
  npm ERR! This is most likely a problem with the mysql-libmysqlclient package,
  npm ERR! not with npm itself.
  npm ERR! Tell the author that this fails on your system:
  npm ERR!     node-gyp rebuild
  npm ERR! You can get their info via:
  npm ERR!     npm owner ls mysql-libmysqlclient
  npm ERR! There is likely additional logging output above.
  npm ERR! 
  npm ERR! System Darwin 11.3.0
  npm ERR! command "node" "/Users/yangzhaojie/app/node-0.6.16/bin/npm" "-d" "install" "mysql-libmysqlclient"
  npm ERR! cwd /Users/yangzhaojie/tech/nodejs
  npm ERR! node -v v0.6.16
  npm ERR! npm -v 1.1.20
  npm ERR! code ELIFECYCLE
  npm ERR! message mysql-libmysqlclient@1.3.2 install: `node-gyp rebuild`
  npm ERR! message `sh "-c" "node-gyp rebuild"` failed with 1
  npm ERR! errno {}
  npm ERR! 
  npm ERR! Additional logging details can be found in:
  npm ERR!     /Users/yangzhaojie/tech/nodejs/npm-debug.log
  npm not ok
  localhost:nodejs yangzhaojie$
  </code></pre>