jubo的学習記録

日々自分の技量のなさに悩みながら這いつくばって頑張っているエンジニアが勉強・学習したことの記録です。

phantomjs でエラーが出たの再インストール

phantomjsを使用しようとしたらエラーが出ました。 対応した方法を記録

$ phantomjs
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/phantomjs
  Reason: image not found
Abort trap: 6
shinya_kubo:app$ brew remove phantomjs

いろいろと検索してopensslなど再インストールしたけど、 結局のところ下記で対応できてしまった。

$ brew remove phantomjs
$ phantomjs
-bash: /usr/local/bin/phantomjs: No such file or directory
$ brew install phantomjs
Updating Homebrew...
==> Caveats
phantomjs has been officially discontinued upstream.
It may stop working correctly (or at all) in recent versions of macOS.

==> Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip
Already downloaded: /Users/shinya_kubo/Library/Caches/Homebrew/downloads/f8cdfacce271a45f2b21ff12f7cd783d941450ed6d34e5c20eb20abd42f481c0--phantomjs-2.1.1-macosx.zip
==> Installing Cask phantomjs
==> Linking Binary 'phantomjs' to '/usr/local/bin/phantomjs'.
🍺  phantomjs was successfully installed!

$ phantomjs --version
2.1.1