-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Package fontconfig was not found in the pkg-config search path #246
Comments
Have you tried |
@skattyadz This worked for me but I ran into other problems described in #267. |
I also have this issue, any chance this will get fixed? Brew is rather popular and its directories should be checked for dependencies. |
Depending on how you installed X11 depends on the export you need to add. If you are using OSX's built in X11, or installed XQuartz use 'export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig' if you installed using hombrew or some other package manager use 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig'. More info on that can be found here https://github.com/LearnBoost/node-canvas/wiki/Installation---OSX Hope that helps. |
Hrm this issue is blocking me installing on smartOS (joyents OS)
Any more suggestions? |
Okay so I solved this for SmartOS, see my command history..
To find your correct PKG_CONFIG_PATH do a locate xproto.pc and use that path (minus the file name) |
and in ubuntu? |
/usr/share/pkgconfig/xproto.pc on Ubuntu Trusty |
Having the same problem on FreeBSD 10.1.
|
@dt1973 looks like pkg-config executable is not in your PATH? |
Indeed. Turns out I had to do Thanks! |
Closing this since it's an old thread, please see our new installation instructions and report back if you still have problems... |
seems like it's worked, waoO
|
Add a note for installing for mac on macOS 10.13.2 using
|
These are all the steps I had to do in my Mac, thanks @maple-leaf for 99% of that |
@toddwilkens works well |
on ubuntu 18* try:- sudo apt-get install libfontconfig-dev |
Using |
Just tried installing canvas 1.0.0 from npm and I'm getting this error;
The text was updated successfully, but these errors were encountered: