PhantomJS version 1.4.0 version issue - ruby-on-rails

I installed PhantomJS today and got this error trying to use it:
PhantomJS version 1.4.0
is too old. You must use at least version 1.7.0
(Capybara::Poltergeist::PhantomJSTooOld)
How can I install the newer version?
I can get the newer version (1.7) at: http://phantomjs.org/download.html
Once I've downloaded it though how do I actually install it?

Are you using Linux or OS X? You'll need to either build from source or install an updated PhantomJS package. You can also download the binaries and install over the system installed PhantomJS. Type "which phantomjs" and it should show the location of PhantomJS.

If you're using homebrew, just:
brew upgrade phantomjs

I had to solve this problem yesterday, it required me updating brew, telling brew to uninstall phantomJS, then updating xcode, then installing the latest xcode command utilities, then using brew to re-install phantomjs. Finally that got it to pull in the latest version. You might try this (mac):
brew update
brew uninstall phantomjs
brew doctor (follow the fixes it recommends if any... Mine was updating xcode)
brew install phantomjs
At that point it should grab the latest.
Good luck!

Related

Specifically installing libldap-2.5.0 with Homebrew

Running PHP#7.2 which requires version 2.5.0 of this lib or I get this error:
dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.5.0.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
If I try the typical brew reinstall openldap libiconv solution, this installs 2.6.0 which PHP 7.2 won't use.
I've tried brew install openldap#2.5.0 but that doesn't work.
How can I get the older version 2.5.0 back on my system?
Install PHP 7.2 from the shivammathur/php tap:
(First, I recommend making a copy of /usr/local/Cellar/php#7.2 as a backup, in case any non-default files have been installed there.)
brew uninstall php#7.2
brew install shivammathur/php/php#7.2
How can I get the older version 2.5.0 back on my system?
#eComEvo you may want to improve the question by stating your system.
#fn-control-option you may want to improve your answer by providing the reader with information such as "its not a system specific issue" or the like.

Xdebug install on macOS

I'm trying to install Xdebug on macOS Catalina but home-brew no longer allowed to run as root. Worked fine before Catalina update.
I was running Xdebug under Mojave but Catalina upgrade broke it. Removed extension to reinstall and then hit hombrew issue: get the following error when running brew as root:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
Brew should be working without using sudo.
If that's not the case, your homebrew install is broken and you might need to reinstall it.
In any case brew doctor is something you can always consult.
After you got your homebrew fixed,
looking into Can't install xdebug on Mac with Homebrew might be of help.
Updating homebrew should do the trick -
brew update

Downgrade OpenCV using HomeBrew when brew versions is deleted

I am using the latest version (1.8.2) of homebrew and I am trying to downgrade opencv 3.4.3 to 3.4.0.
I followed this answer homebrew install specific version of formula? However, the problem is that even after I brew tap homebrew/boneyard, brew versions opencv still does not work.
How can I make 'brew versions' work for homebrew 1.8.2?
If that does not work, can I manually download and set up opencv 3.4.0 to homebrew?

Install opencv 3.3.1 (previous version) with homebrew

I have an issue with not being able to use an integral piece of software due to its dependancy and being compiled with a previous version of opencv. When installing new opencv using homebrew brew install opencv I am getting the latest version 3.4. Is there anyway to install a previous version? Edit: On MacOS.
For others with the same problem:
$ brew install opencv#3
See this other answer about installing different versions of homebrew packages.
Homebrew install specific version of formula?

Error installing Dart Development version on OS X with homebrew

Have installed several versions of Dart on OS X using homebrew.
brew tap dart-lang/dart
brew install dart
Today I did a 'brew upgrade' to Dart 1.11.3 stable, because I want to run cucumber/selenium/chromedriver tests in dartium. Dartium is still at version 39.* and chromedriver wants 40something.
note: windows users are able to run these tests in dartium :(
So, tried installing development version 1.12.0-dev.5.0 to see if dartium would also upgrade. No joy
brew install dart --devel
Warning: dart-lang/dart/dart-1.11.3 already installed
Do I really have to uninstall to install the development version?
Same thing happened to me too.
I solved it with uninstalling dart first:
brew uninstall --force dart
brew install dart --devel --with-dartium --with-content-shell

Resources