On Mon, Apr 26, 2010 at 9:09 PM, Diego Caliri <[email protected]> wrote:
> Buenas, tengo un problema y no se por donde arrancar a buscar la solución.
>
> Resulta que se me ocurrió pasar una aplicación que tenía en produccción de
> ERB a HAML. Localmente fue un éxito pasarla pero en producción me explotó :P
>
> Ruby on Rails application could not be started
>
> The application has exited during startup (i.e. during the evaluation of
> config/environment.rb). The error message can be found below. To solve this
> problem, please follow any instructions in the error message. Error
> message:Missing these required gems: haml You're running: ruby 1.8.6.111 at
> /usr/bin/ruby1.8 rubygems 1.3.5 at /home/dcaliri/.gem/ruby/1.8,
> /usr/lib/ruby/gems/1.8 Run `rake gems:install` to install the missing gems.
> ese es el error que me dice el passenger cuando no puede iniciar ^^
>
> ahora:
>
> which ruby
> /usr/local/bin/ruby
> which gem
> /usr/local/bin/gem
> gem env
> RubyGems Environment:
>   - RUBYGEMS VERSION: 1.3.6
>   - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
>   - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
>   - RUBY EXECUTABLE: /usr/local/bin/ruby
>   - EXECUTABLE DIRECTORY: /usr/local/bin
>   - RUBYGEMS PLATFORMS:
>     - ruby
>     - x86_64-linux
>   - GEM PATHS:
>      - /usr/local/lib/ruby/gems/1.8
>      - /home/dcaliri/.gem/ruby/1.8
>   - GEM CONFIGURATION:
>      - :update_sources => true
>      - :verbose => true
>      - :benchmark => false
>      - :backtrace => false
>      - :bulk_threshold => 1000
>      - :sources => ["http://gems.rubyforge.org/";, "http://gems.github.com";,
> "http://gems.github.com";, "http://gemcutter.org/";]
>   - REMOTE SOURCES:
>      - http://gems.rubyforge.org/
>      - http://gems.github.com
>      - http://gems.github.com
>      - http://gemcutter.org/
>
>
> Si hago un rake:gems install no instala nada porque la gema está instalada
> ya
>
> gem list
> *** LOCAL GEMS ***
>
> authlogic (2.1.2)
> fastercsv (1.5.0)
> fastthread (1.0.7)
> gemcutter (0.5.0)
> haml (2.2.23, 2.2.15)
> json_pure (1.4.1)
> kete-tiny_mce (0.1.0)
> paperclip (2.3.1.1)
> rack (1.1.0)
> rake (0.8.7)
> ruby-mysql (2.9.2)
> rubygems-update (1.3.6)
> rvm (0.1.27)
> will_paginate (2.3.12)
>
>
>
> en fin.... por donde empezarían a buscarle la vuelta?

Solo veo una diferencia en tus logs. El error dice ruby 1.8.6 y
rubygems 1.3.5, pero "gem env" dice 1.3.6 y ruby 1.8.7
Revisaste la configuracion del modulo de apache? Es posible que hayas
tenido passenger compilado con una version de ruby y luego
actualizaste ruby / rubygems pero no recompilaste passenger? O, si
recompilaste passenger, puede ser que no hayas cambiado la
configuracion?

Otro lugar donde buscar, puede ser si tenes especificado, en
environment.rb, una version distinta del gem de haml de las que tenes
instaladas. Por ejemplo, gem.config "haml", :version => "2.2.20"

Just my 2 cents.

Saludos!


-- 
Leonardo Mateo.
There's no place like ~
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a