-
Notifications
You must be signed in to change notification settings - Fork 31
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
Question about canvas-prebuilt #8
Comments
You do have to change |
@chearon cool, that's what i figured. thanks for the quick reply 👍 |
@chearon I may have closed this a bit too early. After some more experimentation, I seem to be running into another exception: $ docker run --rm -it node:6-onbuild /bin/bash
root@07cc63564fc5:/usr/src/app# npm install canvas-prebuilt@1.6.0
...
root@07cc63564fc5:/usr/src/app# node -e "var canvas = require('canvas-prebuilt');"
module.js:597
return process.dlopen(module, path._makeLong(filename));
^
Error: /usr/src/app/node_modules/canvas-prebuilt/canvas/build/Release/libgobject-2.0.so.0: undefined symbol: g_option_group_unref
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/src/app/node_modules/canvas-prebuilt/canvas/lib/bindings.js:3:18)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
root@07cc63564fc5:/usr/src/app# echo $?
1 Interestingly enough, the package seems to work as expected when I follow the same procedure in OSX natively: [driti@driti-mb dump]$ which node
/Users/driti/.nvm/versions/node/v6.10.2/bin/node
[driti@driti-mb dump]$ npm install canvas-prebuilt@1.6.0
...
[driti@driti-mb dump]$ node -e "var canvas = require('canvas-prebuilt');"
[driti@driti-mb dump]$ echo $?
0 Is it possible something is broken in the Linux build? |
Hmmm I just tested and I didn't get that linker error... I also just did:
Which shows that the |
Did a bit more reading.... it is indeed undefined (that's what the |
Nope, I am not. [driti@driti-mb ~]$ uname -a
Darwin driti-mb 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
[driti@driti-mb ~]$ docker run --rm -it node:6-onbuild /bin/bash
root@ecc246b62731:/usr/src/app# uname -a
Linux ecc246b62731 4.9.13-moby #1 SMP Sat Mar 25 02:48:44 UTC 2017 x86_64 GNU/Linux And no worries, thanks for helping out with this! |
Do you have |
@chearon it appears so? [driti@driti-mb ~]$ docker run --rm -it node:6-onbuild /bin/bash
root@d4e067e843e0:/usr/src/app# /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Debian GLIBC 2.19-18+deb8u7) stable release version 2.19, by Roland McGrath et al.
Copyright (C) 2014 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.
Compiled by GNU CC version 4.8.4.
Compiled on a Linux 3.16.36 system on 2016-11-28.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>. |
@chearon I just found this, which may be relevant here lovell/sharp#371 |
So maybe the new libraries I'm publishing are referencing newer symbols that your That would explain why the jsdom builds are failing... the reason I had to change the Linux builds in the first place was because Travis's Ubuntu is so old |
Have the same problem :(
|
Thanks, looks like Jessie has a version of glib less than 2.44 too... I'm pretty sure that's the reason. I guess I'll have to push up the old binaries tomorrow. Pango won't work anymore but this has seemed to cause more people issues than that |
@chearon, version [driti@driti-mb ~]$ docker run --rm -it node:6-onbuild /bin/bash
root@cfed4386dbaf:/usr/src/app# npm install canvas-prebuilt@1.6.0
...
root@cfed4386dbaf:/usr/src/app# node -e "var canvas = require('canvas-prebuilt');"
root@cfed4386dbaf:/usr/src/app# echo $?
0 |
We've had this error on Linux builds without a glib install. What version will be the minimum requirement? EDIT - Tracked it down to the following: GNU C Library (Ubuntu EGLIBC 2.19-0ubuntu6.9) stable release version 2.19, by Roland McGrath et al.
|
@MalcolmSmithUK it's actually the version of Could you try removing and reinstalling |
Closing because I chose to use the old build, which resolves everyone's issues but reopens #6 |
I am getting the same error on windows7.. I have added |
That sounds different from the discussion above, which was about glibc not being binary compatible with user's OS. What version of node and canvas-prebuilt are you using? |
Hey @chearon, I have a question about this statement in the
README
:So my question is, should the following work with
canvas-prebuilt
?I ask, because I am experiencing different outcomes when using
canvas
andcanvas-prebuilt
. Examples below:With
canvas
With
canvas-prebuilt
Thanks in advance.
The text was updated successfully, but these errors were encountered: