我想在Ubuntu上安裝npm的aerospike-node客戶端。在ubuntu上安裝aerospike-node客戶端時出錯16.04
npm install aerospike
安裝時我收到錯誤,如
SOLINK_MODULE(target) Release/obj.target/aerospike.node
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
aerospike.target.mk:186: recipe for target 'Release/obj.target/aerospike.node' failed
make: *** [Release/obj.target/aerospike.node] Error 1
rm binding_gyp_aerospike_client_c_target_run_scripts_aerospike_client_c_sh.intermediate
make: Leaving directory '/home/sys1095/NodeProjects/aerospike-test/node_modules/aerospike/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-21-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/sys1095/NodeProjects/aerospike-test/node_modules/aerospike
gyp ERR! node -v v6.10.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "aerospike"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
環境::節點-v 6.10.0,節點GYP -v 3.4.0,NPM -v 3.10.10。
我在aerospike github上檢查過這個問題,但是我沒有得到任何東西(具體的)。 我以爲這裏的主要問題開始
/usr/bin/ld: cannot find -lz
我沒有得到什麼。 該節點的版本或任何有關os(ubuntu)與gcc編譯器版本有關的問題。
幫我看看這個。
你嘗試搜索的「主要問題」? http://serverfault.com/questions/481859/usr-bin-ld-cannot-find-lz-but-libz-exists。 – kporter