![]() |
|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
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 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. |
|
|||
![]()
Use the OpenBSD package so it installs the necessary dependencies.
pkg_add youtube-dl Tim. |
|
|||
![]()
thank you
i will try it when iam at home :-) |
|
|||
![]()
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. |
|
|||
![]()
many thanks to you i will answer if it works if not i will install to 5.8 :-)
|
|
|||
![]() Quote:
Quote:
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. |
|
|||
![]()
@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
|
|
|||
![]()
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 Code:
pip install --upgrade youtube-dl many many thanks to all PS:when i have Holiday i will install OpenBSD 5.8 |
|
|||
![]() Quote:
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 |
|
||||
![]()
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. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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 |