|
From: Craig W. <cra...@az...> - 2011-10-25 11:59:51
|
On Tue, 2011-10-25 at 10:36 +0200, Pat Erler wrote: > ok, > > > this is a dependencies nightmare. I now did this: > > > wget > http://rubyforge.org/frs/download.php/70695/rubygems-update-1.3.7.gem > gem install rubygems-update-1.3.7.gem > > gem update --system > apt-get install libsqlite3-0 libsqlite3-dev > libmysqlclient16-dev > > > additionally to the steps already described, and rails tries to start > - - - but comes to a grinding halt with :( > > > /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/resolver.rb:280:in `resolve': Could not find gem 'jquery-rails (>= 0) ruby' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/resolver.rb:160:in `start' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/resolver.rb:128:in `resolve' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/resolver.rb:127:in `catch' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/resolver.rb:127:in `resolve' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:151:in `resolve' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:90:in `specs' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:135:in `specs_for' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:124:in `requested_specs' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/environment.rb:23:in `requested_specs' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:11:in `setup' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:110:in `setup' > from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/setup.rb:17 > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' > from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' > from /home/photocase/domains/rails.photocase.com/public_html/config/boot.rb:6 > from script/rails:5:in `require' > from script/rails:5 > > > here I'm stuck. > > > PAT > > On Tue, Oct 25, 2011 at 08:54, Pat Erler <pe...@gm...> wrote: > ok, this problem looks a bit > tough: http://stackoverflow.com/questions/4151040/error-installing-rails-on-ubuntu-10-04 > > > a ruby expert told me from the beginning to use RVM - do you > see a way to do this in a controled manner with virtualmin > pro? > > > PAT > > > > On Tue, Oct 25, 2011 at 08:46, Pat Erler <pe...@gm...> > wrote: > > > nope: > root@v016:~# gem update --system > ERROR: While executing gem ... > (RuntimeError) > gem update --system is disabled on > Debian. RubyGems can be updated using > the official Debian repositories by > aptitude or apt-get. > > > > > On Tue, Oct 25, 2011 at 07:50, Jamie Cameron > <jca...@we...> wrote: > Try running : > > gem --update system > ---- First off, I don't use Ubuntu ruby packages but use Enterprise Ruby packages instead (on Lucid 10.04 LTS) so take my comments with a grain of salt. The distributions just can't keep up with the fast moving targets of ruby/rails/gems. I wouldn't recommend running 'gem --update system' as that will get a version of rubygems that probably is too new and will cause other issues. I think you should probably get up to about version 1.4.2... (run as root or add 'sudo'): gem install rubygems -v="1.4.2" update_rubygems I think that you need to run 'update_rubygems' even if you stay at version 1.3.7 As for jquery-rails - that would typically be brought in automatically by an install of Rails 3 (ie... gem install rails -v="3.0.10") but one would think that whoever created the Gemfile should have targeted a specific version of rails near the top so it got installed immediately. You may want to check with them which version of rails their site is targeted to run or better yet, fix the Gemfile. (gem 'rails', ~> '3.0.10') Running ruby on rails sites on a shared host can be a challenge and it's possible that RVM can help but to be honest, I have never used it (see my reference above to using enterprise ruby). Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |