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

Cannot open include file: 'cairo.h': No such file or directory #843

Closed
ShyPianoGuy opened this issue Nov 12, 2016 · 16 comments
Closed

Cannot open include file: 'cairo.h': No such file or directory #843

ShyPianoGuy opened this issue Nov 12, 2016 · 16 comments

Comments

@ShyPianoGuy
Copy link

says it in the title..

@LinusU
Copy link
Collaborator

LinusU commented Nov 12, 2016

Have you followed the installation instructions?

https://github.com/Automattic/node-canvas#installation

@apexearth
Copy link

Following the "Install with Chocolatey" instructions for windows led me to this problem.
Following the "Install Manually" instructions fixed the problem. (downloading GTK 2 and placing it in C:\GTK)

The choco install seemed to be lacking the sources.

@ghost
Copy link

ghost commented Oct 30, 2017

unzipping GTK to C:\GTK worked, it is missing from the automatic instructions you still have to download GTK separately.

@eko24ive
Copy link

eko24ive commented May 3, 2018

I can confirm that using manual install solve this issue.
Does anyone from contributors/owner of this repo would like me to create PR to update wiki ?

@LinusU
Copy link
Collaborator

LinusU commented May 3, 2018

Does anyone from contributors/owner of this repo would like me to create PR to update wiki ?

Yes please ☺️

@zbjornson
Copy link
Collaborator

@eko24ive anyone can edit the wiki without a PR, so if you find a way to improve it, go ahead. That's how the Chocolatey instructions ended up there. There have been a few issues with those instructions, so we might want to just remove them if they can't be made more reliable.

@eko24ive
Copy link

eko24ive commented May 4, 2018

Well, for myself I'd removed the Chocolatey guide, but I don't want to do so until we see solid proof that Chocolatey instructions aren't working for the reasonable amount of people.

@eko24ive
Copy link

eko24ive commented May 4, 2018

@zbjornson @LinusU
I've updated the wiki. It was my first time with wikis, so I was expected PR-like procedure or something 😂
I decided to add a warning for Chocolatey instruction for now, since we don't know if it doesn't work for people at all. Also, I've added an anchor link to "Install Manually" section in the warning message.Please review it and let me know if something not right.

@zbjornson
Copy link
Collaborator

Thanks @eko24ive. If I have time I'll see if I can come up with a better version of the Chocolatey instructions sometime.

@eko24ive
Copy link

eko24ive commented May 5, 2018

@zbjornson no problem.

Also, I saw "Installation on Heroku" article on the wiki, and I was wondering why it is even there.
You see, I have my dyno on Heroku running at heroku-16 stack, and in my project I'm using chartjs-node which is depended on node-canvas and I was able to get it up and running right out of the box without using any buildpacks.
Probably that wiki article must be revised as well, what do you think ?

@zbjornson
Copy link
Collaborator

@eko24ive the Heroku info was also submitted by someone else in response to one of these issues: https://github.com/Automattic/node-canvas/search?q=heroku&type=Issues. I don't know anything about Heroku to give feedback there, sorry.

@eko24ive
Copy link

eko24ive commented May 7, 2018

I'm just saying that I was sort of able to get node-canvas up and running without using any custom buildpacks - right out of the box. Do you have anyone on the collaborators team to check it by chance?

@chearon
Copy link
Collaborator

chearon commented May 7, 2018

I don't think any of the collaborators use Heroku but if you're sure it worked with zero config, I say go ahead and remove the wiki or add a note saying your setup didn't need any changes.

@eko24ive
Copy link

eko24ive commented May 8, 2018

Ok, I'll double check it then and if it's so - I'll add a note to the article.

This was referenced Jun 19, 2018
Closed
@karlhorky
Copy link

karlhorky commented Aug 23, 2021

@zbjornson @eko24ive maybe python2 can be switched to python and microsoft-build-tools switched to visualstudio2017-workload-vctools? These build tools have been working for a lot of Windows developers:

felixrieseberg/windows-build-tools#172 (comment)

visualstudio2017-workload-vctools is the same as microsoft-build-tools but just more up to date:

felixrieseberg/windows-build-tools#208 (comment)

Why is GTK needed? Ah, I see, because of Cairo. Can it be installed using Chocolatey too? Eg. the GTK Runtime package?

@Josehower and I will try these changes to the Chocolatey instructions with some bootcamp students: https://github.com/upleveled/next-starter-peacock#getting-started

@zhangguanzhang
Copy link

sudo apt-get install libcairo2-dev

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

8 participants