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

RHEL 7 and rvm (libyaml-devel not found) #2998

Closed
normsu opened this issue Aug 6, 2014 · 20 comments · Fixed by #4170
Closed

RHEL 7 and rvm (libyaml-devel not found) #2998

normsu opened this issue Aug 6, 2014 · 20 comments · Fixed by #4170
Assignees
Labels
Milestone

Comments

@normsu
Copy link

normsu commented Aug 6, 2014

I'm using RHEL:

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)

RVM seemed to install fine but I cannot install ruby.

-bash-4.2$ rvm install 2.1.2
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/7/x86_64/ruby-2.1.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
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 /u/normsu/.rvm/log/1407349933_ruby-2.1.2/package_install_libyaml-devel.log
++ [[ ! :/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/u/normsu/.rvm/bin: =~ :/usr/local/sbin: ]]
++ [[ -n :/sbin ]]
++ command_to_run=(/usr/bin/env PATH="${PATH}${missing_paths}" "${command_to_run[@]}")
++ command_to_run=(__rvm_sudo -p "%p password required for '$*': " "${command_to_run[@]}")
++ __rvm_sudo -p '%p password required for '\''yum install -y libyaml-devel'\'': ' /usr/bin/env PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/u/normsu/.rvm/bin:/sbin yum install -y libyaml-devel
++ command sudo -p '%p password required for '\''yum install -y libyaml-devel'\'': ' /usr/bin/env PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/u/normsu/.rvm/bin:/sbin yum install -y libyaml-devel
++ sudo -p '%p password required for '\''yum install -y libyaml-devel'\'': ' /usr/bin/env PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/u/normsu/.rvm/bin:/sbin yum install -y libyaml-devel
Loaded plugins: aliases, changelog, kabi, langpacks, rhnplugin, tmprepo, verify,
              : versionlock
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading support for Red Hat kernel ABI
No package libyaml-devel available.
Error: Nothing to do
++ return 1
++ return 1
Requirements installation failed with status: 1.

Per #2471 and #2371, I have EPEL repository installed and enabled:

-bash-4.2$ yum repolist all
Loaded plugins: aliases, changelog, kabi, langpacks, rhnplugin, tmprepo, verify, versionlock
*Note* Spacewalk repositories are not listed below. You must run this command as root to access Spacewalk repositories.
Loading support for Red Hat kernel ABI
repo id                                        repo name                                                                          status
epel/x86_64                                    Extra Packages for Enterprise Linux 7 - x86_64                                     enabled: 5,477
epel-debuginfo/x86_64                          Extra Packages for Enterprise Linux 7 - x86_64 - Debug                             disabled
epel-source/x86_64                             Extra Packages for Enterprise Linux 7 - x86_64 - Source                            disabled
epel-testing/x86_64                            Extra Packages for Enterprise Linux 7 - Testing - x86_64                           disabled
epel-testing-debuginfo/x86_64                  Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug                   disabled
epel-testing-source/x86_64                     Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source                  disabled
nginx/x86_64                                   nginx repo                                                                         enabled:     6
rpmforge                                       RHEL 7Server - RPMforge.net - dag                                                  disabled
rpmforge-extras                                RHEL 7Server - RPMforge.net - extras                                               disabled
rpmforge-testing                               RHEL 7Server - RPMforge.net - testing                                              disabled

libyaml is installed but from what I can see there is no libyaml-devel in EPEL 7 (http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/repoview/letter_l.group.html)

Any help or suggestions on how to get around this would be appreciated! Thanks.

@normsu normsu changed the title RHEL 7 and rvm (libyaml-devel) RHEL 7 and rvm (libyaml-devel not found) Aug 6, 2014
@agiovacchini
Copy link

Hi, I had your same problem and solved this way:
sudo yum install libyaml

Took note of the version, then looked for its devel version in rpmfind.net then in my case:

wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/7rolling/x86_64/os/Packages/libyaml-devel-0.1.4-10.el7.x86_64.rpm
sudo rpm -Uvh libyaml-devel-0.1.4-10.el7.x86_64.rpm
rvm requirements
rvm install 1.9.3-p448

I needed 1.9.3-p448 but I think it will work for any Ruby version

@jmera
Copy link

jmera commented Aug 21, 2014

Thank you @agiovacchini , your instructions worked for me.

@mpapis
Copy link
Member

mpapis commented Sep 4, 2014

can you open ticket for http://fedoraproject.org/ about hte missing libyaml-devel in epel for RHEL 7? - I would like to avoid fixing problem that does not require fixing on my side ...

@xacaxulu
Copy link

+1
@agiovacchini had the right answer for me:

wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/7rolling/x86_64/os/Packages/libyaml-devel-0.1.4-10.el7.x86_64.rpm
sudo rpm -Uvh libyaml-devel-0.1.4-10.el7.x86_64.rpm
rvm requirements

@cg2v
Copy link

cg2v commented Dec 9, 2014

FYI, RHEL7 (and 6) include libyaml-devel in the "Optional" repository. The optional repository is available to any subscriber, but you have to configure it (with rhn-channel or "subscription-manager repos"). As is redhat's usual practice, they are based on version 0.1.4 and 0.1.3 respectively, but claim to include patches for CVE-2013-6393 and CVE-2014-2525

