Project

General

Profile

Bug #1595

rake unusable on windows install

Added by rgonzomatic (Robert Gonzalez) about 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
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

History

#1

Updated by rogerdpack (Roger Pack) about 10 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

#2

Updated by jredville (Jim Deville) about 10 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 [mailto:redmine@ruby-lang.org]
Sent: Tuesday, June 09, 2009 9:59 AM
To: ruby-core@ruby-lang.org
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

#3

Updated by jredville (Jim Deville) about 10 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 [mailto:jdeville@microsoft.com]
Sent: Tuesday, June 09, 2009 11:04 AM
To: ruby-core@ruby-lang.org
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 [mailto:redmine@ruby-lang.org]
Sent: Tuesday, June 09, 2009 9:59 AM
To: ruby-core@ruby-lang.org
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

#4

Updated by luislavena (Luis Lavena) about 10 years ago

=begin
On Tue, Jun 9, 2009 at 1:58 PM, Robert Gonzalezredmine@ruby-lang.org 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

#5

Updated by rgonzomatic (Robert Gonzalez) about 10 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

#6

Updated by rgonzomatic (Robert Gonzalez) about 10 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

#7

Updated by PatParslow (Pat Parslow) almost 10 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

#8

Updated by luislavena (Luis Lavena) almost 10 years ago

=begin
On Sat, Jul 18, 2009 at 6:11 PM, Pat Parslowredmine@ruby-lang.org 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

#9

Updated by naruse (Yui NARUSE) over 9 years ago

  • Status changed from Open to Closed

=begin

=end

Also available in: Atom PDF