Automattic / Automattic/node-canvas

install node-canvas,happen:"ld: library not found for -lintl"

Open
#1,176 0 comments 1 reaction 0 assignees View on GitHub
Installation help
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

~~~
npm install canvas

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: warning: directory not found for option '-L/usr/local/opt/gettext/lib'
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/canvas.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/limi/.nvm/versions/node/v6.9.1/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 Darwin 17.5.0
gyp ERR! command "/Users/limi/.nvm/versions/node/v6.9.1/bin/node" "/Users/limi/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

~~~

~~~
limideMacBook-Pro:limi$ pkg-config pangocairo --libs
-L/usr/local/Cellar/pango/1.42.1/lib -L/usr/local/Cellar/glib/2.56.1/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/cairo/1.14.12/lib -L/usr/local/Cellar/fribidi/1.0.4/lib -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation -lfribidi -lcairo

~~~

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.