Node.js 节点,在ubuntu 12.04上安装geoip失败

Node.js 节点,在ubuntu 12.04上安装geoip失败,node.js,geoip,Node.js,Geoip,当我安装geoip()时 我有这个错误 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/root/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.

当我安装geoip()时

我有这个错误

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/root/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.2.0-24-virtual
gyp ERR! command "node" "/root/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-    gyp.js" "rebuild"
gyp ERR! cwd /var/www/test.com/node_modules/geoip
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0
有人有同样的问题吗?

这在Ubuntu 12.04上远程实现。在OSX上的local中它可以工作。

安装失败,因为它找不到
zlip.h
文件。请在执行
npm install geoip
命令之前执行此命令

sudo apt-get install zlib1g-dev

能否显示
npm debug.log
文件?并确保安装了
确保安装了
。好的,但是。。嗯。。。我找不到此日志文件…是否可能我没有此文件?能否尝试
sudo npm install-g geoip
?已尝试,相同错误:(
sudo apt-get install zlib1g-dev