DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th November 2015
kerasi kerasi is offline
Shell Scout
 
Join Date: Mar 2013
Location: Germany
Posts: 90
Default youtube-dl [solved]

Hello

i have installed OpenBSD 5.7 amd64 and i want to install the newest youtube-dl

Code:
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
but it dont work i dont get the newest one 2015.11.10

so what do i have to do?

i get also this message

env: python:No such file or Directory when i start youtube-dl

so what will be the right way to install this from that site

https://rg3.github.io/youtube-dl/download.html

thanks in advance

Last edited by kerasi; 15th November 2015 at 11:22 PM.
Reply With Quote
  #2   (View Single Post)  
Old 12th November 2015
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 305
Default

Use the OpenBSD package so it installs the necessary dependencies.

pkg_add youtube-dl

Tim.
Reply With Quote
  #3   (View Single Post)  
Old 12th November 2015
kerasi kerasi is offline
Shell Scout
 
Join Date: Mar 2013
Location: Germany
Posts: 90
Default

thank you

i will try it when iam at home :-)
Reply With Quote
  #4   (View Single Post)  
Old 12th November 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Youtube changes their interfaces regularly. It is possible that the version of youtube-dl packaged for 5.7 is no longer usable. If so, consider upgrading to OpenBSD 5.8, which was released October 18.
Reply With Quote
  #5   (View Single Post)  
Old 12th November 2015
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

www/youtube-dl is essentially a python script that the package installs in /usr/local/bin/.

I usually forego the package and install it directly from the upstream youtube-dl using
# wget https://yt-dl.org/downloads/2015.11.10/youtube-dl -O /usr/local/bin/youtube-dl and then making /usr/local/bin/youtube-dl executable. Note that the "2015.11.10" directory changes are more frequent than OpenBSD releases.

The command includes means to update itself:

# youtube-dl -U

You likely can also update the openbsd package but you will have minor issues with deleting the package later.

Last edited by shep; 12th November 2015 at 09:02 PM.
Reply With Quote
  #6   (View Single Post)  
Old 12th November 2015
kerasi kerasi is offline
Shell Scout
 
Join Date: Mar 2013
Location: Germany
Posts: 90
Default

many thanks to you i will answer if it works if not i will install to 5.8 :-)
Reply With Quote
  #7   (View Single Post)  
Old 12th November 2015
bashrules's Avatar
bashrules bashrules is offline
Aspiring Unix Greybeard
 
Join Date: Mar 2010
Location: Here
Posts: 80
Default

Code:
env: python:No such file or Directory when i start youtube-dl
You need to install python.
Reply With Quote
  #8   (View Single Post)  
Old 13th November 2015
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

Quote:
Originally Posted by bashrules View Post
Code:
env: python:No such file or Directory when i start youtube-dl
You need to install python.
There are two python versions in OpenBSD 5.8

Quote:
python-2.7.10 interpreted object-oriented programming language
python-3.4.3 interpreted object-oriented programming language
.

Either version should work although I think the OpenBSD www/youtube-dl pulls python2.7

On my system 3.4.3 is a libreoffice dependency. I usually use python2.7 as my system python. After installing python-2.7.10, there are instructions on how to make the necessary soft links.

Code:
If you want to use this package as your default system python, as root
create symbolic links like so (overwriting any previous default):
 ln -sf ${PREFIX}/bin/python2.7 ${PREFIX}/bin/python
 ln -sf ${PREFIX}/bin/python2.7-2to3 ${PREFIX}/bin/2to3
 ln -sf ${PREFIX}/bin/python2.7-config ${PREFIX}/bin/python-config
 ln -sf ${PREFIX}/bin/pydoc2.7  ${PREFIX}/bin/pydoc

Last edited by shep; 13th November 2015 at 01:12 AM.
Reply With Quote
  #9   (View Single Post)  
Old 13th November 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

youtube-dl is one of those rare instances where actually pip is useful. Just do

