Install ffmpeg in Centos 7 - ffmpeg

I am new to Centos.
When I tried to install ffmpeg in Centos, followed this link.
Error: Package: ffmpeg-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libSDL-1.2.so.0()(64bit)
Error: Package: ffmpeg-libs-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libschroedinger-1.0.so.0()(64bit)
Error: Package: libavdevice-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libopenal.so.1()(64bit)
Error: Package: libavdevice-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libSDL-1.2.so.0()(64bit)
Error: Package: ffmpeg-libs-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libass.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
When I tried to install libSDL-1.2.so.0, I have another dependencies errors.
What is usual practice of installation in Centos?

I go to Centos repository and download rpm binary package.
Then use the command as follow.
sudo yum --nogpgcheck localinstall xxxxxxxxxxx.rpm
If there are dependency packages to install, I tried to install those dependencies first.

We need to install epel repository first for Centos 7.
https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/
Then install from epel repository using yum install command.

Related

Installing GoCD Agent with Yum fails with `sysvinit-tools` not found

I'm' trying to install GoCD Agent with sudo yum install -y go-agent
However, I'm getting the following error.
Resolving Dependencies
--> Running transaction check
---> Package go-agent.noarch 0:19.6.0-9515 will be installed
--> Processing Dependency: sysvinit-tools for package: go-agent-19.6.0-9515.noarch
--> Finished Dependency Resolution
Error: Package: go-agent-19.6.0-9515.noarch (gocd)
Requires: sysvinit-tools
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tried installing sysvinit-tools with sudo yum install sysvinit-tools
I'm getting the following error.
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
No package sysvinit-tools available.
Error: Nothing to do
I'm on Amazon Linux AMI
In your case you appear to be on Amazon Linux AMI 2018.03 which is rather old and does not have sysvinit-tools.
I would recommend upgrading your machine, and to avoid upgrading sysvinit manually.
for centos7:
you can find that package in the epel repositories
First add the epel repository:
yum install epel-release
now you will be able to install sysvinit-tools:
yum install sysvinit-tools

Installing python-ldap fails with lber.h file not found in ubuntu 17.10 even after installing devel packages

I am trying to install python-ldap package using pip. I am getting the below error while executing pip install python-ldap. I tried installing the package corresponding to ubuntu 17.10 ( Artful ) as per this question but no luck yet. What package am I missing ?
Solution in the above stack overflow question is to install
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
But in 17.10 I could not see libsasl2-dev & libldap2-dev instead I could see packages libsasl-2-2& libldap-2.4-2. I installed those along with phthon-dev & libssl-dev. But still I am getting the below error.
Seems I am missing some package installation which has lber.h file in it.
Error I am getting :
In file included from Modules/LDAPObject.c:8:0:
Modules/constants.h:7:10: fatal error: lber.h: No such file or directory
#include "lber.h"
^~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Python version - 3.6.3
Pip version - 19.1.1
I have figured out the root cause myself. Issue seems to be the dev packages itself.
Need to install libsasl2-dev, libldap2-dev & libssl-dev. I was not able to see these packages in 17.10 as the main repository mirror urls are changed as the version is archived as per the below question.
https://askubuntu.com/questions/1141501/i-cant-run-sudo-apt-get-update-in-ubuntu-17-10
I have changed to 18.04 and after installing the above packages everything works great.
This worked for me:
apt-get update -y && apt-get install -y python3-dev libldap2-dev libsasl2-dev ldap-utils tox lcov valgrind

no package pango found when build the firefox

I am building the customized source code of firefox. When I am going to build the firefox, I am given following error regading the "no pango package error". How can I solve this error.
If you are using Ubuntu 18.04 or similar, try:
sudo aptitude install libpango1.0-dev
In ubuntu 16.04
sudo apt install libpango1.0-dev
from
sudo yum install 'pkgconfig(pango)'
Should install the necessary packages.

Failure from epel with yum command

