Buongiorno a tutti, ho installato correttamente RVM su mac osx Lion.
Se scrivo nel terminale *rvm install 1.9.3 *mi restituisce questo:
Fetching yaml-0.1.4.tar.gz to /Users/Fabrizio/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/Fabrizio/.rvm/src
Configuring yaml in /Users/Fabrizio/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/Fabrizio/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/Fabrizio/.rvm/usr
Installing Ruby from source to:
/Users/Fabrizio/.rvm/rubies/ruby-1.9.3-p0,
this may take a while depending on your cpu(s)…
ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #extracted to /Users/Fabrizio/.rvm/src/ruby-1.9.3-p0
(already extracted)
ruby-1.9.3-p0 - #configuring
ERROR: Error running ’ ./configure
–prefix=/Users/Fabrizio/.rvm/rubies/ruby-1.9.3-p0 --enable-shared
–disable-install-doc --with-libyaml
–with-opt-dir=/Users/Fabrizio/.rvm/usr ', please read
/Users/Fabrizio/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the
installation.
Se faccio *less /Users/Fabrizio/.rvm/log/ruby-1.9.3-p0/configure.log *mi
mostra questo
[2012-01-07 12:26:45] ./configure
–prefix=/Users/Fabrizio/.rvm/rubies/ruby-1.9.3-p0 --enable-shared
–disable-install-doc --with-libyaml
–with-opt-dir=/Users/Fabrizio/.rvm/usr
configure: WARNING: unrecognized options: --with-libyaml
checking build system type… x86_64-apple-darwin11.2.0
checking host system type… x86_64-apple-darwin11.2.0
checking target system type… x86_64-apple-darwin11.2.0
checking whether the C compiler works… no
configure: error: in `/Users/Fabrizio/.rvm/src/ruby-1.9.3-p0’:
configure: error: C compiler cannot create executables
Xcode ce l’hai installato? Sembra che tu non abbia i compilatori di C
sulla tua macchina.
Alle volte d errore anche se hai installato XCode. Pare sia un baco di
XCode che alle volte non installa make e/o gcc.
Io ho scaricato entrambi a parte, ad esempio, perch mi dava errore con
entrambi.