2013-07-29 25 views
5

Moim ostatecznym celem jest zainstalowanie bieżącej wersji Ruby on Rails. Używam systemu OS X Mountain Lion. Oto mój proces tak daleko:Problemy z instalacją Rubiego 2.0.0-p247 przez RVM (OSX Mountain Lion)

zainstalowana RVM

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

sprawdzone przez znane (i zakładam zatwierdzony) instaluje

$ rvm list known 

widzę, że obecny stabilny build jest dostępny

[ruby-]2.0.0[-p247] 

Klucz do polecenia instalacji

$ rvm install 2.0.0-p247 

Uwaga: Próbowałem też zainstalować te polecenia

$ rvm install ruby-2.0.0-p247 
$ rvm install ruby=2.0.0-p247 

ja nigdzie szybko kupujemy. Wyniki:

$ rvm install 2.0.0-p247 
Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p247. 
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
Installing requirements for osx, might require sudo password. 
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date. 
Requirements installation successful. 
Installing Ruby from source to: /Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)... 
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection... 
ruby-2.0.0-p247 - #extracted to /Users/xxxxx/.rvm/src/ruby-2.0.0-p247 (already extracted) 
ruby-2.0.0-p247 - #configuring........ 
Error running './configure --prefix=/Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --without-tcl --without-tk --enable-shared', 
please read /Users/xxxxx/.rvm/log/ruby-2.0.0-p247/1375141206_configure.log 
There has been an error while running configure. Halting the installation. 

Uruchomiłem również to polecenie w trybie debugowania. Aby uniknąć bałaganu, możesz uzyskać do niego dostęp pod numerem here.

Również tutaj jest log:

./configure 
current path: /Users/xxxxx/.rvm/src/ruby-2.0.0-p247 
command(7): ./configure --prefix=/Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --without-tcl --without-tk --enable-shared 
configure: WARNING: unrecognized options: --without-tcl, --without-tk 
checking build system type... x86_64-apple-darwin12.2.1 
checking host system type... x86_64-apple-darwin12.2.1 
checking target system type... x86_64-apple-darwin12.2.1 
checking whether the C compiler works... no 
configure: error: in `/Users/xxxxx/.rvm/src/ruby-2.0.0-p247': 
configure: error: C compiler cannot create executables 
See `config.log' for more details 

Jest to moja pierwsza instalacja urządzeń RVM. Lista $ rvm nie zwraca żadnych klejnotów.

Proszę zapytać, czy dodatkowe informacje mogą być pomocne.

Edytuj - HERE to log in, który może pomóc każdemu.

+0

Próbując ponownie uruchomić cały mój proces od zera. Ponowna instalacja Xcode & Commandline Tools teraz - wtedy spróbuję jeszcze raz. Opublikuję wyniki, gdy będą dostępne. – MrCarder

+1

proszę dodać '/ Users/xxxxx/.rvm/src/ruby-2.0.0-p247/config.log' – mpapis

+0

Wymyśliłem problem (rodzaj). Czy nadal będzie pomocny dla innych, jeśli opublikuję dziennik? – MrCarder

Odpowiedz

4

Coś musiało być nie tak z instalacją mojego Xcode lub mojego Command Line Tools. Ponowna instalacja obu sprawiła, że ​​wszystko przebiegło pięknie.

+0

W jaki sposób odinstalowałeś narzędzia linii poleceń? – Clone

+3

Daj za brak technicznej wprawy w odpowiedzi i zarekomenduj taki nieefektywny proces. – JGallardo

1

Upewnij się, że zainstalowałeś narzędzie wiersza poleceń w XCode, ponieważ nie robi to automatycznie (tak, zgadzam się, domyślnie instaluje się narzędzie wiersza poleceń), ale tak nie jest.

Install XCode -> Preferencje -> Pobieranie -> "Command Line Tool"

EDIT * brakowało cała "uczynił wszystko pięknie uruchomić część" i wpisane to wszystkie nieuregulowane

Cheers, zadowolony, wszystko działało na zewnątrz!

3

Dla tych, którzy przybyli tu z google, kiedy zastosowano ten sam błąd jak zapytanie:

Mam ten sam problem, ale nie chciał przejść przez absurdalnie długi proces ponownej instalacji Xcode jak zaakceptowanej odpowiedzi zasugerował.Wszystko co zrobiłem było uruchomić
rvm get stable A następnie uruchomić
rvm install ruby-2.0.0-p247 ponownie

mój oryginalny problem

problem

następnie po Pobiegłem
rvm get stable

Solution