| View previous topic :: View next topic |
| Author |
Message |
chukster
Joined: 27 Oct 2009 Posts: 14
|
Posted: Thu Oct 29, 2009 4:56 pm Post subject: i have a problem with rails console |
|
|
Can somone please i am stuck i have create a ruby on rails application using ruby platform 1.8.6-p287 on the server WEBrick
i have specified the Database information Directly using mysql Database Adapter but when i click next i get this message
"Rake tasks fetching failed with (working directory:
Rails requres RubyGems >=(you have 1.3.1). Please 'gem update --system' and try again"
So to try and solve this i went to my Start command prompt with ruby on ruby 1.9.1-p243
and typed: $ gem update -- system (see code below)
When that did not work i followed these instructions (see code below) :
$ gem install rubygems-update (again, might need to be admin/root)
$ update_rubygems
to get rubygems 1.3.2 from the instructions here http://blog.segment7.net/articles/2009/04/15/rubygems-1-3-2
| Code: | ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
C:\Users\arinze>gem update --system
Updating RubyGems
Nothing to update
C:\Users\arinze>gem update --system
Updating RubyGems
Nothing to update
C:\Users\arinze>gem install rubygems-update
Successfully installed rubygems-update-1.3.5
1 gem installed
Installing ri documentation for rubygems-update-1.3.5...
Installing RDoc documentation for rubygems-update-1.3.5...
Could not find main page README
C:\Users\arinze>update_rubygems
Installing RubyGems 1.3.5
RubyGems 1.3.5 installed
´╗┐=== 1.3.5 / 2009-07-21
Bug fixes:
* Fix use of prerelease gems.
* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.
Deprecation Notices:
* Bulk index update is no longer supported (the code currently remains, but no
the tests)
* Gem::manage_gems was removed in 1.3.3.
* Time::today was removed in 1.3.3.
------------------------------------------------------------------------------
RubyGems installed the following executables:
C:/Ruby19/bin/gem
C:\Users\arinze>gem update --system
Updating RubyGems
Nothing to update
|
ok i solved this problem by downloading rubygems-1.3.3.zip
then runnig setup.rb
but i have a new problem
when i went to my new project and generated a new model and then go to rails console for my project i get this message
"Loading development environment (Rails 2.3.4)
'irb.bat' is not recognized as an internal or external command,
operable program or batch file.
"
Can somone please help me |
|
| Back to top |
|
 |
Hassan Schroeder Posted via mailing list.
|
Posted: Thu Oct 29, 2009 5:12 pm Post subject: i have a problem with rails console |
|
|
On Thu, Oct 29, 2009 at 9:56 AM, chukster <address-removed> wrote:
| Quote: |
Can somone please i am stuck i have create a ruby on rails application using ruby platform 1.8.6-p287 on the server WEBrick
|
| Quote: | | So to try and solve this i |
|
| Back to top |
|
 |
chukster
Joined: 27 Oct 2009 Posts: 14
|
Posted: Thu Oct 29, 2009 7:35 pm Post subject: |
|
|
hi thanks for the reply but i dont see how it solves my problem
"Loading development environment (Rails 2.3.4)
'irb.bat' is not recognized as an internal or external command,
operable program or batch file. |
|
| Back to top |
|
 |
Hassan Schroeder Posted via mailing list.
|
Posted: Thu Oct 29, 2009 7:51 pm Post subject: i have a problem with rails console |
|
|
On Thu, Oct 29, 2009 at 12:35 PM, chukster <address-removed> wrote:
| Quote: |
hi thanks for the reply but i dont see how it solves my problem
|
?? Your environment appears to be *completely* screwed up. :-)
So you need to get to where you're using ONE version of ruby,
not 2 or 3, and get that ONE version into a sane, usable state.
That's the first step in "solving your problem".
--
Hassan Schroeder ------------------------ address-removed
twitter: @hassan |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|