Project

General

Profile

Actions

Bug #1595

closed

rake unusable on windows install

Added by rgonzomatic (Robert Gonzalez) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
ruby -v:
1.8.7
[ruby-core:23770]

Description

=begin
Tried to run a rake command to setup RedMine. Got the following:

C:\Program Files\RedMine\redmine-0.8.4>rake db:migrate RAILS_ENV="production"
rake db:migrate RAILS_ENV="production"
C:/Program Files/Ruby/bin/rake:19:in `load': no such file to load -- "C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake" (LoadError)
from C:/Program Files/Ruby/bin/rake:19

C:\Program Files\RedMine\redmine-0.8.4>

No matter what I do with rake, I get the same error.

I looked at the .bat file, the actual rake script, on the web, etc. I cant figure out where this error is coming from. That file exists, so I dont know why its getting a load error.
=end

Actions #1

Updated by rogerdpack (Roger Pack) over 15 years ago

=begin
might be a permissions issue.
And exactly what version of ruby is it?
what do you get when you run
ruby "C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake"
can you cat the file?
-=r
=end

Actions #2

Updated by jredville (Jim Deville) over 15 years ago

=begin
Have you checked the cmd file? It might be pointing to an exact location instead of using special batch variables.

JD

…there is no try

-----Original Message-----
From: Robert Gonzalez []
Sent: Tuesday, June 09, 2009 9:59 AM
To:
Subject: [ruby-core:23770] [Bug #1595] rake unusable on windows install

Bug #1595: rake unusable on windows install
http://redmine.ruby-lang.org/issues/show/1595

Author: Robert Gonzalez
Status: Open, Priority: Urgent
Category: ext
ruby -v: 1.8.7

Tried to run a rake command to setup RedMine. Got the following:

C:\Program Files\RedMine\redmine-0.8.4>rake db:migrate
RAILS_ENV="production"
rake db:migrate RAILS_ENV="production"
C:/Program Files/Ruby/bin/rake:19:in `load': no such file to load --
"C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake"
(LoadError)
from C:/Program Files/Ruby/bin/rake:19

C:\Program Files\RedMine\redmine-0.8.4>

No matter what I do with rake, I get the same error.

I looked at the .bat file, the actual rake script, on the web, etc. I cant figure
out where this error is coming from. That file exists, so I dont know why its
getting a load error.


http://redmine.ruby-lang.org

=end

Actions #3

Updated by jredville (Jim Deville) over 15 years ago

=begin
Please disregard this, I didn't read the original very well. Sorry.

JD

…there is no try

