ROR non si avvia, manca la gemma tilt-1.3.3

Salve a tutti scusate se sono qui solo quando ne ho bisogno, ma mi
riprometto sempre che devo essere più partecipe ma ci sono una miriade
di cose da fare.

Comunque ora veniamo al punto. Sto provando ad avviare RoR ma purtroppo
al momento della creazione del server servita con il comando

rails script/server

mi restituisce quanto appresso:
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”

Could not find tilt-1.3.3 in any of the sources <---------- da notare|
Run bundle install to install missing gems. <------ già fatto un |

milione di volte
Il fatto che mi manda in tilt-1.3.3 :smiley: e che lo installa, infatti ho
notato che è proprio questa gemma che crea l’intefaccia sul browser
tilt | RubyGems.org | your community gem host

Quando do il comando:

rails new applicazione

mi restituisce:Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
Fetching gem metadata from https://rubygems.org/
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.6)
Using builder (3.0.0)
Using activemodel (3.2.6)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Installing tilt (1.3.3) <----------------------- E’ qui!!!
Using sprockets (2.1.3)
Using actionpack (3.2.6)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Installing mail (2.4.4)
Using actionmailer (3.2.6)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.6)
Using activeresource (3.2.6)
Using bundler (1.1.4)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.3)
Using rdoc (3.12)
Using thor (0.15.3)
Using railties (3.2.6)
Using coffee-rails (3.2.2)
Installing jquery-rails (2.0.2)
Using rails (3.2.6)
Using sass (3.1.19)
Installing sass-rails (3.2.5)
Using sqlite3 (1.3.6)
Using uglifier (1.2.5)
Your bundle is complete! Use bundle show [gemname] to see where a
bundled gem is installed.ù

Potete aiutarmi? Grazie infinite.

Ciao Angelo,
Prova a fare

gem update --system

oppure:

gem install rubygems-update
update_rubygems

e poi esegui:

gem pristine --all

gem update

Se non dovesse funzionare, posta l’errore indicando sistema operativo e
versione di ruby che usi.

Saluti,
Duilio R.

Niente da fare, nel frattempo ho fatto diversi tentativi ma niente, ho
provato anche a disinstallare ruby completamente, anche i file di
configurazione ma continua ancora a esistere, va bhè comunque utilizzo:

linux mint a 64bit

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

–> gem update --system <–

risposta:
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
ERROR: gem update --system is disabled on Debian, because it will
overwrite the content of the rubygems Debian package, and might break
your Debian system in subtle ways. The Debian-supported way to update
rubygems is through apt-get, using Debian official repositories.
If you really know what you are doing, you can still update rubygems by
setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please
remember that this is completely unsupported by Debian.

–> gem install rubygems-update <–

gem install rubygems-update
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
Successfully installed rubygems-update-1.8.24
1 gem installed
Installing ri documentation for rubygems-update-1.8.24…
Installing RDoc documentation for rubygems-update-1.8.24…

E qui sembra essere andata a buon fine una installazione

–> update_rubygems <–

Invalid gemspec in
[/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid
date format in specification: “2012-03-19 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date
format in specification: “2012-03-21 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date
format in specification: “2012-03-14 00:00:00.000000000Z”
Invalid gemspec in
[/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid
date format in specification: “2012-04-03 00:00:00.000000000Z”
RubyGems 1.8.24 installed

== 1.8.24 / 2012-04-27

  • 1 bug fix:

    • Install the .pem files properly. Fixes #320
    • Remove OpenSSL dependency from the http code path

RubyGems installed the following executables:
/usr/bin/gem1.8

Anche qui sembra di si!

–> gem pristine --all <–

ERROR: While executing gem … (Gem::Exception)
Failed to find gems >= 0

Qui invece no… andiamo comunque avanti, chissà con l’update si
riprende un pò! altrimenti gli regalo na videocamera… :smiley:

–> gem update <–

Updating installed gems
Nothing to update

Niente da fare, no schifo, oggi non vuole saperne. Anche se penso che la
colpa sia da dare al fatto che Debian voglia le sue gemme non
installando quelle ufficiali.


adesso se provo a dare il comando rails script/server mi da il seguente
errore

/usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:256:into_spec’
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1231:in `gem’
from /usr/local/bin/rails:18

Ciao Angelo,

Puoi provare a fare varie cose.

Reinstallare il package rubygems:
sudo apt-get purge rubygems
sudo apt-get install rubygems

Installare rvm (così puoi installare anche varie versioni di ruby :wink: ).

https://rvm.io/

se hai difficoltà, chiedi pure aiuto qui.

Duilio R.

PS: io ti consiglio di usare la seconda opzione e di installare ruby
1.9.3

Innanzi tutto volevo ringraziarvi per il vostro supporto ma purtroppo ho
tentando di disinstallare in modo forzato ruby facendo strage con rm di
tutto ciò chi mi veniva a tiro digitando locate ruby ho eliminato
involontariamente file che non dovevo eliminare. Questa situazione mi ha
portato a mandare in tilt, mai parola fu più appropriata, il mio sistema
e così sono stato costretto a reinstallare il S.O., infatti adesso vi
scrivo da un brillante (almeno per il momento) ubuntu 12.04 LTS a 64bit
dove ruby e rails funzionano egregiamente. Grazie ancora per il vostro
aiuto. Alla prossima (spero per aiutare più che per essere aiutato :D)

Ciao,
un paio di consigli utili in generale.
Non usare il Ruby di sistema, usa RVM, Rbenv o semplicemente installalo
da sorgente.
Usa Ruby 1.9, con 1.8 inizi a rischiare problemi di compatibilit con le
gemme che sono molto difficili poi da diagnosticare.
Ovviamente entrambi i consigli valgono se non sei obbligato!
Buona caccia!
Luca

Inviato da iPhone

Il giorno 23/giu/2012, alle ore 21:11, Angelo L. [email protected]
ha scritto:

Guarda, se la cosa ti consola, ogni tanto capita anche ai pi esperti di
disastrare una installazione di Ruby :slight_smile:

Inviato da iPhone

Il giorno 28/giu/2012, alle ore 20:39, Angelo L. [email protected]
ha scritto: