I am using ffmpeg and getting this error
ffmpeg: error while loading shared libraries: libopenh264.so.5: cannot open shared object file: No such file or directory
I have already checked if the library exists and it does. I added it to /etc/ld.so.conf as mentioned in this previous question but it doesn't work.
Another approach that seemed easier and worked for me on Ubuntu 16.04 and python 3.8 was just calling:
conda update ffmpeg
from this post.
I faced this error when I run ffmpeg 4.2.2 under python 3.8 environment.
The root cause is that libopen264.so from python 3.8 is too new for ffmpeg 4.2.2.
I can find
libopen264.so.6 under the ~/anaconda3/envs/py38/lib/ (py38 is my conda virtual environment), but we only need an older version libopen264.so.5.
To solve the problem, I just make a softlink from my existing anaconda environment (python 3.7) as follows - and it works.
ln -s ~/anaconda3/lib/libopenh264.so ~/anaconda3/envs/py38/lib/libopenh264.so.5
I resolved this by:
Downloading the openh264 binary from GitHub
Copying/renaming the binary to my conda env, e.g. ~/anaconda3/envs/py38/lib/libopenh264.so.5 where py38 is the env name
I had the same issue, to fix it I removed all installs of ffmpeg:
sudo apt-get remove ffmpeg
sudo apt-get purge ffmpeg
After doing this, the output was still the same, which ffmpeg showed me I was using the one from anaconda, so I removed that one (renamed it)
Then I could do a clean install and now it works again:
sudo apt-get install ffmpeg
I copy ~/anaconda3/lib/libopenh264.so, paste to the same folder and rename it to libopenh264.so.5. And it works.
I recently encountered this issue with system-installed ffmpeg, and pip-installed ffmpeg-python within a conda environment.
The work-around for me was uninstalling the system ffmpeg and installing as ffmpeg as a conda package within my conda environment:
# Uninstall ffmpeg system install (assumes Ubuntu)
sudo apt-get remove ffmpeg -y
sudo apt-get purge ffmpeg -y
# Install ffmpeg in conda env
conda install -c conda-forge ffmpeg
I did what Synthesis did, that is
sudo apt-get remove ffmpeg
sudo apt-get purge ffmpeg
However, I removed the Anaconda ffmpeg module
conda remove ffmpeg
The clean install then did the trick:
sudo apt-get install ffmpeg
Related
after I install alien and
having zenmap in the download folder
when I run this command alien zenmap-7.91-1.noarch.rpm or any command related to it I get this error
package build failed. here's the log:
dh
dh: error:specify sequence to run
make:***[debian/rules:7:binary]Error 25
how do I fix this error? please help...
First just to make sure you don't have any rpm problems run this command:
apt-get --fix-broken install
Then you may need these:
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://azure.archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
dpkg -i python-gobject-2_2.28.6-14ubuntu1_amd64.deb
dpkg -i python-cairo_1.16.2-2ubuntu2_amd64.deb
dpkg -i python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
And after you have all that installed lets make sure our alien version is 8.90.
Remove alien:
apt-get remove alien
Download alien 8.90 version here.
Install alien:
dpkg -i alien_8.90_all.deb
Now we will locate our zenmap file and run these commands:
sudo alien zenmap-7.91-1.noarch.rpm
sudo dpkg -i **YOUR-ZENMAP-FILE**.deb
If those commands run perfectly you can now run:
sudo zenmap
Et voilĂ ! :)
I had the same issue installing Zenmap in kali linux.
Package build failed. Here's the log:
dh: error: specify a sequence to run make:
*** [debian/rules:7: binary] Error 25
To solve this, I had to downgrade to Alien version 8.90, since I was using 8.95.3
There is some information online, and it's also detailed in the changelogs as well, explaining some changes performed on the latest alien updates and how they read the dh headers. Zenmap.rpm packages seem to be non-compilant with these updates.
I downgraded to a different Alien version to skip these dh verification changes.
To do so, I uninstalled the current alien version with
apt-get remove alien
Then, from https://pkgs.org/download/alien I downloaded Ubuntu Main amd64 Official alien_8.90_all.deb
installed with: dpkg -i alien_8.90_all.deb
Downloaded the latest Zenmap rpm version here
https://nmap.org/dist
and successfully converted rpm to deb running
alien zenmap-X.XX.noarch.rpm
Once the RPM was converted to .deb, you could run
dpkg -i zenmap-X.XX.noarch.deb
App would not open, running from CLI I figured that some python libs failed to load
Could not import the zenmapGUI.App module: 'No module named gtk'. I
checked in these directories:
/usr/bin
/usr/share/offsec-awae-wheels/colorama-0.4.3-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl
...
As suggested in this post I download the packages:
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://azure.archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
Then installed with dpkg
dpkg -i python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
dpkg -i python-gobject-2_2.28.6-14ubuntu1_amd64.deb
dpkg -i python-cairo_1.16.2-2ubuntu2_amd64.deb
Now Zenmap is working beautifully.
You can install the package directly using -i option:
sudo alien -i zenmap-7.91-1.noarch.rpm
Also you can use fpm to convert an rpm to deb, to install it:
sudo apt install ruby ruby-dev rubygems build-essential
sudo gem install --no-document fpm
To convert:
fpm -s rpm -t deb zenmap-7.91-1.noarch.rpm
I encountered the same exact issue, I was using
alien -i package.rpm
I believe this error occurred because of an update to the bullseye version from bullseye/main alien all 8.95+nmu1 to bullseye/main alien all 8.95.3. Updating Debian preferences to install alien from buster with version buster/main alien all 8.95 fixed the issue for me! Hope this helps!
I want to install Visual Code in ubuntu-18.04 with .deb package, i used: dpkg -i <file name.deb> i also tried: apt-get install -f
but it says it needs libconf-2-4, and libconf-2-4 needs more things...
Is there any way to install all of the dependencies together?
You can use apt for installing a package file, e.g.,
apt install ./filename.deb
The "./" helps it see that is just a package file, and after that it will continue by evaluating dependencies.
I am using anaconda for python and I face this problem I tried a lot to solve this error, but still not solved.
I used the following commands so far
sudo apt-get install libstdc++6
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
conda install libgcc
in this link a solution provided but I still don't know how to do that
I solved this by
conda install libgcc=5.2.0
A solution that worked for me was:
conda install -c anaconda libstdcxx-ng
This is because you have some old versions not cleaned up while upgrading gcc.
First of all, make sure that you have the latest lib with conda install -c conda-forge libstdcxx-ng
Find all your lib versions with find / -name "libstdc++.so*". My latest version is 6.0.30.
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.29
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0
/usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.so
/usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.so.6.0.29
/usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.so.6.0
/opt/conda/lib/libstdc++.so.6.0.29
/opt/conda/lib/libstdc++.so.6
/opt/conda/envs/xxx/lib/libstdc++.so.6.0.30
/opt/conda/envs/xxx/lib/libstdc++.so.6
/opt/conda/pkgs/libgcc-7.2.0-h69d50b8_2/lib/libstdc++.so.6.0.21
/opt/conda/pkgs/libstdcxx-ng-12.1.0-ha89aaad_16/lib/libstdc++.so.6.0.30
/opt/conda/pkgs/libstdcxx-ng-12.1.0-ha89aaad_16/lib/libstdc++.so.6
/opt/conda/pkgs/libstdcxx-ng-12.1.0-ha89aaad_16/lib/libstdc++.so
Copy the file to the folder where you are working at and only have the old versions. /opt/conda/lib/ or /opt/conda/envs/xxx/lib/
For example, I'm working on /opt/conda/lib/
cp /opt/conda/pkgs/libstdcxx-ng-12.1.0-ha89aaad_16/lib/libstdc++.so.6.0.30 /opt/conda/lib/
Remove the old files and link the latest lib. Please repeat these steps for other folders.
cd /opt/conda/lib/
rm libstdc++.so.6.0.29
rm libstdc++.so.6.0
ln -s libstdc++.so.6.0.30 libstdc++.so.6
I meet the same problem, which is when I run jupyter notebook, I got
ImportError: /home/cugtyt/software/miniconda3/lib/python3.6/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/cugtyt/software/miniconda3/lib/python3.6/site-packages/zmq/backend/cython/../../../../../libzmq.so.5)
I solve it by doing this:
conda uninstall gcc
Hope it can help u!
I ran into a similar problem.
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
I've solved it. Steps as follows:
try conda install -c anaconda libstdcxx-ng, // didn't work
try conda update libstdcxx-ng // didn't work too
But when I execute the command: locate libstdc++.so.6, found amazing things such as: /root/anaconda3/lib/libstdc++.so.6.0.26, which apparently is newer than .so.6.0.
I try:
strings /root/anaconda3/lib/libstdc++.so.6.0.26 | grep GLIBC
see [GLIBCXX_3.4.20][1]
That's the file I want to find.
Next step: ls -l /root/anaconda3/lib/libstdc++.so.6.0.26 - Check the file is true, not a link.
Next step: copy /root/anaconda3/lib/libstdc++.so.6.0.26 to /lib64.
Next step: ls -l /lib64/libstdc++.so.6 - It's a soft link, so I can remove it without worry.
Next step: rm -rf /lib64/libstdc++.so.6
Next step: make a new soft link by:
ln -s libstdc++.so.6.0.26 libstdc++.so.6
That's all. I run my code without error.
God give me wisdom, Glory to God!
Since libgcc=5.2.0 is not available from conda.
I solve it by this:
conda uninstall cmake
pip install cmake
Re-installing scipy library corrected the error automatically for me.
conda install scipy
I use mamba (a faster alternative to conda)
mamba install libgcc
Than it works.
I use anaconda, the following commands works for me:
conda install libgcc
export LD_LIBRARY_PATH=/path/to/anaconda/envs/myenv/lib:$LD_LIBRARY_PATH
cd /path/to/anaconda/envs/myenv/lib
ln -s libstdc++.so.6.0.30 libstdc++.so.6
you can add export LD_LIBRARY_PATH=/path/to/anaconda/envs/myenv/lib:$LD_LIBRARY_PATH to ~/.bashrc file.
Can any one give me the proper guidelines for gstreamer(1.8.0) installation in Ubuntu version 16.04??
Through command line
For installing gstreamer1.0 you can use:
sudo apt-get install libgstreamer1.0-* gstreamer1.0-tools gstreamer1.0-libav*
Depending on what are your needs, you probably are going to need other modules that are not installed in the previous command. I would consider adding:
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
Using next command:
sudo apt-get install gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly
After you have installed all the plugins you can verify the installation using:
gst-inspect-1.0
I have never used ffmpeg on my Ubuntu Linux 12.04 (Precise Pangolin) box until now. Typing 'ffmpeg' at the command prompt revealed that ffmpeg 0.8.17 (listed as ffmpeg 0.8.17-4:0.8.17-0ubuntu0.12.04.2) was installed. Seeing as I need to convert h.265 to h.264, an update was obviously required.
Following posted instructions, I installed a ream of packages:
$ sudo apt-get install faad libmp4v2-dev libfaac0 libfaac-dev
libxvidcore4 libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev
libgsm-tools libogg-dev libtheora-bin libfaad-dev libvorbis-dev
libtheora-dev libdts-dev git-core yasm texi2html checkinstall
followed by
$ sudo apt-get purge ffmpeg
in order to get rid of the old stuff from the original repo.
Downloaded the latest ffmpeg, and a ."/configure; make; sudo make install" later, I should be in business.
Except that typing 'ffmpeg' at the prompt still fired up the old version. A quick look revealed that the old ffmpeg binary was still sitting in /usr/bin with the new one being installed in /usr/local/bin. But ffmpeg is no longer listed as an installed package, and sudo apt-get remove ffmpeg tells me that "Package ffmpeg is not installed, so not removed".
Running /usr/local/bin/ffmpeg directly works, however then fails in an Unknown encoder 'libx264' error. Which is puzzling because the package libx264-120 is installed and /usr/lib/i386-linux-gnu/libx264.so.120 (with the appropriate symlink to /usr/lib/i386-linux-gnu/libx264.so) does exist.
Maybe I've been looking at this for too long, because I'm sure this is a simple issue but I just can't see it.
Can someone please hand me the stupid had and point out why I deserve to wear it?
Tnx!
You should find out which package provides this old binary in /usr/bin by running
dpkg -S /usr/bin/ffmpeg
Then remove that package in turn.
Note that if that file is a symlink, esp. to /etc/alternatives, you should follow the trail of symlinks and then run the above command on the actual binary.