-----Original Message-----
From: Jim Deville []
Sent: Tuesday, June 09, 2009 11:04 AM
To:
Subject: [ruby-core:23773] Re: [Bug #1595] rake unusable on windows install

Have you checked the cmd file? It might be pointing to an exact location
instead of using special batch variables.

JD

…there is no try

-----Original Message-----
From: Robert Gonzalez []
Sent: Tuesday, June 09, 2009 9:59 AM
To:
Subject: [ruby-core:23770] [Bug #1595] rake unusable on windows
install

Bug #1595: rake unusable on windows install
http://redmine.ruby-lang.org/issues/show/1595

Author: Robert Gonzalez
Status: Open, Priority: Urgent
Category: ext
ruby -v: 1.8.7

Tried to run a rake command to setup RedMine. Got the following:

C:\Program Files\RedMine\redmine-0.8.4>rake db:migrate
RAILS_ENV="production"
rake db:migrate RAILS_ENV="production"
C:/Program Files/Ruby/bin/rake:19:in `load': no such file to load --
"C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake"
(LoadError)
from C:/Program Files/Ruby/bin/rake:19

C:\Program Files\RedMine\redmine-0.8.4>

No matter what I do with rake, I get the same error.

I looked at the .bat file, the actual rake script, on the web, etc. I
cant figure out where this error is coming from. That file exists, so
I dont know why its getting a load error.


http://redmine.ruby-lang.org

=end

Actions #4

Updated by luislavena (Luis Lavena) over 15 years ago

=begin
On Tue, Jun 9, 2009 at 1:58 PM, Robert Gonzalez wrote:

Bug #1595: rake unusable on windows install
http://redmine.ruby-lang.org/issues/show/1595

Author: Robert Gonzalez
Status: Open, Priority: Urgent
Category: ext
ruby -v: 1.8.7

Tried to run a rake command to setup RedMine.  Got the following:

C:\Program Files\RedMine\redmine-0.8.4>rake db:migrate RAILS_ENV="production"
rake db:migrate RAILS_ENV="production"
C:/Program Files/Ruby/bin/rake:19:in `load': no such file to load -- "C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake" (LoadError)
       from C:/Program Files/Ruby/bin/rake:19

C:\Program Files\RedMine\redmine-0.8.4>

No matter what I do with rake, I get the same error.

I looked at the .bat file, the actual rake script, on the web, etc.  I cant figure out where this error is coming from.  That file exists, so I dont know why its getting a load error.

Can you try the following?

In a empty folder (no Rakefile or Rails application) perform two things:

rake --version

That is just to know if rake is working.

Then, create a simple rakefile:

require 'rake/clean'

And execute from the command line:

rake -T

If still doesn't work, we need:

gem env

Just an advice: You installed Ruby in a path with spaces (C:\Program Files)

That is not recommended, since some tools do not properly escape paths
(which is not the case of RubyGems or Rake) but could be something
else.

--
Luis Lavena
AREA 17

Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

=end

Actions #5

Updated by rgonzomatic (Robert Gonzalez) over 15 years ago

=begin
------------------- in response to your question -------------------------

Can you try the following?

In a empty folder (no Rakefile or Rails application) perform two things:

rake --version

C:\empty>rake --version
rake --version
C:/Program Files/Ruby/bin/rake:19:in `load': no such file to load -- "C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake" (LoadError)
from C:/Program Files/Ruby/bin/rake:19

C:\empty>

--------------- here is the gem env results --------------------
C:\empty>gem env
gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.3.3
  • RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
  • INSTALLATION DIRECTORY: C:/Program Files/Ruby/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: "C:/Program Files/Ruby/bin/ruby.exe"
  • EXECUTABLE DIRECTORY: C:/Program Files/Ruby/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-mswin32-60
  • GEM PATHS:
    • C:/Program Files/Ruby/lib/ruby/gems/1.8
    • C:/Documents and Settings/robert.gonzalez/Application Data/.gem/ruby/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

C:\empty>

=end

Actions #6

Updated by rgonzomatic (Robert Gonzalez) over 15 years ago

=begin
I'm going to uninstall Ruby/Rails/RubyGems and reinstall everything straight onto C:\ since I believe that something, somewhere, does not like the "\Program Files" component of the path.

Thanks,

rg

=end

Actions #7

Updated by PatParslow (Pat Parslow) over 15 years ago

=begin
I don't know if this has been solved anywhere else, but I had the same problem and it appears to be that Gem.bin_path is returning a string with quotes around it, which is then causing a problem for load.
If you change ruby\bin\rake to end with this:
load Gem.bin_path('rake', 'rake', version).gsub(""","")
it gets around the problem.

Not a Redmine problem, I guess, but this issue comes up at the top of a Google search for the error message, so hopefully this can help people while I figure out who/where needs fixing to do the job properly!
=end

Actions #8

Updated by luislavena (Luis Lavena) over 15 years ago

=begin
On Sat, Jul 18, 2009 at 6:11 PM, Pat Parslow wrote:

Issue #1595 has been updated by Pat Parslow.

I don't know if this has been solved anywhere else, but I had the same problem and it appears to be that Gem.bin_path is returning a string with quotes around it, which is then causing a problem for load.
If you change ruby\bin\rake to end with this:
load Gem.bin_path('rake', 'rake', version).gsub(""","")
it gets around the problem.

Not a Redmine problem, I guess, but this issue comes up at the top of a Google search for the error message, so hopefully this can help people while I figure out who/where needs fixing to do the job properly!

This is already fixed in RubyGems repository and will be part of 1.3.5
release in the following days.

Luis Lavena
AREA 17

Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

=end

Actions #9

Updated by naruse (Yui NARUSE) over 15 years ago

  • Status changed from Open to Closed

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0