I'm deploying to Ubuntu slice on slicehost, using Rails 2.1.0 (from gem)
If I try mongrel_rails start or script/server I get this error:
Rails requires RubyGems >= 0.9.4. Please install RubyGems
When I type gem -v I have version 1.2.0 installed. Any quick tips on what to look at to fix?
Have you tried reinstalling RubyGems? I had a pretty similar error message until I reuninstalled and for some reason, it installed into a different directory and then the problem went away.
Just finally found this answer... I was missing a gem, and thrown off by bad error message from Rails...
Related
Homebrew
My currently rails version is 4.1.6. I want to upgrade to 4.2.0beta2.But i had and error when i types this command
gem install rails 4.2.0beta2
i got this error.
ERROR: Could not find a valid gem '4.2.0beta2' (>= 0) in any repository
Anyones know how to fix it ? thanks!
You're missing a dot between the 0 and beta2.
gem install rails 4.2.0.beta2
First: You should use ruby RVM.
https://rvm.io/
Second: Take a look on this post:
Installing Rails 4.2.0.beta1 - Unresolved dependency found during sorting
I am trying to do a bundle install which includes ruby-debug gem. However the installation fails with the error
linecache-0.43 has an invalid value for #cert_chain
I ma using rails 2.3.8, ruby 1.8.7 and RubyGems 1.7.1
Any help would be greatly appreciated.
Thanks!
solved this by downgrading my RubyGems from 1.7.1 to 1.6.2. Found it here
Rails 3 install error: "invalid value for #cert_chain"
I installed rubygems-1.7.2 but then out of some confusion with not being able to install rails when I ran this command:
gem install rails
and I got this error:
ERROR: Error installing rails:
bundler requires RubyGems version >= 1.3.6
That is a bit strange since the rubygems I have on my system is a much later version. Do I maybe need to configure it somehow so that my shell recognizes it? What is a step I might be missing to have this resolved?
I have
/usr/local/rubygems-1.7.2
was it supposed to get installed in a different directory or something?
Installing RVM made it unnecessary to install RubyGems separately...I think :)
I am using os x 10.6
1.8.6 via rvm
rails 2.3.6
I can run rake or script/server I get an error Virtual timer expired
I have seen someone else had this issue and seems, the mysql gem needs to be downgraded to 2.7
i have tried to install mysql -v=2.7
i get a different error
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
can anyone explain the proper way to get this done
thanks
There are bugs in older versions of ruby and the mysql gem that interact to cause this problem. It has been fixed in 1.8.7, but the fix was not backported to 1.8.6 because it is no longer supported. The following patch can be applied while installing using rvm (see: http://rvm.io/rubies/patching).
https://gist.github.com/mdotterer/8807766
When I try to run even simple rails commands such as:
rails -h
I get a popup error after a few seconds that says:
ruby.exe - Unable To Locate Component
This application has failed to start
because msvcrt-ruby18.dll was not
found. Re-installing the application
may fix the problem.
I am running:
Windows XP (yes I know I should attempt ruby on a Windows machine).
Ruby 1.9.1p378 [i386-mingw32].
Have updated all my gems to latest versions (as of 14-July-2010).
Is there a way I can test what is making this error? Does anyone know what it could mean?
I have found that in my ruby19/bin folder there is msvcrt-ruby191.dll but there is no msvcrt-ruby18.dll anywhere. Why would it be looking for this anyway if I'm using ruby 1.9?
The current release version 1.1.5 of Mongrel is incompatible with Ruby 1.9 and throws this error when it is run. It's easy to solve - just make sure Rubygems is up-to-date:
gem update --system
Then install the new pre-release version of Mongrel:
gem install mongrel --pre
Alternatively, if this isn't caused by Mongrel, you can try installing the DevKit, then try this:
gem install *gemname* --platform=ruby
This forces compilation of the extension from source using DevKit and works with most of the major gems I've tried.
Ruby 1.9.1 was running well on my Windows XP PC, but I've got this error message after installing mongrel. Unfortunately, mongrel has no update for Ruby 1.9.1 yet. Perhaps, for this reason, it generates this error on my PC.
JRuby might work better for you. Either way, trying to use Ruby on Windows will leave a bad taste in your mouth. Either get a VM with Linux to work with it, or pay $10/mo for a VPS where you can play.
you got the binary version of the gem, which only includes binaries for 1.8
try gem install mongrel --platform=ruby --pre
To solved msvcrt-ruby.dll error
Install DevKit ( https://github.com/oneclick/rubyinstaller/wiki/Development-Kit )
> gem uninstall json
> gem install json