Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on FreeBSD uses incorrect pkgconfig directories #3106

Closed
3 tasks done
mizuhashiOzy opened this issue Feb 23, 2022 · 9 comments
Closed
3 tasks done

Building on FreeBSD uses incorrect pkgconfig directories #3106

mizuhashiOzy opened this issue Feb 23, 2022 · 9 comments

Comments

@mizuhashiOzy
Copy link

Possible install-time or require-time problem

  • I have read the documentation relating to installation.
  • I have ensured that the architecture and platform of Node.js used for npm install is the same as the architecture and platform of Node.js used at runtime.

Are you using the latest version of sharp?

  • I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.

If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.

If you are using another package which depends on a version of sharp that is not the latest, please open an issue against that package instead.

Is this a problem with filesystem permissions?

No.

What is the complete output of running npm install --verbose sharp?

npm info it worked if it ends with ok npm verb cli [ npm verb cli '/usr/local/bin/node', npm verb cli '/usr/local/bin/npm', npm verb cli 'install', npm verb cli '--verbose', npm verb cli 'sharp' npm verb cli ] npm info using npm@6.14.8 npm info using node@v16.13.0 npm verb npm-session b7567ad5a3ec1ce9 npm http fetch GET 200 https://registry.npmjs.org/sharp 350ms npm http fetch GET 200 https://registry.npmjs.org/sharp/-/sharp-0.30.1.tgz 122ms npm timing stage:loadCurrentTree Completed in 529ms npm timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms npm timing stage:loadIdealTree:loadShrinkwrap Completed in 0ms npm http fetch GET 200 https://registry.npmjs.org/color 128ms npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 229ms npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 232ms npm http fetch GET 200 https://registry.npmjs.org/simple-get 233ms npm http fetch GET 200 https://registry.npmjs.org/tar-fs 234ms npm http fetch GET 304 https://registry.npmjs.org/semver 244ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/color/-/color-4.2.1.tgz 123ms npm http fetch GET 200 https://registry.npmjs.org/detect-libc 257ms npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 252ms npm http fetch GET 200 https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz 103ms npm http fetch GET 200 https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz 98ms npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz 102ms npm http fetch GET 200 https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.0.1.tgz 142ms npm http fetch GET 200 https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz 142ms npm http fetch GET 200 https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz 144ms npm http fetch GET 200 https://registry.npmjs.org/color-string 104ms npm http fetch GET 200 https://registry.npmjs.org/color-convert 107ms npm http fetch GET 200 https://registry.npmjs.org/color-string/-/color-string-1.9.0.tgz 98ms npm http fetch GET 200 https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz 97ms npm http fetch GET 200 https://registry.npmjs.org/color-name 107ms npm http fetch GET 200 https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz 100ms npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 134ms npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz 138ms npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 93ms npm http fetch GET 200 https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz 95ms npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 101ms npm http fetch GET 200 https://registry.npmjs.org/minimist 103ms npm http fetch GET 200 https://registry.npmjs.org/expand-template 107ms npm http fetch GET 200 https://registry.npmjs.org/github-from-package 109ms npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 139ms npm http fetch GET 200 https://registry.npmjs.org/rc 141ms npm http fetch GET 200 https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz 93ms npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz 135ms npm http fetch GET 200 https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz 135ms npm http fetch GET 200 https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz 145ms npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz 131ms npm http fetch GET 200 https://registry.npmjs.org/rc/-/rc-1.2.8.tgz 134ms npm http fetch GET 200 https://registry.npmjs.org/pump 669ms npm http fetch GET 200 https://registry.npmjs.org/node-abi 715ms npm http fetch GET 304 https://registry.npmjs.org/npmlog 754ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/pump/-/pump-3.0.0.tgz 93ms npm http fetch GET 200 https://registry.npmjs.org/node-abi/-/node-abi-3.8.0.tgz 93ms npm http fetch GET 200 https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz 94ms npm http fetch GET 304 https://registry.npmjs.org/lru-cache 104ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/yallist 91ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/are-we-there-yet 105ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/gauge 107ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/set-blocking 109ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/console-control-strings 116ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz 101ms npm http fetch GET 200 https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz 133ms npm http fetch GET 304 https://registry.npmjs.org/delegates 101ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/readable-stream 106ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz 96ms npm http fetch GET 200 https://registry.npmjs.org/isarray 107ms npm http fetch GET 304 https://registry.npmjs.org/safe-buffer 108ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/string_decoder 112ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/inherits 114ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/util-deprecate 116ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/core-util-is 144ms npm http fetch GET 200 https://registry.npmjs.org/process-nextick-args 150ms npm http fetch GET 200 https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz 141ms npm http fetch GET 200 https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz 138ms npm http fetch GET 200 https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz 144ms npm http fetch GET 200 https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz 137ms npm http fetch GET 200 https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz 136ms npm http fetch GET 304 https://registry.npmjs.org/string-width 108ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/has-unicode 118ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/wide-align 119ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/strip-ansi 121ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/signal-exit 125ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/aproba 126ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/object-assign 141ms npm http fetch GET 200 https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz 110ms npm http fetch GET 200 https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz 100ms npm http fetch GET 200 https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz 134ms npm http fetch GET 200 https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz 134ms npm http fetch GET 304 https://registry.npmjs.org/is-fullwidth-code-point 97ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/code-point-at 133ms npm http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz 152ms npm http fetch GET 200 https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz 135ms npm http fetch GET 200 https://registry.npmjs.org/number-is-nan 96ms npm http fetch GET 200 https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz 141ms npm http fetch GET 304 https://registry.npmjs.org/ansi-regex 100ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz 136ms npm http fetch GET 304 https://registry.npmjs.org/once 98ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 133ms npm http fetch GET 200 https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz 95ms npm http fetch GET 304 https://registry.npmjs.org/wrappy 106ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 131ms npm http fetch GET 200 https://registry.npmjs.org/deep-extend 136ms npm http fetch GET 200 https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz 91ms npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz 137ms npm http fetch GET 200 https://registry.npmjs.org/ini 707ms npm http fetch GET 200 https://registry.npmjs.org/ini/-/ini-1.3.8.tgz 152ms npm http fetch GET 200 https://registry.npmjs.org/simple-concat 132ms npm http fetch GET 200 https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz 138ms npm http fetch GET 200 https://registry.npmjs.org/decompress-response 691ms npm http fetch GET 200 https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz 89ms npm http fetch GET 200 https://registry.npmjs.org/mimic-response 91ms npm http fetch GET 200 https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz 92ms npm http fetch GET 200 https://registry.npmjs.org/tar-stream 97ms npm http fetch GET 200 https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz 99ms npm http fetch GET 304 https://registry.npmjs.org/chownr 666ms (from cache) npm http fetch GET 200 https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz 132ms npm http fetch GET 200 https://registry.npmjs.org/bl 104ms npm http fetch GET 200 https://registry.npmjs.org/fs-constants 137ms npm http fetch GET 200 https://registry.npmjs.org/bl/-/bl-4.1.0.tgz 101ms npm http fetch GET 200 https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz 133ms npm http fetch GET 200 https://registry.npmjs.org/buffer 140ms npm http fetch GET 200 https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz 137ms npm http fetch GET 200 https://registry.npmjs.org/base64-js 101ms npm http fetch GET 200 https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz 133ms npm http fetch GET 200 https://registry.npmjs.org/ieee754 663ms npm http fetch GET 200 https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz 98ms npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 8434ms npm timing stage:loadIdealTree Completed in 8461ms npm timing stage:generateActionsToTake Completed in 12ms npm verb correctMkdir /home/fedi/.npm/_locks correctMkdir not in flight; initializing npm verb lock using /home/fedi/.npm/_locks/staging-48283a3cae8db060.lock for /usr/home/fedi/test/node_modules/.staging npm timing audit submit Completed in 285ms npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 285ms npm timing audit body Completed in 4ms npm timing action:extract Completed in 293ms npm timing action:finalize Completed in 48ms npm timing action:refresh-package-json Completed in 124ms npm info lifecycle ansi-regex@2.1.1~preinstall: ansi-regex@2.1.1 npm info lifecycle aproba@1.2.0~preinstall: aproba@1.2.0 npm info lifecycle base64-js@1.5.1~preinstall: base64-js@1.5.1 npm info lifecycle chownr@1.1.4~preinstall: chownr@1.1.4 npm info lifecycle code-point-at@1.1.0~preinstall: code-point-at@1.1.0 npm info lifecycle color-name@1.1.4~preinstall: color-name@1.1.4 npm info lifecycle color-convert@2.0.1~preinstall: color-convert@2.0.1 npm info lifecycle console-control-strings@1.1.0~preinstall: console-control-strings@1.1.0 npm info lifecycle core-util-is@1.0.3~preinstall: core-util-is@1.0.3 npm info lifecycle deep-extend@0.6.0~preinstall: deep-extend@0.6.0 npm info lifecycle delegates@1.0.0~preinstall: delegates@1.0.0 npm info lifecycle detect-libc@2.0.1~preinstall: detect-libc@2.0.1 npm info lifecycle expand-template@2.0.3~preinstall: expand-template@2.0.3 npm info lifecycle fs-constants@1.0.0~preinstall: fs-constants@1.0.0 npm info lifecycle github-from-package@0.0.0~preinstall: github-from-package@0.0.0 npm info lifecycle has-unicode@2.0.1~preinstall: has-unicode@2.0.1 npm info lifecycle ieee754@1.2.1~preinstall: ieee754@1.2.1 npm info lifecycle buffer@5.7.1~preinstall: buffer@5.7.1 npm info lifecycle inherits@2.0.4~preinstall: inherits@2.0.4 npm info lifecycle ini@1.3.8~preinstall: ini@1.3.8 npm info lifecycle is-arrayish@0.3.2~preinstall: is-arrayish@0.3.2 npm info lifecycle isarray@1.0.0~preinstall: isarray@1.0.0 npm info lifecycle mimic-response@3.1.0~preinstall: mimic-response@3.1.0 npm info lifecycle decompress-response@6.0.0~preinstall: decompress-response@6.0.0 npm info lifecycle minimist@1.2.5~preinstall: minimist@1.2.5 npm info lifecycle mkdirp-classic@0.5.3~preinstall: mkdirp-classic@0.5.3 npm info lifecycle napi-build-utils@1.0.2~preinstall: napi-build-utils@1.0.2 npm info lifecycle number-is-nan@1.0.1~preinstall: number-is-nan@1.0.1 npm info lifecycle is-fullwidth-code-point@1.0.0~preinstall: is-fullwidth-code-point@1.0.0 npm info lifecycle object-assign@4.1.1~preinstall: object-assign@4.1.1 npm info lifecycle process-nextick-args@2.0.1~preinstall: process-nextick-args@2.0.1 npm info lifecycle safe-buffer@5.1.2~preinstall: safe-buffer@5.1.2 npm info lifecycle set-blocking@2.0.0~preinstall: set-blocking@2.0.0 npm info lifecycle signal-exit@3.0.7~preinstall: signal-exit@3.0.7 npm info lifecycle simple-concat@1.0.1~preinstall: simple-concat@1.0.1 npm info lifecycle simple-swizzle@0.2.2~preinstall: simple-swizzle@0.2.2 npm info lifecycle color-string@1.9.0~preinstall: color-string@1.9.0 npm info lifecycle string_decoder@1.1.1~preinstall: string_decoder@1.1.1 npm info lifecycle strip-ansi@3.0.1~preinstall: strip-ansi@3.0.1 npm info lifecycle string-width@1.0.2~preinstall: string-width@1.0.2 npm info lifecycle strip-json-comments@2.0.1~preinstall: strip-json-comments@2.0.1 npm info lifecycle rc@1.2.8~preinstall: rc@1.2.8 npm info lifecycle tunnel-agent@0.6.0~preinstall: tunnel-agent@0.6.0 npm info lifecycle util-deprecate@1.0.2~preinstall: util-deprecate@1.0.2 npm info lifecycle readable-stream@3.6.0~preinstall: readable-stream@3.6.0 npm info lifecycle bl@4.1.0~preinstall: bl@4.1.0 npm info lifecycle readable-stream@2.3.7~preinstall: readable-stream@2.3.7 npm info lifecycle are-we-there-yet@1.1.7~preinstall: are-we-there-yet@1.1.7 npm info lifecycle readable-stream@3.6.0~preinstall: readable-stream@3.6.0 npm info lifecycle wide-align@1.1.5~preinstall: wide-align@1.1.5 npm info lifecycle sharp@0.30.1~preinstall: sharp@0.30.1 npm info lifecycle prebuild-install@7.0.1~preinstall: prebuild-install@7.0.1 npm info lifecycle node-addon-api@4.3.0~preinstall: node-addon-api@4.3.0 npm info lifecycle color@4.2.1~preinstall: color@4.2.1 npm info lifecycle node-abi@3.8.0~preinstall: node-abi@3.8.0 npm info lifecycle semver@7.3.5~preinstall: semver@7.3.5 npm info lifecycle lru-cache@6.0.0~preinstall: lru-cache@6.0.0 npm info lifecycle yallist@4.0.0~preinstall: yallist@4.0.0 npm info lifecycle simple-get@4.0.1~preinstall: simple-get@4.0.1 npm info lifecycle tar-fs@2.1.1~preinstall: tar-fs@2.1.1 npm info lifecycle pump@3.0.0~preinstall: pump@3.0.0 npm info lifecycle tar-stream@2.2.0~preinstall: tar-stream@2.2.0 npm info lifecycle end-of-stream@1.4.4~preinstall: end-of-stream@1.4.4 npm info lifecycle once@1.4.0~preinstall: once@1.4.0 npm info lifecycle wrappy@1.0.2~preinstall: wrappy@1.0.2 npm info lifecycle npmlog@4.1.2~preinstall: npmlog@4.1.2 npm info lifecycle gauge@2.7.4~preinstall: gauge@2.7.4 npm timing action:preinstall Completed in 12ms npm info linkStuff ansi-regex@2.1.1 npm info linkStuff aproba@1.2.0 npm info linkStuff base64-js@1.5.1 npm info linkStuff chownr@1.1.4 npm info linkStuff code-point-at@1.1.0 npm info linkStuff color-name@1.1.4 npm info linkStuff color-convert@2.0.1 npm info linkStuff console-control-strings@1.1.0 npm info linkStuff core-util-is@1.0.3 npm info linkStuff deep-extend@0.6.0 npm info linkStuff delegates@1.0.0 npm info linkStuff detect-libc@2.0.1 npm info linkStuff expand-template@2.0.3 npm info linkStuff fs-constants@1.0.0 npm info linkStuff github-from-package@0.0.0 npm info linkStuff has-unicode@2.0.1 npm info linkStuff ieee754@1.2.1 npm info linkStuff buffer@5.7.1 npm info linkStuff inherits@2.0.4 npm info linkStuff ini@1.3.8 npm info linkStuff is-arrayish@0.3.2 npm info linkStuff isarray@1.0.0 npm info linkStuff mimic-response@3.1.0 npm info linkStuff decompress-response@6.0.0 npm info linkStuff minimist@1.2.5 npm info linkStuff mkdirp-classic@0.5.3 npm info linkStuff napi-build-utils@1.0.2 npm info linkStuff number-is-nan@1.0.1 npm info linkStuff is-fullwidth-code-point@1.0.0 npm info linkStuff object-assign@4.1.1 npm info linkStuff process-nextick-args@2.0.1 npm info linkStuff safe-buffer@5.1.2 npm info linkStuff set-blocking@2.0.0 npm info linkStuff signal-exit@3.0.7 npm info linkStuff simple-concat@1.0.1 npm info linkStuff simple-swizzle@0.2.2 npm info linkStuff color-string@1.9.0 npm info linkStuff string_decoder@1.1.1 npm info linkStuff strip-ansi@3.0.1 npm info linkStuff string-width@1.0.2 npm info linkStuff strip-json-comments@2.0.1 npm info linkStuff rc@1.2.8 npm verb linkBins [ { rc: 'cli.js' }, '/usr/home/fedi/test/node_modules/.bin', false ] npm info linkStuff tunnel-agent@0.6.0 npm info linkStuff util-deprecate@1.0.2 npm info linkStuff readable-stream@3.6.0 npm info linkStuff bl@4.1.0 npm info linkStuff readable-stream@2.3.7 npm info linkStuff are-we-there-yet@1.1.7 npm info linkStuff readable-stream@3.6.0 npm info linkStuff wide-align@1.1.5 npm info linkStuff gauge@2.7.4 npm info linkStuff npmlog@4.1.2 npm info linkStuff wrappy@1.0.2 npm info linkStuff once@1.4.0 npm info linkStuff end-of-stream@1.4.4 npm info linkStuff tar-stream@2.2.0 npm info linkStuff pump@3.0.0 npm info linkStuff tar-fs@2.1.1 npm info linkStuff simple-get@4.0.1 npm info linkStuff yallist@4.0.0 npm info linkStuff lru-cache@6.0.0 npm info linkStuff semver@7.3.5 npm verb linkBins [ npm verb linkBins { semver: 'bin/semver.js' }, npm verb linkBins '/usr/home/fedi/test/node_modules/.bin', npm verb linkBins false npm verb linkBins ] npm info linkStuff node-abi@3.8.0 npm info linkStuff color@4.2.1 npm info linkStuff node-addon-api@4.3.0 npm info linkStuff prebuild-install@7.0.1 npm verb linkBins [ npm verb linkBins { 'prebuild-install': 'bin.js' }, npm verb linkBins '/usr/home/fedi/test/node_modules/.bin', npm verb linkBins false npm verb linkBins ] npm info linkStuff sharp@0.30.1 npm timing action:build Completed in 26ms npm info lifecycle ansi-regex@2.1.1~install: ansi-regex@2.1.1 npm info lifecycle aproba@1.2.0~install: aproba@1.2.0 npm info lifecycle base64-js@1.5.1~install: base64-js@1.5.1 npm info lifecycle chownr@1.1.4~install: chownr@1.1.4 npm info lifecycle code-point-at@1.1.0~install: code-point-at@1.1.0 npm info lifecycle color-name@1.1.4~install: color-name@1.1.4 npm info lifecycle color-convert@2.0.1~install: color-convert@2.0.1 npm info lifecycle console-control-strings@1.1.0~install: console-control-strings@1.1.0 npm info lifecycle core-util-is@1.0.3~install: core-util-is@1.0.3 npm info lifecycle deep-extend@0.6.0~install: deep-extend@0.6.0 npm info lifecycle delegates@1.0.0~install: delegates@1.0.0 npm info lifecycle detect-libc@2.0.1~install: detect-libc@2.0.1 npm info lifecycle expand-template@2.0.3~install: expand-template@2.0.3 npm info lifecycle fs-constants@1.0.0~install: fs-constants@1.0.0 npm info lifecycle github-from-package@0.0.0~install: github-from-package@0.0.0 npm info lifecycle has-unicode@2.0.1~install: has-unicode@2.0.1 npm info lifecycle ieee754@1.2.1~install: ieee754@1.2.1 npm info lifecycle buffer@5.7.1~install: buffer@5.7.1 npm info lifecycle inherits@2.0.4~install: inherits@2.0.4 npm info lifecycle ini@1.3.8~install: ini@1.3.8 npm info lifecycle is-arrayish@0.3.2~install: is-arrayish@0.3.2 npm info lifecycle isarray@1.0.0~install: isarray@1.0.0 npm info lifecycle mimic-response@3.1.0~install: mimic-response@3.1.0 npm info lifecycle decompress-response@6.0.0~install: decompress-response@6.0.0 npm info lifecycle minimist@1.2.5~install: minimist@1.2.5 npm info lifecycle mkdirp-classic@0.5.3~install: mkdirp-classic@0.5.3 npm info lifecycle napi-build-utils@1.0.2~install: napi-build-utils@1.0.2 npm info lifecycle number-is-nan@1.0.1~install: number-is-nan@1.0.1 npm info lifecycle is-fullwidth-code-point@1.0.0~install: is-fullwidth-code-point@1.0.0 npm info lifecycle object-assign@4.1.1~install: object-assign@4.1.1 npm info lifecycle process-nextick-args@2.0.1~install: process-nextick-args@2.0.1 npm info lifecycle safe-buffer@5.1.2~install: safe-buffer@5.1.2 npm info lifecycle set-blocking@2.0.0~install: set-blocking@2.0.0 npm info lifecycle signal-exit@3.0.7~install: signal-exit@3.0.7 npm info lifecycle simple-concat@1.0.1~install: simple-concat@1.0.1 npm info lifecycle simple-swizzle@0.2.2~install: simple-swizzle@0.2.2 npm info lifecycle color-string@1.9.0~install: color-string@1.9.0 npm info lifecycle string_decoder@1.1.1~install: string_decoder@1.1.1 npm info lifecycle strip-ansi@3.0.1~install: strip-ansi@3.0.1 npm info lifecycle string-width@1.0.2~install: string-width@1.0.2 npm info lifecycle strip-json-comments@2.0.1~install: strip-json-comments@2.0.1 npm info lifecycle rc@1.2.8~install: rc@1.2.8 npm info lifecycle tunnel-agent@0.6.0~install: tunnel-agent@0.6.0 npm info lifecycle util-deprecate@1.0.2~install: util-deprecate@1.0.2 npm info lifecycle readable-stream@3.6.0~install: readable-stream@3.6.0 npm info lifecycle bl@4.1.0~install: bl@4.1.0 npm info lifecycle readable-stream@2.3.7~install: readable-stream@2.3.7 npm info lifecycle are-we-there-yet@1.1.7~install: are-we-there-yet@1.1.7 npm info lifecycle readable-stream@3.6.0~install: readable-stream@3.6.0 npm info lifecycle wide-align@1.1.5~install: wide-align@1.1.5 npm info lifecycle gauge@2.7.4~install: gauge@2.7.4 npm info lifecycle npmlog@4.1.2~install: npmlog@4.1.2 npm info lifecycle wrappy@1.0.2~install: wrappy@1.0.2 npm info lifecycle once@1.4.0~install: once@1.4.0 npm info lifecycle end-of-stream@1.4.4~install: end-of-stream@1.4.4 npm info lifecycle tar-stream@2.2.0~install: tar-stream@2.2.0 npm info lifecycle pump@3.0.0~install: pump@3.0.0 npm info lifecycle tar-fs@2.1.1~install: tar-fs@2.1.1 npm info lifecycle simple-get@4.0.1~install: simple-get@4.0.1 npm info lifecycle yallist@4.0.0~install: yallist@4.0.0 npm info lifecycle lru-cache@6.0.0~install: lru-cache@6.0.0 npm info lifecycle semver@7.3.5~install: semver@7.3.5 npm info lifecycle node-abi@3.8.0~install: node-abi@3.8.0 npm info lifecycle color@4.2.1~install: color@4.2.1 npm info lifecycle node-addon-api@4.3.0~install: node-addon-api@4.3.0 npm info lifecycle prebuild-install@7.0.1~install: prebuild-install@7.0.1 npm info lifecycle sharp@0.30.1~install: sharp@0.30.1

