sharp: readelf: Error: '/usr/local/lib /libvips-cpp.so': No such file
Hey there,
I’m trying to deploy my node app on an Ubuntu server. I’ve set up a docker file to pull and install all the necessary files. However if I want to use sharp version 0.16 or above, I get the following error in the logs. If however I stick to sharp version 0.15 inside my package.json file, it installs everything fine.
I’ve completely deleted the server and tried to install this on a brand new one. I always get the same error. I looked at previous issues with a similar issue, but they don’t seem to work for me (one of them is a mac specific issue, which is irrelevant to my issue on Ubuntu).
Does anyone have any suggestions what I should do to fix this problem? With my docker file, I’m installing libvips version 8.3.3.
readelf: Error: '/usr/local/lib /libvips-cpp.so': No such file
gyp: Call to 'if readelf -Ws "$(PKG_CONFIG_PATH=":$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig" pkg-config --libs-only-L vips-cpp | cut -c 3- | sed -e "s/^$/\/usr\/lib/")/libvips-cpp.so" | c++filt | grep -qF __cxx11;then echo "1";else echo "0";fi' returned exit status 0. while trying to load binding.gyp
npm http GET https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 4.2.0-42-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/src/imageservice/node_modules/sharp
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm http 200 https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz
npm http GET https://registry.npmjs.org/prelude-ls
npm http GET https://registry.npmjs.org/type-check
npm http 200 https://registry.npmjs.org/prelude-ls
npm http 200 https://registry.npmjs.org/type-check
npm http GET https://registry.npmjs.org/deep-is
npm http GET https://registry.npmjs.org/fast-levenshtein
npm http GET https://registry.npmjs.org/wordwrap
npm http 200 https://registry.npmjs.org/deep-is
npm http 200 https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/jsonify
npm http 200 https://registry.npmjs.org/fast-levenshtein
npm http GET https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz
npm http GET https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz
npm http 200 https://registry.npmjs.org/jsonify
npm http 200 https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz
npm http 200 https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz
npm http GET https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz
npm http GET https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz
npm http GET https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.5.tgz
npm http 200 https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz
npm http 200 https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz
npm http GET https://registry.npmjs.org/acorn
npm http 200 https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.5.tgz
npm http GET https://registry.npmjs.org/acorn-jsx
npm http GET https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz
npm ERR! weird error 1
npm http 200 https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz
npm http 200 https://registry.npmjs.org/acorn-jsx
npm http 200 https://registry.npmjs.org/acorn
npm ERR! tar.unpack error reading /root/tmp/npm-7-3dHut-Jq/1477482855073-0.8630997932050377/tmp.tgz
npm ERR! tar pack Error reading /root/tmp/npm-7-3dHut-Jq/1477482854864-0.48442938970401883/package
npm ERR! Error: ENOENT, utime '/root/tmp/npm-7-3dHut-Jq/1477482854810-0.03756607137620449/package/test'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR! System Linux 4.2.0-42-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /usr/src/imageservice
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /root/tmp/npm-7-3dHut-Jq/1477482854810-0.03756607137620449/package/test
npm ERR! fstream_path /root/tmp/npm-7-3dHut-Jq/1477482854810-0.03756607137620449/package/test/tarray.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call setupMadeDir
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack end (/usr/lib/nodejs/fstream/lib/writer.js:319:21)
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:336:20
npm ERR! fstream_stack next (/usr/lib/nodejs/fstream/lib/writer.js:366:20)
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! addLocalDirectory Could not pack "/root/tmp/npm-7-3dHut-Jq/1477482854864-0.48442938970401883/package" to "/root/.npm/resolve-from/1.0.1/package.tgz"
npm ERR! tar pack Error reading /root/tmp/npm-7-3dHut-Jq/1477482854827-0.8885397869162261/package
npm ERR! tar pack Error reading /root/tmp/npm-7-3dHut-Jq/1477482854827-0.8885397869162261/package
npm http GET https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz
npm ERR! addLocalDirectory Could not pack "/root/tmp/npm-7-3dHut-Jq/1477482854827-0.8885397869162261/package" to "/root/.npm/flat-cache/1.2.1/package.tgz"
npm ERR! addLocalDirectory Could not pack "/root/tmp/npm-7-3dHut-Jq/1477482854827-0.8885397869162261/package" to "/root/.npm/flat-cache/1.2.1/package.tgz"
npm http GET https://registry.npmjs.org/acorn/-/acorn-4.0.3.tgz
npm http 200 https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz
npm http 200 https://registry.npmjs.org/acorn/-/acorn-4.0.3.tgz
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/src/imageservice/node_modules/eslint/node_modules/shelljs/src'
npm ERR! error rolling back eslint@2.13.1 { [Error: ENOTEMPTY, rmdir '/usr/src/imageservice/node_modules/eslint/node_modules/shelljs/src']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/src/imageservice/node_modules/eslint/node_modules/shelljs/src' }
npm ERR! Error: ENOENT, open '/usr/src/imageservice/node_modules/eslint/node_modules/inquirer/lib/utils/readline.js'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR! System Linux 4.2.0-42-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /usr/src/imageservice
npm ERR! node -v v0
.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/src/imageservice/node_modules/eslint/node_modules/inquirer/lib/utils/readline.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, lstat '/usr/src/imageservice/node_modules/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR! System Linux 4.2.0-42-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /usr/src/imageservice
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/src/imageservice/node_modules/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json
npm ERR! fstream_path /usr/src/imageservice/node_modules/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/src/imageservice/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.js'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR! System Linux 4.2.0-42-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /usr/src/imageservice
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/src/imageservice/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.js
npm ERR! fstream_path /usr/src/imageservice/node_modules/eslint/node_modules/js-yaml/dist/js-yaml.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/src/imageservice/node_modules/eslint/node_modules/glob/node_modules/minimatch/minimatch.js'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR! System Linux 4.2.0-42-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /usr/src/imageservice
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/src/imageservice/node_modules/eslint/node_modules/glob/node_modules/minimatch/minimatch.js
npm ERR! fstream_path /usr/src/imageservice/node_modules/eslint/node_modules/glob/node_modules/minimatch/minimatch.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/src/imageservice/node_modules/eslint/node_modules/table/dist/validateConfig.js'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR! System Linux 4.2.0-42-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /usr/src/imageservice
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/src/imageservice/node_modules/eslint/node_modules/table/dist/validateConfig.js
npm ERR! fstream_path /usr/src/imageservice/node_modules/eslint/node_modules/table/dist/validateConfig.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/root/tmp/npm-7-3dHut-Jq/1477482847868-0.11803021607920527/package/data/haarcascade_frontalface_alt_tree.xml'
npm ERR! If you need help, you may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR! System Linux 4.2.0-42-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /usr/src/imageservice
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /root/tmp/npm-7-3dHut-Jq/1477482847868-0.11803021607920527/package/data/haarcascade_frontalface_alt_tree.xml
npm ERR! fstream_path /root/tmp/npm-7-3dHut-Jq/1477482847868-0.11803021607920527/package/data/haarcascade_frontalface_alt_tree.xml
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http GET https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz
npm http 200 https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/src/imageservice/npm-debug.log
npm ERR! not ok code 0
The command '/bin/sh -c npm install' returned a non-zero code: 1
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (10 by maintainers)
v0.17.0 now available with this fix.
Commit 594085b on the
quillbranch should fix this. This will be in v0.17.0.