Installation de RVM [Réglé]
difficulté pour installer différentes versions de ruby
Logiciels / Autres logiciels

marcusmau Membre non connecté
-
- Voir le profil du membre marcusmau
- Inscrit le : 24/06/2008
- Groupes :
Je reviens à la charge car à chaque changement de version (je suis passé à Mageia 4) je me retrouve confronté au même problème d'installation de différentes versions de ruby à l'aide de l'outil RVM.
Sur une page web ici, il y a une procédure pour ubuntu. J'installe les librairies requises puis je procède à l'installation de rvm via la ligne de commande :
Code BASH :
[marc@erato ~]$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) Downloading https://github.com/wayneeseguin/rvm/archive/master.tar.gz Installing RVM to /home/marc/.rvm/ Adding rvm PATH line to /home/marc/.profile /home/marc/.bashrc /home/marc/.zshrc. RVM sourcing line found in /home/marc/.bash_profile. RVM sourcing line not found for Zsh, rerun this command with '--auto-dotfiles' flag to fix it. Installation of RVM in /home/marc/.rvm/ is almost complete: * To start using RVM you need to run `source /home/marc/.rvm/scripts/rvm` in all your open shell windows, in rare cases you need to reopen all shell windows. # marc, # # Thank you for using RVM! # We sincerely hope that RVM helps to make your life easier and more enjoyable!!! # # ~Wayne, Michal & team. In case of problems: http://rvm.io/help and https://twitter.com/rvm_io * WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/home/marc/.bash_profile': source ~/.profile
puis
Code BASH :
[marc@erato ~]$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc
Donc jusque là pas d'erreur !
Je tente l'installation d'une ancienne version de ruby (1.8.7) :
Code BASH :
[marc@erato ~]$ rvm install 1.8.7 Searching for binary rubies, this might take some time. No binary rubies available for: mageia/4/x86_64/ruby-1.8.7-p374. It is not possible to build movable binaries for rubies 1.8-1.9.2, but you can do it for your system only. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for mageia. Installing requirements for mageia. Updating system. Installing required packages: glibc-headers. Error running 'requirements_centos_libs_install glibc-headers', showing last 15 lines of /home/marc/.rvm/log/1392194251_ruby-1.8.7-p374/package_install_glibc-headers.log [2014-02-12 09:37:31] requirements_centos_libs_install requirements_centos_libs_install () { __rvm_try_sudo yum install -y "$@" || return $? } current path: /home/marc PATH=/usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/home/marc/bin:/home/marc/.rvm/bin:/home/marc/bin command(2): requirements_centos_libs_install glibc-headers /usr/bin/env: yum: Aucun fichier ou dossier de ce type Requirements installation failed with status: 127.
Et patatras !
je lance un :
Code BASH :
[marc@erato ~]$ rvm requirements Checking requirements for mageia. Installing requirements for mageia. Updating system. Installing required packages: glibc-headers. Error running 'requirements_centos_libs_install glibc-headers', showing last 15 lines of /home/marc/.rvm/log/1392194353/package_install_glibc-headers.log [2014-02-12 09:39:13] requirements_centos_libs_install requirements_centos_libs_install () { __rvm_try_sudo yum install -y "$@" || return $? } current path: /home/marc PATH=/usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/home/marc/bin:/home/marc/.rvm/bin:/home/marc/bin command(2): requirements_centos_libs_install glibc-headers /usr/bin/env: yum: Aucun fichier ou dossier de ce type Requirements installation failed with status: 127.
Il manquerait une librairie mais lorsque je lance MCC, la librairie
glibc-devel - Header and object files for development using standard C libraries
pour x86_64 est bien installée et j'ai même installé la version 32 bits mais rien n'y fait !
Ca commence sérieusement à m'agacer. Malgré plusieurs fils lancés sur différents forum, je n'arrive pas à obtenir de l'aide.
Édité par marcusmau Le 12/02/2014 à 10h03
<Mageia 9 64 & KDE Plasma 5.27><Asus X42F-VX141V><Proc INTEL Core i3-350M @ 2.27 GHz >< RAM - 3 Go DDR3><puce graphique intel><écran LED 16/9 @ 1366*768>
<Mageia 9 64 & KDE Plasma 5.27><Asus K751LB-TY049H><Proc INTEL Core i7-5500u @ 2.7 GHz><RAM - 6 Go DDR3><puce graphique intel et NVidia GeForce 940M><écran LED 16/9 @ 1600*900>
<Mageia 9 64 & KDE Plasma 5.27><Asus K751LB-TY049H><Proc INTEL Core i7-5500u @ 2.7 GHz><RAM - 6 Go DDR3><puce graphique intel et NVidia GeForce 940M><écran LED 16/9 @ 1600*900>

marcusmau Membre non connecté
-
- Voir le profil du membre marcusmau
- Inscrit le : 24/06/2008
- Groupes :
Face au déferlement de réactions (

Lors de l'installation d'une version de ruby ou lors de la commande rvm requirements, la librairie glibc-headers est réclamé, or le commentaire accompagnant le rpm glibc-devel est explicite : il contient les headers ! Donc j'ai cherché dans les scripts de rvm, l'endroit où cette glibc-headers est demandée pour modifier ce script. C'est le fichier ~/.rvm/scripts/functions/requirements/mageia (qui est une recopie du fichier centos) et à la ligne 113 il y a :
Code BASH :
requirements_check gcc-c++ glibc-devel glibc-headers patch readline readline-devel zlib zlib-devel openssl-devel make bzip2 autoconf automake libtool bison
j'ai supprimé la mention glibc-headers :
Code BASH :
requirements_check gcc-c++ glibc-devel patch readline readline-devel zlib zlib-devel openssl-devel make bzip2 autoconf automake libtool bison
Et là, oh miracle, tout marche !!
J'ai créé un bug sur le site de rvm https://github.com/wayneeseguin/rvm/issues/2624
Cordialement,
<Mageia 9 64 & KDE Plasma 5.27><Asus X42F-VX141V><Proc INTEL Core i3-350M @ 2.27 GHz >< RAM - 3 Go DDR3><puce graphique intel><écran LED 16/9 @ 1366*768>
<Mageia 9 64 & KDE Plasma 5.27><Asus K751LB-TY049H><Proc INTEL Core i7-5500u @ 2.7 GHz><RAM - 6 Go DDR3><puce graphique intel et NVidia GeForce 940M><écran LED 16/9 @ 1600*900>
<Mageia 9 64 & KDE Plasma 5.27><Asus K751LB-TY049H><Proc INTEL Core i7-5500u @ 2.7 GHz><RAM - 6 Go DDR3><puce graphique intel et NVidia GeForce 940M><écran LED 16/9 @ 1600*900>
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie