youtube-dl installing problem

Discussion in 'Mac Programming' started by bingefeller, Jan 31, 2017.

  1. bingefeller macrumors 6502

    Joined:
    Jun 25, 2007
    Location:
    Northern Ireland
    #1
    Hi folks,

    I'm getting this error message when trying to install youtube-dl:

    Failed to create the file /usr/local/bin/youtube-dl: No such file or directory.

    i'm using Mac OS 10.12.3 and Python 2.7.10

    i typed in the exact command from the youtube-dl page -

    sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

    Just like that, all on one line. Do I need to create that folder manually?
     
  2. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #2
    That will work, but you may need to make the folder first with this:

    sudo mkdir -p /usr/local/bin/
    sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
    sudo chmod +x /usr/local/bin/youtube-dl

    Those three lines should get it installed for you. If you're still having trouble installing it, I suggest looking at Homebrew to install it: http://brew.sh/
     
  3. bingefeller thread starter macrumors 6502

    Joined:
    Jun 25, 2007
    Location:
    Northern Ireland
    #3
    Thanks for your help, but I'm chatting with someone on an irc chat and I apparently have /usr/local/bin

    echo "$PATH" gives me this:

    /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin


    Does that mean I already have that folder? I don't want to try and remake the folder incase it messes up something. I understand I could do it via Homebrew, but I literally would be using Homebrew to install this one prog.
     
  4. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #4
    The folder may already exist, but it isn't possible to tell from your $PATH. Running the mkdir command won't hurt anything if the folder already exists. It'll only do something if it doesn't exist.
     
  5. bingefeller thread starter macrumors 6502

    Joined:
    Jun 25, 2007
    Location:
    Northern Ireland
    #5
    Thanks again, Intell. I got it working now following your commands. I wasn't doubting you, it's just that, as you can tell, I don't have a clue about the command line and don't want to mess anything up. I did install youtube-dl like this on my old MacBook Pro and it worked, but this is a clean install of Sierra so.....
     
  6. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #6
    Happy you got it working! Don't forget to keep youtube-dl updated with "sudo youtube-dl -U"
     

Share This Page