通过NPM进行Ruby安装失败,出现依赖性错误

时间:2013-06-01 10:35:20

标签: ruby linux ubuntu install rvm

我正在尝试使用rvm在我的机器上安装ruby。我已经安装了rvm。当我使用     $ rvm要求

它会出现以下错误。

tahir@tahir:~$ rvm requirements
Installing requirements for ubuntu, might require sudo password.
[sudo] password for suhail: 
Ign http://pk.archive.ubuntu.com quantal InRelease
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://extras.ubuntu.com quantal InRelease
Hit http://extras.ubuntu.com quantal Release.gpg
Ign http://pk.archive.ubuntu.com quantal-updates InRelease
Hit http://security.ubuntu.com quantal-security Release.gpg
Hit http://extras.ubuntu.com quantal Release
Hit http://security.ubuntu.com quantal-security Release
Ign http://pk.archive.ubuntu.com quantal-backports InRelease
Hit http://extras.ubuntu.com quantal/main Sources
Hit http://security.ubuntu.com quantal-security/main Sources
Hit http://extras.ubuntu.com quantal/main i386 Packages
Hit http://pk.archive.ubuntu.com quantal Release.gpg
Hit http://security.ubuntu.com quantal-security/restricted Sources
Hit http://security.ubuntu.com quantal-security/universe Sources
Hit http://pk.archive.ubuntu.com quantal-updates Release.gpg
Hit http://security.ubuntu.com quantal-security/multiverse Sources
Hit http://pk.archive.ubuntu.com quantal-backports Release.gpg
Hit http://security.ubuntu.com quantal-security/main i386 Packages
Hit http://security.ubuntu.com quantal-security/restricted i386 Packages
Hit http://pk.archive.ubuntu.com quantal Release
Hit http://security.ubuntu.com quantal-security/universe i386 Packages
Ign http://extras.ubuntu.com quantal/main Translation-en_US
Hit http://pk.archive.ubuntu.com quantal-updates Release
Hit http://security.ubuntu.com quantal-security/multiverse i386 Packages
Ign http://extras.ubuntu.com quantal/main Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports Release
Hit http://security.ubuntu.com quantal-security/main Translation-en
Hit http://pk.archive.ubuntu.com quantal/main Sources
Hit http://security.ubuntu.com quantal-security/multiverse Translation-en
Hit http://pk.archive.ubuntu.com quantal/restricted Sources
Hit http://pk.archive.ubuntu.com quantal/universe Sources
Hit http://security.ubuntu.com quantal-security/restricted Translation-en
Hit http://pk.archive.ubuntu.com quantal/multiverse Sources
Hit http://pk.archive.ubuntu.com quantal/main i386 Packages
Hit http://security.ubuntu.com quantal-security/universe Translation-en
Hit http://pk.archive.ubuntu.com quantal/restricted i386 Packages
Hit http://pk.archive.ubuntu.com quantal/universe i386 Packages
Hit http://pk.archive.ubuntu.com quantal/multiverse i386 Packages
Hit http://pk.archive.ubuntu.com quantal/main Translation-en
Hit http://pk.archive.ubuntu.com quantal/multiverse Translation-en
Ign http://security.ubuntu.com quantal-security/main Translation-en_US
Hit http://pk.archive.ubuntu.com quantal/restricted Translation-en
Ign http://security.ubuntu.com quantal-security/multiverse Translation-en_US
Ign http://security.ubuntu.com quantal-security/restricted Translation-en_US
Ign http://security.ubuntu.com quantal-security/universe Translation-en_US
Hit http://pk.archive.ubuntu.com quantal/universe Translation-en
Hit http://pk.archive.ubuntu.com quantal-updates/main Sources
Hit http://pk.archive.ubuntu.com quantal-updates/restricted Sources
Hit http://pk.archive.ubuntu.com quantal-updates/universe Sources
Hit http://pk.archive.ubuntu.com quantal-updates/multiverse Sources
Hit http://pk.archive.ubuntu.com quantal-updates/main i386 Packages
Hit http://pk.archive.ubuntu.com quantal-updates/restricted i386 Packages
Hit http://pk.archive.ubuntu.com quantal-updates/universe i386 Packages
Hit http://pk.archive.ubuntu.com quantal-updates/multiverse i386 Packages
Hit http://pk.archive.ubuntu.com quantal-updates/main Translation-en
Hit http://pk.archive.ubuntu.com quantal-updates/multiverse Translation-en
Hit http://pk.archive.ubuntu.com quantal-updates/restricted Translation-en
Hit http://pk.archive.ubuntu.com quantal-updates/universe Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports/main Sources
Hit http://pk.archive.ubuntu.com quantal-backports/restricted Sources
Hit http://pk.archive.ubuntu.com quantal-backports/universe Sources
Hit http://pk.archive.ubuntu.com quantal-backports/multiverse Sources
Hit http://pk.archive.ubuntu.com quantal-backports/main i386 Packages
Hit http://pk.archive.ubuntu.com quantal-backports/restricted i386 Packages
Hit http://pk.archive.ubuntu.com quantal-backports/universe i386 Packages
Hit http://pk.archive.ubuntu.com quantal-backports/multiverse i386 Packages
Hit http://pk.archive.ubuntu.com quantal-backports/main Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports/multiverse Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports/restricted Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports/universe Translation-en
Ign http://pk.archive.ubuntu.com quantal/main Translation-en_US
Ign http://pk.archive.ubuntu.com quantal/multiverse Translation-en_US
Ign http://pk.archive.ubuntu.com quantal/restricted Translation-en_US
Ign http://pk.archive.ubuntu.com quantal/universe Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-updates/main Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-updates/multiverse Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-updates/restricted Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-updates/universe Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-backports/main Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-backports/multiverse Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-backports/restricted Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-backports/universe Translation-en_US
Reading package lists...
Installing required packages: gawk, g++, libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, libxml2-dev, libxslt1-dev, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, libffi-dev..................
Error running 'requirements_debian_libs_install gawk g++ libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libgdbm-dev libncurses5-dev automake libtool bison libffi-dev',
please read /home/suhail/.rvm/log/1370081458_package_install_gawk_g++_libreadline6-dev_zlib1g-dev_libssl-dev_libyaml-dev_libsqlite3-dev_sqlite3_libxml2-dev_libxslt1-dev_autoconf_libgdbm-dev_libncurses5-dev_automake_libtool_bison_libffi-dev.log

我试图用sudo apt-get install删除requirements_debian_libs_install但它仍然失败

我也尝试过使用     $ sudo apt-get -f install 但它仍然中断(说依赖关系未得到满足)并且没有安装。

应该怎样做才能解决错误?

1 个答案:

答案 0 :(得分:1)

我猜你已经通过apt-get

安装了rvm

如果是这样,请将其删除,然后通过https://rvm.io/rvm/install指南重新安装。此命令将安装rvm with ruby​​(stable)

\curl -L https://get.rvm.io | bash -s stable --ruby

如果需要,您可以指定ruby的版本,或者只安装您想要的任何版本。 rvm使用

rvm use 1.9.3

另外,我建议按用户安装,而不是全局安装。除非您有任何特殊需要为每个用户安装它。

相关问题