@mpapis
Copy link
Member

mpapis commented Dec 9, 2014

now this is something I could use, can you show me instructions for checking if this repo is enabled and for enabling it? - please open a new ticket

@betesh
Copy link

betesh commented Aug 6, 2015

Alternative (better) solution that @agiovacchini's: #3191 (comment)

@leshiynyc
Copy link

this worked for me

subscription-manager repos --enable rhel-7-server-optional-rpms

@yevgeniyo
Copy link

Solution of @leshiynyc is good for me, thank you

@viniciuspires
Copy link

I'm trying this but getting 2 problems, first, the wget link is probably offline because I get this message:

# wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/7rolling/x86_64/os/Packages/libyaml-devel-0.1.4-10.el7.x86_64.rpm
--2016-11-01 11:21:35--ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/7rolling/x86_64/os/Packages/libyaml-devel-0.1.4-10.el7.x86_64.rpm
           => “libyaml-devel-0.1.4-10.el7.x86_64.rpm”
Resolvendo mirror.switch.ch... 130.59.113.36, 2001:620:0:1002::20
Conectando-se a mirror.switch.ch|130.59.113.36|:21... conectado.
Acessando como anonymous ... Acesso autorizado!
==> SYST ... feito.   ==> PWD ... feito.
==> TYPE I ... feito. ==> CWD (1) /pool/4/mirror/scientificlinux/7rolling/x86_64/os/Packages ... feito.
==> SIZE libyaml-devel-0.1.4-10.el7.x86_64.rpm ... feito.
==> PASV ... feito.   ==> RETR libyaml-devel-0.1.4-10.el7.x86_64.rpm ... 
O arquivo “libyaml-devel-0.1.4-10.el7.x86_64.rpm” não foi encontrado.

Second, when I try to download libyaml-devel from another source and another version, I get:

# rpm -Uvh libyaml-devel-0.1.3-4.el6_6.x86_64.rpm 
aviso: libyaml-devel-0.1.3-4.el6_6.x86_64.rpm: Cabeçalho V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
erro: Dependências não satisfeitas:
    libyaml = 0.1.3-4.el6_6 é requerido por libyaml-devel-0.1.3-4.el6_6.x86_64

What should I do? I can't find this libyaml on yum search, I tried to install some other Yaml lib that looked like this from the yum repository and it didn't work either :/

@leshiynyc
Copy link

@viniciuspires look at my earlier post.

@viniciuspires
Copy link

@leshiynyc Tried that too :/

# subscription-manager repos --enable rhel-7-server-optional-rpms
bash: subscription-manager: comando não encontrado

@leshiynyc
Copy link

@viniciuspires what OS are you on ? Run this for me, please : cat /etc/redhat-release

@viniciuspires
Copy link

Woops, sorry... I forgot to add that info.

It's RHEL 6

Em ter, 1 de nov de 2016 11:44, leshiynyc notifications@github.com
escreveu:

@viniciuspires https://github.com/viniciuspires what OS are you on ?
Run this for me, please : cat /etc/redhat-release


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2998 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABj7jenWFeEptwLHwhPwMp7qKKQOF-oPks5q50I4gaJpZM4CUxKK
.

@leshiynyc
Copy link

@viniciuspires : https://access.redhat.com/solutions/265523

yum-config-manager --enable rhel-6-server-optional-rpms

notice that the commands for subscribing are different between rhel6 and rhel7

@viniciuspires
Copy link

@leshiynyc Also gives a command not found error :/

@pkuczynski pkuczynski reopened this Nov 1, 2016
@pkuczynski pkuczynski self-assigned this Nov 1, 2016
@vadq91
Copy link

vadq91 commented Aug 9, 2017

Try whit this:

# curl ftp://195.220.108.108/linux/centos/7/os/x86_64/Packages/libyaml-devel-0.1.4-11.el7_0.x86_64.rpm --output libyaml-devel-0.1.4-11.el7_0.x86_64.rpm

# rpm -Uvh libyaml-devel-0.1.4-11.el7_0.x86_64.rpm

Worked for me.

@jianbojason
Copy link

@vadq91 Worked for me. Thanks

@mpapis mpapis assigned mpapis and unassigned pkuczynski Sep 17, 2017
mpapis added a commit that referenced this issue Sep 17, 2017
Ruby supports embeded libyaml since 2.0.0, no need to require superflous and buggy instructions to add it.
This can pose security risk for not updated libyaml - but it should be Ruby's responsibility to inform users about it!

Fixes #2998
Update #3194
Deprecate/fix #3191
Deprecate/fix #3207
Partially fixes #3304
mpapis added a commit that referenced this issue Sep 17, 2017
Ruby supports embedded libyaml since 2.0.0, no need to require superfluous and buggy instructions to add it.
This can pose security risk for not updated libyaml - but it should be Ruby's responsibility to inform users about it!

Fixes #2998
Update #3194
Deprecate/fix #3191
Deprecate/fix #3207
Partially fixes #3304
@mpapis
Copy link
Member

mpapis commented Sep 17, 2017

anyone interested could you try:

rvm get branch /bugfix/2998_use_rubys_bundled_libyaml

@pkuczynski
Copy link
Member

This has been merged to master, so try rvm get master

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

Successfully merging a pull request may close this issue.