Debian 8.4にFirefoxを入れる

selenium-webdriver を動かす必要があって、タイトルのとおり Debian 8.4 に Firefox をインストールします。

時系列にいきますので、長くなります。

Unable to find Mozilla geckodriver. Please download the server from https://github.com/mozilla/geckodriver/releases and place it somewhere on your PATH. More info at https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver.

エラーのとおり、geckodriver をダウンロードして PATH の通っているところに設置する。

Could not find Firefox binary (os=linux). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path=

Firefox がインストールされていないようなので、インストールします。

$ echo deb http://packages.linuxmint.com debian import >> /etc/apt/sources.list
apt-get update
apt-get install firefox
$ firefox -v
XPCOMGlueLoad error for file /opt/firefox/libxul.so:
libXcomposite.so.1: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

参考サイト