Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
15
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

OS X El Capitan‎ で phantomjs をインストールする

概要

  • homebrewでphantomjsをインストールできない問題が発生
$ brew install phantomjs
phantomjs: This formula either does not compile or function as expected on OS X
versions newer than Yosemite due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.

原因

対策

  • でも、バイナリから入れるのはちょっと抵抗あるなぁと思っていろいろ調べたらこんな記事が
  • https://github.com/Homebrew/homebrew/issues/44535

  • どうやら、npm経由でインストールできるとのこと

brew install npm # 入っていない方のみ
npm install phantom phantomjs -g

結果

  • 無事インストールされました
$ phantomjs -v
1.9.8
  • v2.0は入らないのは時間があるときに調査ということで〜
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
15
Help us understand the problem. What are the problem?