-
Notifications
You must be signed in to change notification settings - Fork 216
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
"Error: libjpeg.so.8: cannot open shared object file: No such file or directory" #106
Comments
@sabreenakp Unfortunately, qr-js is no longer supported and has been deprecated in favour of QRious. Also, I'm afraid I cannot help you without knowing exactly what your code is doing or a reproducible example. You may want to consider upgrading to QRious first in case there's an issue with one of qr-js' old dependencies (i.e. node-canvas). Install My main recommendation would be to ensure that your instance has all of the dependencies for node-canvas installed. This will be relevant for both qr-js and QRious: https://github.com/Automattic/node-canvas/tree/v1.6.7#installation I found this page on the node-canvas wiki. Perhaps it will help: https://github.com/Automattic/node-canvas/wiki/Installation---Amazon-Linux-AMI-(EC2) By the nature of your error, I doubt it's an issue with this library, and most likely an issue with one of its dependencies and/or your installation. |
@neocotic I tried node-qrious and according to https://github.com/Automattic/node-canvas/wiki/Installation---Amazon-Linux-AMI-(EC2) i tried to install node-canvas after running this command - sudo yum install cairo-devel libjpeg-turbo-devel giflib-devel -y i got response as below- then i tried yum repolist all to see the repolist but got response as repolist: 0 |
@sabreenakp I'm not sure how to help you here. Might be worth asking on node-canvas instead as this is outside of the scope of QRious. |
Can I use QRious in node.js? I tried and sudo npm install --save --no-optional qrious const QRious = require('qrious'); and got document not defined error |
QRious was designed to be modular and split into multiple packages:
|
Yeah, I used node-qrous also "Error: libjpeg.so.8: can not open shared object file: No such file or directory" same error as using qr-js |
It must be an issue with your node-canvas installation then, which is a separate project that QRious depends on. |
Can i use angular-qrious on my client side and get base64 url inside my component? |
I don't own or maintain that package so I'm not familiar with it, but it sounds like it. The pure QRious lib could also be used for client side rendering. |
Sorry If, I'm going to be "Mr.Obvious" here but in my case the problem was just package version problem. Some distribution like Debian Jessie install libjpeg.so.62 instead of libjpeg.so.8 when you ask to install libjpeg-dev package. So check the version of libpeg you have in your system. |
That or compiling from source works too: http://www.ijg.org/files/ |
Installed https://www.npmjs.com/package/qr-js for my Node.js app, It's working perfectly in my local system ubuntu 14.04 but after I build and deploy the app in AWS EC2 I couldn't log in to my application and showing Failed to load resource: net:: ERR_CONNECTION_REFUSED error and i found the error logs containing
Error: libjpeg.so.8: cannot open shared object file: No such file or directory"
What is the reason for this error? How can I configure AWS EC2 such that qr-js can be used?
The text was updated successfully, but these errors were encountered: