Could not find phantomjs

后端 未结 6 1746
终归单人心
终归单人心 2021-01-01 09:57

Getting the following error when trying to use phantomjs from ruby on Ubuntu:

 Failure/Error: visit root_path
 Cliver::Dependency::NotFound:
   Could not fin         


        
6条回答
  •  滥情空心
    2021-01-01 10:23

    Apparently, the solution was to add phantomjs not only to the PATH, but also create links:

    sudo ln -s /home/myuser/phantomjs/bin/phantomjs /usr/bin/phantomjs
    sudo ln -s /home/myuser/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
    sudo ln -s /home/myuser/phantomjs/bin/phantomjs /usr/local/share/phantomjs
    

    Adjust the /home/myuser/phantomjs/bin/phantomjs paths to match the path to phantomjs binary on your machine.

提交回复
热议问题