-
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
Install Problem: 'jpeglib.h' file not found #348
Comments
|
Yes it was installed via brew, and it does exist at that location: /usr/local/include |
I just upgraded from 10.7 to 10.9, so I'm trying to reproduce.
brew uninstall cairo
brew install cairo
# fails, tells me to link pixman
brew link pixman
brew install cairo
# fails, tells me to install XQuartz
# install XQuartz
brew install cairo
# fails, tells me to install Xcode Command Line Tools
xcode-select --install
brew install cairo
# installs glib, cairo
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/X11/lib/pkgconfig npm install canvas
# installs node-canvas successfully I didn't do anything with |
Fixed! O well thanks a lot! |
I also encountered this problem, no solution |
If you are on Mavericks, you'll need to install the Xcode command line tools, even if you did it on mountain lion. The errors I was getting didnt mention anything about this, however it was this that fixed the issue, so I would double check you have this installed correctly. |
I'm on Mavericks. Thanks a lot , I have solved. brew update
brew doctor
xcode-select --install
brew install cairo gobject-introspection pixman |
I had the same problem, yhostc's solution solved it, thank you |
I had the same problem. Found this post. Wrote 'xcode-select --install' |
Thanks @yhostc! My steps were:
see #14123 for the pkgconfig This should definitely be added to the wiki. |
I had the same problem, and I have long searched on the internet, but nothing has solved the problem. But now with
|
I'm having the same problem, but in this case in Ubuntu 14.10, not on OSX... :-( |
Here's how I fixed it:
$ xcode-select --install
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig
$ npm install |
Had the same issue, yhostc's solution solved it, thank you |
No one of these solutions helped in my case, but this helped fix it : |
I think node-canvas should download the dependencies and compile them statically to prevent this problems... |
What about in ubuntu?! |
My fork download all dependencies and compike them statically inside the canvas.node binary, so these problems are not happening anymore. I did a pull-request sometime ago. |
+1 |
For Ubuntu users, please install the package: libjpeg-dev |
$ xcode-select --install works for mac! |
I did a lot of the things writen here for my mac OSX but non seam to work. Finally i uninstalled node-canvas from my node_modules library and reinstall it and now i can work with jpegs! I feel like i have won a gold medal at the Olympics |
great !!!!!!!!! xcode-select --install works thanks a lot |
Please try |
As I said before, by compiling statically this problem gets fixed. My pull-request is waiting... |
My solution is the same with @LinusU. |
xcode-select --install works for me. |
I've been going round the bend trying to solve this.
When I attempt to install I get:
Having done a search, the jpeglib.h file is in /usr/include/jpeglib.h
I'm pretty sure I installed it correctly, but it must be a broken reference.
Can someone tell me where this jpeg lib is expected to be located for the canvas install to find it?
Thanks a lot.
The text was updated successfully, but these errors were encountered: