Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running 'requirements_centos_libs_install libyaml-devel', #2471

Closed
pradhans0906 opened this issue Dec 28, 2013 · 17 comments
Closed

Error running 'requirements_centos_libs_install libyaml-devel', #2471

pradhans0906 opened this issue Dec 28, 2013 · 17 comments
Assignees
Milestone

Comments

@pradhans0906
Copy link

Hello ,Am trying to install ruby on centos 6.4 but am getting below error .

rvm requirements
Checking requirements for redhat.
Installing requirements for redhat.
Updating system.
Installing required packages: libyaml-devel.
Error running 'requirements_centos_libs_install libyaml-devel',
showing last 15 lines of /usr/local/rvm/log/1388234096/package_install_libyaml-devel.log
[2013-12-28 12:34:56] requirements_centos_libs_install
requirements_centos_libs_install ()
{
__rvm_try_sudo yum install -y "$@" || return $?
}
current path: /root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/share/centrifydc/bin:/usr/share/centrifydc/sbin:/root/bin:/usr/local/rvm/bin
command(2): requirements_centos_libs_install libyaml-devel
Loaded plugins: product-id, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
Repository atomic is listed more than once in the configuration
Repository epel is listed more than once in the configuration
Setting up Install Process
No package libyaml-devel available.
Error: Nothing to do
Requirements installation failed with status: 1.

I have tried multiple solution provided on the internet but nothing is changing the state. could you please have a look on this and advise

@mpapis
Copy link
Member

mpapis commented Dec 28, 2013

can you check that epel repo is properly configured in your system and that you can install libyaml-devel before continuing?

sudo yum install -y libyaml-devel

@pradhans0906
Copy link
Author

Thank you for your time ..

I think epel repo is already installed and configured.

ls -alh /etc/yum.repos.d/ | grep epel
-rw-r--r-- 1 root root 957 Nov 5 2012 epel.repo
-rw-r--r-- 1 root root 1.1K Nov 5 2012 epel-testing.repo

Tried - yum install -y libyaml-devel ...same error

No package libyaml-devel available.
Error: Nothing to do

and also i followed your another step also but it throwing 404..

rvm get branch rys/features/centos-epel-repo
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/features/centos-epel-repo.tar.gz
curl: (22) The requested URL returned error: 404 Not Found

Could not download 'https://github.com/wayneeseguin/rvm/archive/features/centos-epel-repo.tar.gz'.
curl returned status '22'.

Downloading https://bitbucket.org/mpapis/rvm/get/features/centos-epel-repo.tar.gz
curl: (22) The requested URL returned error: 404 NOT FOUND

Could not download 'https://bitbucket.org/mpapis/rvm/get/features/centos-epel-repo.tar.gz'.
curl returned status '22'.

Please advise

@mpapis
Copy link
Member

mpapis commented Dec 29, 2013

can you show me content of those two files:

head -n 100 /etc/yum.repos.d/{epel.repo,epel-testing.repo}

@rys ping - can you confirm the repos look good

@pradhans0906
Copy link
Author

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-testing]
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/testing/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-testing-debuginfo]
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/testing/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-testing-source]
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/testing/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

@ghost ghost assigned rys Dec 29, 2013
@rys
Copy link
Contributor

rys commented Dec 29, 2013

Hi @pradhans0906, can you share the output of the following commands:

yum repolist all
ls -l /etc/yum.repos.d

I think there's a misconfiguration in your yum repo configuration, which means yum can't find the package.

@pradhans0906
Copy link
Author

hello ,

ls -l /etc/yum.repos.d
total 28
-rw-r--r-- 1 root root 1333 Nov 8 2011 atomic.repo
-rw-r--r-- 1 root root 957 Nov 5 2012 epel.repo
-rw-r--r-- 1 root root 1056 Nov 5 2012 epel-testing.repo
-rw-r--r-- 1 root root 113 Oct 14 2011 nginx.repo
-rw-r--r-- 1 root root 1694 Dec 28 10:36 remi.repo
-rw-r--r--. 1 root root 3248 Dec 27 18:09 RHEL-Internal.repo
-rw-r--r--. 1 root root 529 Jan 29 2013 rhel-source.repo.unused

Loaded plugins: product-id, security, subscription-manager
Repository atomic is listed more than once in the configuration
Repository epel is listed more than once in the configuration
base | 3.2 kB 00:00
fastrack | 2.7 kB 00:00
lldpd | 2.6 kB 00:00
nginx | 2.9 kB 00:00

