Installing PhantomJS on Alpine (3.3)

3 posts / 0 new
Last post
#1 Tue, 2017-02-07 17:12
macsig
  • macsig's picture
  • Offline
  • Last seen: 9 months 2 weeks ago
  • Joined: 2017-02-07

Hi there.
How can I install PhantomJS (2.1.1) on Alpine (3.3)?

I have done the following

wget <a href="https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
" rel="nofollow">https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
</a> tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local
 ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin

Having /usr/bin on my path

echo $PATH
/usr/local/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

However, I get

bash-4.3# phantomjs
bash: phantomjs: command not found

I have also added /usr/local/share/phantomjs-2.1.1-linux-x86_64 to the PATH but with the same result.

Thanks

Wed, 2017-02-08 10:09
macsig
  • macsig's picture
  • Offline
  • Last seen: 9 months 2 weeks ago
  • Joined: 2017-02-07
Sat, 2017-06-17 16:14
vito
  • vito's picture
  • Offline
  • Last seen: 5 months 6 days ago
  • Joined: 2017-06-17

Hello macsig

Did you succeed with phantomjs on alpine 3.6 ? For me the webdriver start not completelty, i can't communicate with it ( http://localhost:8910 )

Log in or register to post comments