Sannis/node-mysql-libmysqlclient — Issue #105: Can't install on debian 6, mysql 5.5.18. Missing both libmysqlclient_r and libmysqlclient from libmysqlclient-devel or mysql-devel package
Author: SonicGD
Created: 2011-11-26 15:11:54+00:00
State: open

Try to install with npm install mysql-libmysqlclient:

> mysql-libmysqlclient@1.2.9 install ***/node_modules/mysql-libmysqlclient
> make conf all
>
> rm -rf ./build
> rm -f ./mysql_bindings.node
> rm -f conf-stamp
> rm -f build-stamp
> touch conf-stamp
> node-waf configure
> Checking for program g++ or c++ : /usr/bin/g++
> Checking for program cpp : /usr/bin/cpp
> Checking for program ar : /usr/bin/ar
> Checking for program ranlib : /usr/bin/ranlib
> Checking for g++ : ok
> Checking for node path : not found
> Checking for node prefix : ok /usr
> Checking for library mysqlclient_r : not found, try to find nonthreadsafe libmysqlclient
> Checking for library mysqlclient : not found
> /var/www/kyon/chat/node_modules/mysql-libmysqlclient/wscript:43: error: Missing both libmysqlclient_r and libmysqlclient > from libmysqlclient-devel or mysql-dev el package
> make: *** [conf-stamp] Ошибка 1
> npm ERR! error installing mysql-libmysqlclient@1.2.9 Error: mysql-libmysqlclient@1.2.9 install: `make conf all`
> npm ERR! error installing mysql-libmysqlclient@1.2.9 `sh "-c" "make conf all"` failed with 2
> npm ERR! error installing mysql-libmysqlclient@1.2.9 at ChildProcess. (/usr/lib/nodejs/npm/lib/utils/exec.js:49:20)
> npm ERR! error installing mysql-libmysqlclient@1.2.9 at ChildProcess.emit (events.js:70:17)
> npm ERR! error installing mysql-libmysqlclient@1.2.9 at maybeExit (child_process.js:359:16)
> npm ERR! error installing mysql-libmysqlclient@1.2.9 at Process.onexit (child_process.js:395:5)
> npm ERR! mysql-libmysqlclient@1.2.9 install: `make conf all`
> npm ERR! `sh "-c" "make conf all"` failed with 2
> npm ERR!
> npm ERR! Failed at the mysql-libmysqlclient@1.2.9 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! make conf all
> 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 Linux 2.6.32-5-amd64
> npm ERR! command "node" "/usr/bin/npm" "install" "mysql-libmysqlclient"
> npm ERR! cwd /var/www/kyon/chat
> npm ERR! node -v v0.6.2
> npm ERR! npm -v 1.0.105
> npm ERR! code ELIFECYCLE
> npm ERR!
> npm ERR! Additional logging details can be found in:
> npm ERR! /var/www/kyon/chat/npm-debug.log
> npm not ok

libmysqlclient-dev package have installed:

> apt-get install libmysqlclient-dev
> Чтение списков пакетов... Готово
> Построение дерева зависимостей
> Чтение информации о состоянии... Готово
> Уже установлена самая новая версия libmysqlclient-dev.

Debian 6.0 Squeeze. Mysql 5.5.18 from dotdeb.org.