optional | 2.7 kB 00:00
optional-fastrack | 2.6 kB 00:00
Could not retrieve mirrorlist http://rpms.famillecollet.com/enterprise/6/php55/mirror error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'rpms.famillecollet.com'"
remi-php55 | 2.9 kB 00:00
rhn-tools | 2.6 kB 00:00
supplementary | 2.6 kB 00:00
updates | 2.7 kB 00:00
v2vwin | 2.6 kB 00:00
repo id repo name status
atomic atomic disabled
atomic-testing CentOS / Red Hat Enterprise Linux 6Server - atomicrocketturtle.com - (Testing) disabled
base RHEL-6.4 - Base enabled: 3,720
elrepo elrepo disabled
epel epel disabled
epel-debuginfo Extra Packages for Enterprise Linux 6 - x86_64 - Debug disabled
epel-source Extra Packages for Enterprise Linux 6 - x86_64 - Source disabled
epel-testing Extra Packages for Enterprise Linux 6 - Testing - x86_64 disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug disabled
epel-testing-source Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source disabled
fastrack RHEL-6.4 - fastrack enabled: 190
ius ius disabled
ladvd ladvd disabled
lldpd lldpd enabled: 4
nginx nginx repo enabled: 47
nokia nokia enabled: 36
openvz openvz disabled
optional RHEL-6.4 - optional enabled: 2,882
optional-fastrack RHEL-6.4 - optional-fastrack enabled: 96
puppet puppet disabled
remi Les RPM de remi pour Enterprise Linux 6 - x86_64 disabled
remi-debuginfo Les RPM de remi pour Enterprise Linux 6 - x86_64 - debuginfo disabled
remi-php55 Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - x86_64 enabled: 237
remi-php55-debuginfo Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - x86_64 - debuginfo disabled
remi-test Les RPM de remi en test pour Enterprise Linux 6 - x86_64 disabled
remi-test-debuginfo Les RPM de remi en test pour Enterprise Linux 6 - x86_64 - debuginfo disabled
rf rf disabled
rfx rfx disabled
rhn-tools RHEL-6.4 - rhn-tools enabled: 22
supplementary RHEL-6.4 - supplementary enabled: 44
updates RHEL-6.4 - Updates enabled: 3,726
v2vwin RHEL-6.4 - v2vwin enabled: 1
varnish varnish disabled
repolist: 11,005

@rys
Copy link
Contributor

rys commented Dec 30, 2013

Hi @pradhans0906. Despite your epel.repo file having enabled=1 set, it looks like yum is still disabling the repository. Can you try the following command?

sudo yum-config-manager --enable epel

And then retry

rvm requirements

To see if that fixes your problem?

@pradhans0906
Copy link
Author

Thank you rys ..it helped to resolve the issue , now i have installed rvm properly .

@mpapis mpapis reopened this Dec 30, 2013
@mpapis
Copy link
Member

mpapis commented Dec 30, 2013

@rys I assume this is safe operation and we could include it in rvm automatically after adding the epel?

@rys
Copy link
Contributor

rys commented Dec 30, 2013

Yep, I'll write that patch.

@mpapis
Copy link
Member

mpapis commented Dec 30, 2013

awesome

@rys
Copy link
Contributor

rys commented Jan 3, 2014

Added via 0431326

@HSDen
Copy link

HSDen commented Jul 11, 2016

Hi,

I am facing the same issue on RHEL 7, below are the logs, can some help be provided please,

Installing required packages: libyaml-devel, libffi-devel.....
Error running 'requirements_centos_libs_install libyaml-devel libffi-devel',
showing last 15 lines of /usr/local/rvm/log/1468250720/package_install_libyaml-devel_libffi-devel.log
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.

     3. You have duplicate versions of libyaml installed already.
        You can use "yum check" to get yum show these errors.

   ...you can also use --setopt=protected_multilib=false to remove
   this checking, however this is almost never the correct thing to
   do as something else is very likely to go wrong (often causing
   much more problems).

   Protected multilib versions: libyaml-0.1.3-4.el6_6.i686 != libyaml-0.1.4-11.el7_0.x86_64
  • return 1
  • return 1
    Requirements installation failed with status: 1.

@3ynm
Copy link

3ynm commented Aug 13, 2016

+1 With RHEL 7

@suthanbala
Copy link

+1 With RHEL 7

Anyone found a solution?

@mpapis
Copy link
Member

mpapis commented Apr 16, 2017

@HSDen @Hacktivista @suthanbala this is old issue, please open a new ticket with details (would love to that by extracting your comments, but GH does not have such feature).

@pkuczynski
Copy link
Member

For whatever reason it seems that @HSDen have RHEL6.6 and RHEL7 package installed at the same time. We can work on this, but as @mpapis mentioned, please create a new ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants