2013-05-26 18 views
5

Mam problemy z zainstalowaniem RVM ROR na moim komputerze Ubuntu 12.04RVM Ruby on Rails instalacja

Oto wyjścia Dostaję:

Output # 1:

Searching for binary rubies, this might take some time. 
No binary rubies available for: ubuntu/12.04/i386/ruby-1.8.7-p371.Continuing with compilation. 
Please read 'rvm mount' to get more information on binary rubies. 
Installing requirements for ubuntu, might require sudo password. 

i na końcu linii aktualizacji uzyskać to:

Wyjście # 2:

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 
+2

Używasz starych i uszkodzonych (przez Ubuntu). spróbuj [to] (http://stackoverflow.com/a/9056395/1297435) –

+0

@anonymousxxx Co masz na myśli? Co powinienem zrobić? – fujisan

+0

Czy widziałeś link do mojego komentarza? –

Odpowiedz

17

Spróbuj uruchomić sudo apt-get update osobno w wierszu poleceń. Twoje Ubuntu może być stare, a jego repozytoria mogą być nieaktualne. Tak więc sama apt-get update może nie działa w twoim komputerze.

krok nad tym problem, uruchom następujące polecenia:

# Disable RVM from trying to install necessary software via apt-get 
rvm autolibs disable 

# Then try installing Ruby: 
rvm install 1.8.7 

Jeśli nadal napotykają błędy, czy można bezpośrednio zrobić apt-get install bez robienia apt-get update (co nie):

# Try to see if you can manually install the necessary software 
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config 

Jeśli to też nie działa, wklej swoje dane wyjściowe apt-get update.

+1

To jest poprawna odpowiedź. – mainframer