-
Notifications
You must be signed in to change notification settings - Fork 169
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 install on EC2 #241
Comments
@DOEHOONLEE Can you run It may be that you need to install some additional packages (xvfb, mesa) for |
I also got an error saying that GLIBC version 2.27 is required, but for some reason, I am not able to update GLIBC on my EC2. So I setup I made sure to have GLIBC abvoe 2.27 then ran An easy way to test would be
I did succeed installing
[1] I don't think this is the right place to ask, but on EC2, when I run [2] on Docker, I am able to install all the necessary packages, but unable to run it using gl |
In the Docker image, are you starting a Usually, it involves running something like
Or
Make sure there is enough graphics memory available to the docker container. |
I only tried this on EC2, but not on Docker. Let me try that! Thank you!! [edit] oh, wait.. I did have that in Docker.
This is what my Dockerfile looks like, but I need extra memory like you mentioned. Let me check it and come back! Thank you!! |
I found a typo at 0 upgraded, 42 newly installed, 0 to remove and 17 not upgraded. |
should be
|
Hmm.. still getting the same error after fixing to |
The error being |
I think I would need to see your context creation/access code. Find exactly where in your code the gl context is returning null |
What I did was [1] [2] go into the folder [3] create
[4] docker build . -t Dockerfile Could something be wrong here? :( |
I just checked if xvfb and mesa-libGL are installed and they are. Are there anything else I should look for? |
@dhritzkiv I got it to work with your solution above
is there a way to run |
You may be able to achieve it with
Otherwise, you may have to:
|
@dhritzkiv Sorry for the late reply! |
@dhritzkiv , just one last question. Does GLIBC version actually matter? |
I don't believe this is a requirement within headless-gl, but node. The precise version is likely unimportant, but I believe GLIBC_2.27 is likely the minimum required by native build tools with node. Other, similar issues experienced by others: nvm-sh/nvm#2972 It's possible your distribution (and/or build tools/libraries) are out of date. It might be easier to control and ensure your build environment with docker or chroot |
Hi~!
I am trying to install
node-canvas-webgl
on my project and kept bumping into errors then I found out it had something to do withgl
.So when I try
npm i gl
ornpm install headless-gl
, I get these messagesAnybody had this problem?
P.S.
I tried this all in node version 12, 14, 16, 18 and all were the same.
The text was updated successfully, but these errors were encountered: