Mi sento un idiota compelte, ma ho continuato a scrivere tutto questo giorno e non ho trovato dove.Rubygems su OSX mancante
Ho riavviato più volte il tentativo di ottenere un'installazione completa di Ruby sul mio ambiente OSX, RVM, Brew, Ruby: e ogni volta che riesco a passare a Ruby, installarlo in fondo all'installazione di rubygems.
Il motivo per cui devo ricominciare è che l'RVM non si aggiornava in Jewelerybox dopo la mia prima installazione di successo (usato un pacchetto completo di RubyInstaller) quindi non potevo gestire le mie gemme - un problema causato dall'installazione iniziale di Ruby sul sistema che vive in/usr/local e non sotto la mia directory. Per risolvere questo problema ho disinstallato tutto il mio materiale Ruby e ricominciato.
Tutto ok finché il compilatore di ruby ha iniziato a eseguire il gacking sulla sezione di installazione di rubygems durante l'installazione di Ruby 2.0.0. Controllando i file di sistema OSX sotto usr/bin vedo che i rubygems non ci sono (dovrebbe essere presente di default su OSX). Qualche idea? (Si noti che XCode è aggiornato e ha strumenti a linea di comando installato)
Ultimo tentativo è stato:
$ rvm get head --autolibs=3 # get the latest RVM and build required libs
$ rvm requirements # just in case, install all other required stuff
$ rvm remove 2.0.0
$ rvm install ruby-2.0.0
. . . che spara il seguente errore:
[2013-03-19 23:21:50] /Users/matthew.evans/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
Exception `LoadError' at /Users/matthew.evans/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/rubygems.rb:1073 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /Users/matthew.evans/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/rubygems.rb:1082 - cannot load such file -- rubygems/defaults/ruby
mkdir -p /Users/matthew.evans/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0
...
install -c -m 0755 /var/folders/nq/wkj89k854tl0w97n68qdn820pzk_51/T/gem.84634 /Users/matthew.evans/.rvm/rubies/ruby-2.0.0-p0/bin/gem
rm /var/folders/nq/wkj89k854tl0w97n68qdn820pzk_51/T/gem.84634
ERROR: While executing gem ... (NoMethodError)
undefined method `fu_stream_blksize' for #<Gem::Commands::SetupCommand:0x007ffd0e054818>
Installing RubyGems
Installing gem executable
provare quanto segue: 'echo $ {LANG: -empty}' 'poi export LANG = en_US.UTF-8'. Dopo di ciò, riprova. – fmendez
@fmendez: Perché ?? – AGS
@AGS A causa di un problema simile riportato qui: https://github.com/wayneeseguegu/rvm/issues/1689 e specchiato qui: https://github.com/rubygems/rubygems/issues/516 – fmendez