Reputation: 358
when i tried to install phantomjs, after all progress ,i run
$:phantomjs -v .
$ : Permission denied
then i run
$: sudo chmod 755 /usr/local/share/phantomjs
There after whenever i run the command "phantomjs" , ubuntu throws the error
Segmentation fault (core dumped)
Upvotes: 1
Views: 1605
Reputation: 358
The problem was caused by older versions of phantomjs that were installed in other places. I removed the phanthomjs related file from the following locations, and then it worked:
/usr/bin/phanthomjs
/usr/local/share/phanthomjs
/usr/local/bin/phanthomjs
Upvotes: 1