How to update phantomjs 1.9.8 to phantomjs 2.1.1 on ubuntu?

后端 未结 6 868
北恋
北恋 2021-02-02 16:54

I cant reinstall phantomjs 1.9.8 to 2.1.1 version on my ubuntu 16.04 Please help. 1.9.8 give me an errors when I write a spin functions, in documentation see that this ploblem

6条回答
  •  佛祖请我去吃肉
    2021-02-02 17:34

    As approved steps did not work for me, I am sharing the solution I found.

    # Install phantomJS
    export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"
    wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2
    sudo tar xvjf $PHANTOM_JS.tar.bz2
    
    sudo mv $PHANTOM_JS /usr/local/share
    sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
    
    # Sanity check 
    phantomjs --version
    >>> 2.1.1
    

提交回复
热议问题