sharp@0.30.1 install /usr/home/fedi/test/node_modules/sharp
(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Installation error: BSD/SunOS systems require manual installation of libvips >= 8.12.2
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm verb lifecycle sharp@0.30.1install: unsafe-perm in lifecycle true
npm verb lifecycle sharp@0.30.1
install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/home/fedi/test/node_modules/sharp/node_modules/.bin:/usr/home/fedi/test/node_modules/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/fedi/bin
npm verb lifecycle sharp@0.30.1install: CWD: /usr/home/fedi/test/node_modules/sharp
npm info lifecycle sharp@0.30.1
install: Failed to exec install script
npm timing action:install Completed in 236ms
npm verb unlock done using /home/fedi/.npm/_locks/staging-48283a3cae8db060.lock for /usr/home/fedi/test/node_modules/.staging
npm timing stage:rollbackFailedOptional Completed in 63ms
npm timing stage:runTopLevelLifecycles Completed in 9870ms
npm WARN enoent ENOENT: no such file or directory, open '/usr/home/fedi/test/package.json'
npm verb enoent This is related to npm not being able to find a file.
npm verb enoent
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.

npm verb stack Error: sharp@0.30.1 install: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm verb stack Exit status 1
npm verb stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
npm verb stack at EventEmitter.emit (node:events:390:28)
npm verb stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (node:events:390:28)
npm verb stack at maybeClose (node:internal/child_process:1064:16)
npm verb stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm verb pkgid sharp@0.30.1
npm verb cwd /usr/home/fedi/test
npm verb FreeBSD 13.0-RELEASE-p7
npm verb argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--verbose" "sharp"
npm verb node v16.13.0
npm verb npm v6.14.8
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.30.1 install: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.30.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 10352ms

npm ERR! A complete log of this run can be found in:
npm ERR! /home/fedi/.npm/_logs/2022-02-23T02_46_35_982Z-debug.log

What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?

npx: installed 1 in 0.85s

System:
OS: freebsd
CPU: (48) x64 Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
Memory: 70.25 GB / 127.84 GB
Binaries:
Node: 16.13.0 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 6.14.8 - /usr/local/bin/npm

Additional information

Attempting to build using node-gyp has the build fail by not finding vips/vips8 despite it being available at /usr/local/include/vips/vips8, the build script likely did not include /usr/local/include as one of the include paths.

@lovell
Copy link
Owner

lovell commented Feb 23, 2022

When building from source, the include path is determined by pkg-config - here's the relevant logic (note the inclusion of /usr/local):

return [brewPkgConfigPath.trim(), env.PKG_CONFIG_PATH, '/usr/local/lib/pkgconfig', '/usr/lib/pkgconfig']

The salient part of the error message you're seeing is:

sharp: Installation error: BSD/SunOS systems require manual installation of libvips >= 8.12.2

Which version of vips is installed? pkg-config --modversion vips-cpp should provide this.

@mizuhashiOzy
Copy link
Author

When building from source, the include path is determined by pkg-config - here's the relevant logic (note the inclusion of /usr/local):

return [brewPkgConfigPath.trim(), env.PKG_CONFIG_PATH, '/usr/local/lib/pkgconfig', '/usr/lib/pkgconfig']

The salient part of the error message you're seeing is:

sharp: Installation error: BSD/SunOS systems require manual installation of libvips >= 8.12.2

Which version of vips is installed? pkg-config --modversion vips-cpp should provide this.

this was not the issue

when I tried to build it by calling node-gyp configure and node-gyp build, it attempted to build but failed because vips/vips8 was not available, when it was in fact, available, in /usr/local/include, but the build script only told the compiler to look in /usr/include

@lovell
Copy link
Owner

lovell commented Feb 23, 2022

What is the output of running pkg-config --modversion vips-cpp and pkg-config --cflags-only-I vips-cpp ?

@mizuhashiOzy
Copy link
Author

What is the output of running pkg-config --modversion vips-cpp and pkg-config --cflags-only-I vips-cpp ?

8.12.2

-I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libgsf-1 -I/usr/local/include/libxml2 -I/usr/local/include/ImageMagick-7 -I/usr/local/include/orc-0.4 -I/usr/local/include/OpenEXR -I/usr/local/include/Imath -I/usr/local/include/openjpeg-2.4 -I/usr/local/include/libvmaf -I/usr/local/include/poppler/glib -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/poppler -I/usr/local/include/librsvg-2.0 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/fribidi

@lovell
Copy link
Owner

lovell commented Feb 23, 2022

Thank you, that looks OK.

I think it might be the call to pkg-config --modversion vips-cpp here that is failing to detect the globally-installed libvips, but I'm not sure why.

const globalLibvipsVersion = spawnSync(`PKG_CONFIG_PATH="${pkgConfigPath()}" pkg-config --modversion vips-cpp`, spawnSyncOptions).stdout;

If you're able to do so, please can you check/debug this logic to see if it's finding/using the relevant values for your system, thank you.

@mizuhashiOzy
Copy link
Author

Thank you, that looks OK.

I think it might be the call to pkg-config --modversion vips-cpp here that is failing to detect the globally-installed libvips, but I'm not sure why.

const globalLibvipsVersion = spawnSync(`PKG_CONFIG_PATH="${pkgConfigPath()}" pkg-config --modversion vips-cpp`, spawnSyncOptions).stdout;

If you're able to do so, please can you check/debug this logic to see if it's finding/using the relevant values for your system, thank you.

seems like it should be in /usr/local/libdata/pkgconfig for FreeBSD instead of /usr/local/lib/pkgconfig

@lovell
Copy link
Owner

lovell commented Feb 24, 2022

Yes, thank you, that will be it. Presumably we'll need to add /usr/libdata/pkgconfig to this list of paths also.

return [brewPkgConfigPath.trim(), env.PKG_CONFIG_PATH, '/usr/local/lib/pkgconfig', '/usr/lib/pkgconfig']

Happy to accept a PR if you're able.

I wonder why this hasn't come up before. Perhaps some flavours/versions of BSD automagically set PKG_CONFIG_PATH or create a symlink from libdata to lib?

@lovell lovell changed the title building with node-gyp on FreeBSD has incorrect include directories Building on FreeBSD uses incorrect pkgconfig directories Feb 24, 2022
@lovell lovell added bug and removed installation labels Feb 24, 2022
@lovell lovell added this to the v0.30.2 milestone Feb 27, 2022
@lovell
Copy link
Owner

lovell commented Feb 27, 2022

Commit fc3b4a6 adds these two additional pkg-config paths. This will be in v0.30.2, thanks for reporting and helping diagnose.

@lovell
Copy link
Owner

lovell commented Mar 2, 2022

v0.30.2 now available.

@lovell lovell closed this as completed Mar 2, 2022
martinj pushed a commit to aptoma/sharp that referenced this issue Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants