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

can't install width Centos6.7&canvas@2.0.0-alpha.8 #1051

Closed
Liguo-Wang opened this issue Dec 14, 2017 · 6 comments
Closed

can't install width Centos6.7&canvas@2.0.0-alpha.8 #1051

Liguo-Wang opened this issue Dec 14, 2017 · 6 comments

Comments

@Liguo-Wang
Copy link

Issue or Feature

Was trying to install this this on a CentOS 6.7 installation and started receiving errors.

Here is the error log.

 COPY Release/canvas-postbuild.node
  CXX(target) Release/obj.target/canvas/src/backend/Backend.o
In file included from ../src/backend/Backend.cc:1:0:
../src/backend/Backend.h: In member function 'virtual cairo_format_t Backend::getFormat()':
../src/backend/Backend.h:53:49: error: 'CAIRO_FORMAT_INVALID' was not declared in this scope
     virtual cairo_format_t getFormat() { return CAIRO_FORMAT_INVALID; }
                                                 ^
../src/backend/Backend.h:53:71: warning: control reaches end of non-void function [-Wreturn-type]
     virtual cairo_format_t getFormat() { return CAIRO_FORMAT_INVALID; }
                                                                       ^
make: *** [Release/obj.target/canvas/src/backend/Backend.o] Error 1

I do have upgrade C++ compiler and installed other dependencies.

gcc --version
gcc (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

g++ --version
g++ (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

sudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel -y

Package cairo-1.8.8-6.el6_6.x86_64 already installed and latest version
Package cairo-devel-1.8.8-6.el6_6.x86_64 already installed and latest version
Package cairomm-devel-1.8.0-2.1.el6.x86_64 already installed and latest version
Package libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 already installed and latest version
Package pango-1.28.1-10.el6.x86_64 already installed and latest version
Package pango-devel-1.28.1-10.el6.x86_64 already installed and latest version
Package pangomm-2.26.0-1.el6.x86_64 already installed and latest version
Package pangomm-devel-2.26.0-1.el6.x86_64 already installed and latest version
Package giflib-devel-4.1.6-3.1.el6.x86_64 already installed and latest version

Your Environment

  • Version of node :v7.10.1
  • Centos: 6.7
  • GCC: 4.8.2

Please help me.

@LinusU
Copy link
Collaborator

LinusU commented Dec 14, 2017

Hmm, seems like that line was added in #935 and been there since alpha.3 🤔

@zbjornson
Copy link
Collaborator

zbjornson commented Dec 14, 2017

CentOS has an ancient version of canvas cairo. You could try to get a more recent version, but we can also define that value I think.

edit: typo, s/canvas/cairo.

@Liguo-Wang
Copy link
Author

@LinusU yes, you are right. This question has been bothering me for a long time.

@zbjornson
Copy link
Collaborator

@wangliguo6666 the version of cairo (I said "canvas" by mistake in my earlier comment) shown in your log is from 2009. I won't have a chance to submit a PR to fix this for a few days. Meanwhile you can install a newer version of cairo, or use canvas-prebuilt (npm install canvas-prebuilt).

@Liguo-Wang
Copy link
Author

@zbjornson ,thank you. I will have a try.😄

@Liguo-Wang
Copy link
Author

Liguo-Wang commented Dec 15, 2017

@LinusU @zbjornson Thanks for your help.😂
I've upgraded the system to centos7, it's working fine now.
It's really a Cairo version of the problem. Now it is 1.14.8.

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

3 participants