Code:
# pip install --upgrade youtube-dl
Collecting youtube-dl
  Downloading youtube_dl-2015.11.10-py2.py3-none-any.whl (1.1MB)
    100% |################################| 1.1MB 288kB/s 
Installing collected packages: youtube-dl
  Found existing installation: youtube-dl 2015.10.24
    Uninstalling youtube-dl-2015.10.24:
      Successfully uninstalled youtube-dl-2015.10.24
Successfully installed youtube-dl-2015.11.10
Reply With Quote
Old 13th November 2015
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

@Oko

Thanks.

I was not aware of devel/py-pip. Although I think it would still change the original time/date/ stamp of the package leading to a minor warning with # pkg_delete youtube-dl
Reply With Quote
Old 15th November 2015
kerasi kerasi is offline
Shell Scout
 
Join Date: Mar 2013
Location: Germany
Posts: 90
Default

so hello again

:-)

now youtube-dl works i installed

pkg_add py-pip

and create this symbolic links shown above

Code:
If you want to use this package as your default system python, as root
create symbolic links like so (overwriting any previous default):
 ln -sf ${PREFIX}/bin/python2.7 ${PREFIX}/bin/python
 ln -sf ${PREFIX}/bin/python2.7-2to3 ${PREFIX}/bin/2to3
 ln -sf ${PREFIX}/bin/python2.7-config ${PREFIX}/bin/python-config
 ln -sf ${PREFIX}/bin/pydoc2.7  ${PREFIX}/bin/pydoc
and then take this from user Oko

Code:
pip install --upgrade youtube-dl
and now it works

many many thanks to all

PS:when i have Holiday i will install OpenBSD 5.8
Reply With Quote
Old 17th November 2015
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default

Quote:
Originally Posted by Oko View Post
youtube-dl is one of those rare instances where actually pip is useful.
pip is a command I have not seen in a long long time...

It brought back memories from the late 1970's, early 1980's when it was a standard utility on Gary Kildall's CP/M operating system:

http://www.shaels.net/index.php/cpm8.../6-pip-utility

Gary is the one to blame/credit for the goofy 8.3 file name convention used in the MS/DOS file systems. In those days 64k of ram was a large amount of ram.
__________________
When you see a good move, look for a better one.
--Lasker

Last edited by comet--berkeley; 17th November 2015 at 12:19 AM. Reason: grammar
Reply With Quote
Old 17th November 2015
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 374
Cool

Quote:
Originally Posted by kerasi View Post
PS:when i have Holiday i will install OpenBSD 5.8
I'm sure you will enjoy 5.8 as much as we do.
__________________
hitest
Reply With Quote
Old 17th November 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by comet--berkeley View Post
pip is a command I have not seen in a long long time...
pip is Python package manager circa 2008 which replaced easy_install which was Python package manager since 2004. Other notable package manager for Python is conda. Note that non of the above package manager are useful for installing very complex Python packages like scipy, numpy, or matplotlib. Those have to installed from ports and their compilation on OpenBSD is non-trivial.

One of other notable package manager is cabal (for Haskell). It works pretty well on OpenBSD and can be used for example to install a really useful package pandoc which is not in OpenBSD ports tree.

Last edited by Oko; 17th November 2015 at 10:45 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gangnam Style BREAKS YouTube J65nko Off-Topic 0 3rd December 2014 02:01 PM
how to watch youtube videos on OpenBSD? lucas34 OpenBSD Packages and Ports 28 11th March 2014 06:34 PM
Enable Youtube Video in HTML5 shep News 13 25th December 2011 07:31 PM
firefox, linux-flash, nspluginwrapper, and youtube? neurosis FreeBSD Ports and Packages 16 15th August 2008 06:46 AM
Conference on Youtube infrastructure 18Googol2 Off-Topic 0 13th July 2008 05:20 PM


All times are GMT. The time now is 12:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick