Hi, i’ve posted this before, but I still haven’t been able to figure out
how to resolve this issue.
C:\rails_apps\jms>ruby script/console
Loading development environment.
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_re quire': no such file to load -- ./script/../config/../config/environment (LoadEr ror) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
re
quire’
from c:/ruby/lib/ruby/1.8/irb/init.rb:252:in load_modules' from c:/ruby/lib/ruby/1.8/irb/init.rb:250:in
each’
from c:/ruby/lib/ruby/1.8/irb/init.rb:250:in load_modules' from c:/ruby/lib/ruby/1.8/irb/init.rb:21:in
setup’
from c:/ruby/lib/ruby/1.8/irb.rb:54:in `start’
from c:/ruby/bin/irb.bat:15
~Jeremy
Delete everything again.
Go to www.google.com
Search for “instantrails”
go to the site, and download the RAR file.
unpack and then run instantrails 
//Finish 
Jamal S. wrote:
Delete everything again.
Go to www.google.com
Search for “instantrails”
go to the site, and download the RAR file.
unpack and then run instantrails 
//Finish 
thanks for the suggestion, but I used instant rails and I’m not a huge
fan of it. Instead of doing work arounds, I would rather just fix the
problem directly.
This is after a fresh install of windows, ruby and rails. Any other
ideas?
~Jeremy
`gem_original_re
quire’: no such file to load – ./script/…/config/…/config/environment
It looks like it cannot find the enviroment file?
I was thinking maybe this might help.
C:\rails_apps\jms>ruby script/about
About your application’s environment
Ruby version 1.8.6 (i386-mswin32)
RubyGems version 0.9.4
Rails version 1.2.3
Active Record version 1.15.3
Action Pack version 1.13.3
Action Web Service version 1.2.3
Action Mailer version 1.3.3
Active Support version 1.4.2
Application root C:/rails_apps/jms
Environment development
Database adapter mysql
Database schema version 5
Jamal S. wrote:
`gem_original_re
quire’: no such file to load – ./script/…/config/…/config/environment
It looks like it cannot find the enviroment file?
yeah, that’s what I was thinking, but it’s there.
C:\rails_apps\jms\config\environment.rb
unless theres supposed to be another one?
Anyone else out there have any ideas?
Jeremy W. wrote:
Anyone else out there have any ideas?
OOOO, the frustration!!!
ok, so I got my buddy to finally try out rails. I walked him through
installing Ruby and Rails and MySQL on his computer. Walked him through
a quick tutorial. Then on a whim I had him go into console, and whuddaya
know it worked. FREAKIN AMAZING! Does it work on mine… No.
Ok, so I decided to uninstall Rails and reinstall it, and it won’t
install any of the dependencies now…
C:\rails_apps>gem install rails
Successfully installed rails-1.2.3
C:\rails_apps>gem install rails --include-dependencies
Successfully installed rails-1.2.3
C:\rails_apps>
???
Help please!
~Jeremy
On 9/12/07, Jeremy W. [email protected] wrote:
a quick tutorial. Then on a whim I had him go into console, and whuddaya
C:\rails_apps>gem install rails --include-dependencies
Posted via http://www.ruby-forum.com/.
Do a complete reinstall of Ruby is my guess. Gems seems to be messed up
a
bit.
One thing you can try: rake rails:freeze:edge. If this works, and you
can
run the console just fine, then it proves your Gems install is borked.
If
you can’t do this, your Gems install is probably borked anyway, just
blow
everything away and start over (with the One-Click installer, of
course).
Jason
On 9/12/07, Jeremy W. [email protected] wrote:
Jeremy W. wrote:
Anyone else out there have any ideas?
You should be able to go to some directory and do the following.
rails barf
cd barf
ruby script/console
Don’t touch or edit any files or create any databases or anything.
Just do those three commands.
Do you still get the error?
On 9/12/07, Jeremy W. [email protected] wrote:
cd barf
ruby script/console
Don’t touch or edit any files or create any databases or anything.
Just do those three commands.
Do you still get the error?
yes I do.
Well we know the problem is with your Rails gems then. Since you’re on
windows, it should be a fairly simple matter to blow away (or rename
away) c:\ruby and then grab the latest one-click installer and
reinstall. Then “gem install rails -y” should get you fixed up.
Bob S. wrote:
On 9/12/07, Jeremy W. [email protected] wrote:
cd barf
ruby script/console
Don’t touch or edit any files or create any databases or anything.
Just do those three commands.
Do you still get the error?
yes I do.
Well we know the problem is with your Rails gems then. Since you’re on
windows, it should be a fairly simple matter to blow away (or rename
away) c:\ruby and then grab the latest one-click installer and
reinstall. Then “gem install rails -y” should get you fixed up.
still a no go
I never seen the -y before, what is that supposed to
do? Is it the same as --include-dependencies? I uninstalled ruby and
rails completely, then downloaded the latest version and tried a brand
new fresh install.
I actually get this error on 3 different computers. The only thing I can
think of after dealing with this for so long is that there is some kind
of conflict with something I use.
On 9/12/07, Jeremy W. [email protected] wrote:
still a no go
I never seen the -y before, what is that supposed to
do? Is it the same as --include-dependencies? I uninstalled ruby and
rails completely, then downloaded the latest version and tried a brand
new fresh install.
I actually get this error on 3 different computers. The only thing I can
think of after dealing with this for so long is that there is some kind
of conflict with something I use.
How about eliminating script/console:
C:>rails barf
…snip…
create log/development.log
create log/test.log
C:>cd barf
C:\barf>irb --simple-prompt
require ‘config/environment’
=> true
RAILS_ENV
=> “development”
Bob S. wrote:
On 9/12/07, Jeremy W. [email protected] wrote:
still a no go
I never seen the -y before, what is that supposed to
do? Is it the same as --include-dependencies? I uninstalled ruby and
rails completely, then downloaded the latest version and tried a brand
new fresh install.
I actually get this error on 3 different computers. The only thing I can
think of after dealing with this for so long is that there is some kind
of conflict with something I use.
How about eliminating script/console:
C:>rails barf
…snip…
create log/development.log
create log/test.log
C:>cd barf
C:\barf>irb --simple-prompt
require ‘config/environment’
=> true
RAILS_ENV
=> “development”
this actually does work. This is what I have been doing for a while now
just to get around it, the only thing is when I do it this way… 1.
it’s annoying, 2. it takes FOREVER to load… I’m not exactly sure why.
Thanks for helping me out with this mystery.
~Jeremy