-
Notifications
You must be signed in to change notification settings - Fork 95
Installation
Justin Roberson edited this page Feb 12, 2016
·
2 revisions
Installing youtube-dl (not the gem)
For youtube-dl.rb (the gem) to work, it needs youtube-dl (the tool) to be installed. By default the gem ships with a Python script and a Windows exe version of youtube-dl. The Windows exe includes the Python runtime, whereas the python script does not. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific.
Using curl
sudo curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
or with a recent wget
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
Windows users can download a .exe file and place it in their home directory or any other location on their PATH.
OS X users can install youtube-dl with Homebrew.
brew install youtube-dl
If you have pip installed, you can do
[sudo] pip install youtube-dl
git clone https://github.com/rg3/youtube-dl.git
...
Add this line to your application's Gemfile:
gem 'youtube-dl.rb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install youtube-dl.rb
Installing from source:
$ git clone https://github.com/layer8x/youtube-dl.rb.git
$ cd youtube-dl.rb
$ bundle install
$ rake install