ariya / phantomjs

Scriptable Headless Browser
http://phantomjs.org
BSD 3-Clause "New" or "Revised" License
29.46k stars 5.76k forks source link

Trying to use PhantomJS on Ubuntu with CircleCI #15460

Closed safetypins closed 3 years ago

safetypins commented 3 years ago

I'm trying to use PhantomJS on an Ubuntu CircleCI image, but I'm getting the following error:

phantomjs: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

I found an older issue related to this error, but there wasn't a solution posted there, just that on a clean install the problem went away. But when I run ldd phantomjs it says "not a dynamic executable". This error happens when I run phantomjs -v. Any ideas of how I can isolate what is causing this? I'm using Wraith with PhantomJS to do visual regression tests, but this error is occurring when I run phantomjs -v in the container, so I don't think it's related to Wraith. I'm downloading PhantomJS directly from https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.5.0-beta-linux-ubuntu-xenial-x86_64.tar.gz. Could it be because I'm trying to use a xenial release with Ubuntu 18.04 (bionic)? A version of the libjpeg library is installed; maybe i need to build it from source?

hexydec commented 3 years ago

Development on this project has been suspended and it has been archived. Use Puppeteer and Headless Chrome instead.

safetypins commented 3 years ago

Thanks!