Thank you for coming to try to solve my problem. I have seen a lot of solutions about a failure using the yum command but until now, these solutions didn't work with me.
First of all, here is some information about the situation :
I'm working with a RedHat Linux 7.2-11, using a proxy (because of the very secured network of my firm) so I already modified etc/sysconfig/rhn/up2date, etc/wgetrc and etc/yum.conf files with the http_proxy, proxy_user and proxy_password !
Then, I'm connected as root and I tried to download python-pip doing these command :
sudo yum install python-pip
I had the following error :
No package python-pip available
Exactly the same error when trying to install epel-release before python-pip.
Then I did the following :
yum install httpd php php-gd php-mysql
Finally, I downloaded and installed epel-release with these commands in /tmp :
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install epel-release-latest-7.noarch.rpm
Everything was ok !
Here is the problem. After that, I tried again these commands :
sudo yum install python-pip
sudo yum install -y python-pip
The first error was :
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
........some tips (1 to 5)........
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
So I followed some instructions and modified epel.repo and epel-testing.repo commenting all "mirror" lines and uncommenting all "baseurl" lines.
So, now, when I try to install python-pip again I have this error :
Loaded plugins: rhnplugin, search-disabled-repos
This system is receiving updates from RHN Classic or Red Hat Satellite.
http://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 407 - Proxy Authentication Required
Trying other mirror.
One of the configured repositories failed (Extra Packages for Enterprise Linux 7 - x86_64),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
.........some tips (1 to 5).......
failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try.
http://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 407 - Proxy Authentication Required
Please do you know how to solve this issue, or do you have any idea ?
It seems to be because of the proxy but I already configured the three files as said on top of my message.
Thank you for your help ! :)
You don't have to download epel-release manually on a CentOS-7 box. The latest RPM might be missing mirrorlist in the repo file, which is probably calling baseurl=http:// rather than mirrorlist=https://.
Here is what you can do to resolve this:
# Remove already installed epel-release
yum remove epel-release
OR
rpm -e epel-release
# Install epel-release using YUM
yum install epel-release
# Install python-pip
yum install python-pip
~]# yum install python-pip
Loaded plugins: fastestmirror
epel/x86_64/metalink | 11 kB 00:00:00
epel | 4.3 kB 00:00:00
(1/3): epel/x86_64/group_gz | 170 kB 00:00:00
(2/3): epel/x86_64/updateinfo | 769 kB 00:00:01
(3/3): epel/x86_64/primary_db | 4.6 MB 00:00:06
Loading mirror speeds from cached hostfile
* base: mirror.eboundhost.com
* epel: ftp.cse.buffalo.edu
* extras: repo.us.bigstepcloud.com
* updates: centos.mirrors.tds.net
Resolving Dependencies
--> Running transaction check
---> Package python2-pip.noarch 0:8.1.2-5.el7 will be installed
--> Processing Dependency: python-setuptools for package: python2-pip-8.1.2-5.el7.noarch
--> Running transaction check
---> Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-4.el7.noarch
--> Running transaction check
---> Package python-backports-ssl_match_hostname.noarch 0:3.4.0.2-4.el7 will be installed
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
Package Arch Version
Repository Size
Installing:
python2-pip noarch 8.1.2-5.el7 epel 1.7 M
Installing for dependencies:
python-backports x86_64 1.0-8.el7 base 5.8 k
python-backports-ssl_match_hostname noarch 3.4.0.2-4.el7 base 12 k
python-setuptools noarch 0.9.8-4.el7 base 396 k
Transaction Summary

rvm requirements install git error

I'm trying to install rvm with latest ruby on a centos 5 server, rvm is already installed with no ruby, it throws an error when trying to install ruby, something regarding git.
$ uname -a
Linux 2.6.18-308.24.1.el5PAE #1 SMP Tue Dec 4 18:28:32 EST 2012 i686 i686 i386 GNU/Linux
$ rvm install ruby-2.2-head
Checking requirements for centos.
Installing requirements for centos.
Installing required packages: git, autoconf.......
Error running 'requirements_centos_libs_install git autoconf',
showing last 15 lines of /home/ruby/.rvm/log/1442954643_ruby-2.2-head/package_install_git_autoconf.log
--> Missing Dependency: perl(Error) is needed by package git-1.8.2.1-1.el5.i386 (epel)
git-1.8.2.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl(Term::ReadKey) is needed by package git-1.8.2.1-1.el5.i386 (epel)
git-1.8.2.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl(Git) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl-Git = 1.8.2.1-1.el5 is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Term::ReadKey) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Git) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Error) is needed by package git-1.8.2.1-1.el5.i386 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
++ return 1
++ return 1
Requirements installation failed with status: 1.
$ git --version
git version 1.6.4.4
This hosts uses cpanel.
I've tried directly installing with yum, same error, tried also to remove git
# yum remove git
Failed to set locale, defaulting to C
Loaded plugins: downloadonly, fastestmirror
Setting up Remove Process
No Match for argument: git
My guess is that Cpanel has git installed, but is an outdated version, could be this?
Try the answers provided here -- https://github.com/rvm/rvm/issues/2696 -- specifically fixing whatever goes wrong when you try to do this...
yum install -y libyaml-devel autoconf gcc-c++ readline-devel zlib-devel openssl-devel

Resources