On Fri, May 27, 2011 at 7:41 PM, eka <forer...@gmail.com> wrote:

> I am quite new to rails and try now to set up a deployment
> environment. However I do not have the experience to over come every
> obstacle:
>
> Centos 5.4 x86_64
> apache 2.2.3
> rvm 1.6.13
> ruby 1.9.2-p0
> passenger 3.0.7
> capistrano 2.5.21
>
> I have installed rvm as root. ruby 1.9.2-p0 installed and set as
> default.
> Installed passenger and adapted the apache config. Deployed the rails
> app
> with capistrano.
>
> Then I pont the browser to https://localhost.localdomain/reg
>
> The browser shows a passenger  error:
> Ruby on Rails application could not be started
> Could not find json-1.5.1 in any of the sources (Bundler::GemNotFound)
> Backtrace:
> Frame 0:
> /usr/local/rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.13/lib/bundler/
> spec_set.rb
> Frame 9:
> /usr/local/rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.7/lib/
> phusion_passenger/utils.rb
>
> when i go to the rails app and run
> bundle install
> it fails while building json:
> Installing json (1.5.1) with native extensions /usr/local/rvm/rubies/
> ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in
> `rescue in block in build_extensions': ERROR: Failed to build gem
> native extension. (Gem::Installer::ExtensionBuildError)
>
> but  $  gem install json
> installs 1.5.1 without a probelm
>

After you do this and you then run 'bundle install' do you still get the
error?

Also, are you using a gemset with rvm? And just to be sure have you
confirmed your rvm settings with 'rvm current'?


I do all this as root. It seems to me that there is a mix up of
> environments but do not know how to fix it. The error messge mentions /
> usr/local/rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/
> installer.rb  Why 191 and not 1.9.2 ?
>

I wondered about this in the past and dont know the answer but this as it
should be.

>
> xp:/var/www/html/registration/current# gem env
> /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/gem:4: warning: Insecure world
> writable dir /var/www/html in PATH, mode 040777
> RubyGems Environment:
>  - RUBYGEMS VERSION: 1.6.2
>  - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-linux]
>  - INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.2-p0
>  - RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby
>  - EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.2-p0/bin
>  - RUBYGEMS PLATFORMS:
>    - ruby
>    - x86_64-linux
>  - GEM PATHS:
>     - /usr/local/rvm/gems/ruby-1.9.2-p0
>     - /usr/local/rvm/gems/ruby-1.9.2-p0@global
>  - GEM CONFIGURATION:
>     - :update_sources => true
>     - :verbose => true
>     - :benchmark => false
>     - :backtrace => false
>     - :bulk_threshold => 1000
>  - REMOTE SOURCES:
>     - http://rubygems.org/
>
>
> Generally how does one dignose the cause for  Failed to build gem
> native extension, I was not able to find a log file to find out what
> went wrong.
>
> Thank you
> Ernst
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to