![](/img/trans.png)
[英]get an error message “-bash: __rvm_clean_path: command not found”
[英]I have run command rvm intall and get error
我想安裝rvm,但出現此錯誤。 如何清除此錯誤?
root@jaskaran:/# ruby -v
The program 'ruby' can be found in the following packages:
* ruby1.8
* ruby1.9.1
Try: apt-get install <selected package>
//--------------------------------------------------------------
here@jaskaran:/$ rvm install 2.1.0
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.10/i386/ruby-2.1.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system................
Error running 'requirements_debian_update_system ruby-2.1.0',
showing last 15 lines of /home/zapbuild/.rvm/log/1396242152_ruby-2.1.0/update_system.log
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'There has been error while updating '\''apt-get'\'', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
\n'
There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
++ return 100
Requirements installation failed with status: 100.
謝謝
要安裝rvm,請運行此命令。
$ \curl -sSL https://get.rvm.io | bash
或者,如果您只想使用可用的紅寶石列表更新rvm,請使用rvm get stable 。 現在使用rvm install ruby-2.1.0
或rvm install 2.1.0
rvm install ruby-2.1.0
。 這應該解決問題
我今天在ubuntu 14.04上遇到了同樣的問題,並且在source.list和source.list.d / *中刪除了損壞的源代碼,對我來說一切正常。
之后,您可以運行
sudo apt-get update
rvm requirements
希望對您有所幫助。
從軟件設置中刪除PPA源,並在終端中運行以下命令:
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.3
rvm use 2.1.3 --default
ruby -v
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
gem install rails
rails -v
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.