Problems upgrading to Rails 1.1


#1

Hi All,

I just tried to upgrade to Rails 1.1 on my Linux server and had the
following
issue when running the second part of the upgrade.

[root@localhost ~]# rake rails:update
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1635:in
`load_rakefile’
(See full trace by running task with --trace)

Not sure what this all means. Can anybody help please? Thanks in advance

Jake Howlett


#2

It looks like you’re not running this from with an actual Rails
project directory, so Rake can’t find the Rakefile it needs. You need
to run it for each project that you have.

Hope that helps.

David


#3

David T. <ceedwlt@…> writes:

It looks like you’re not running this from with an actual Rails
project directory, so Rake can’t find the Rakefile it needs. You need
to run it for each project that you have.

Hi David,

I tried that but I got this error instead when rake aborted:

“Don’t know how to build task ‘rails:update’”

Any ideas? Appreciate the help.

Jake


#4

On 30/03/06, jakehowlett removed_email_address@domain.invalid wrote:

Hi David,

I tried that but I got this error instead when rake aborted:

“Don’t know how to build task ‘rails:update’”

Any ideas? Appreciate the help.

Do you still have any old versions of Rails installed? If you have, I
suggest you uninstall those (gem uninstall) and try again. If that
doesn’t work, I’m stumped :slight_smile:

David


#5

David T. <ceedwlt@…> writes:

Do you still have any old versions of Rails installed? If you have, I
suggest you uninstall those (gem uninstall) and try again. If that
doesn’t work, I’m stumped

David

Only one version installed AFAIK David.

As I noted in a separate reply since this one, the error is only when
running
the command from inside a Typo install. Other projects are fine.

I’ve seen there are some issues with Typo and Rails 1.1. I’ll keep an
eye out
for an update and leave that directory alone for a while.

Thanks for your help,
Jake


#6

Sorry,

"I could take a test "

should be

"I would take a test "


#7

Only one version installed AFAIK David.

As I noted in a separate reply since this one, the error is only when running
the command from inside a Typo install. Other projects are fine.

I’ve seen there are some issues with Typo and Rails 1.1. I’ll keep an eye out
for an update and leave that directory alone for a while.

Thanks for your help,
Jake

Ah, if it’s Typo, might be best to wait for that one :slight_smile:

David


#8

first update rails via gem:

gem update rails --include-dependencies

or uninstall and reinstall via gem if you have issues:

gem uninstall rails
gem install rails --include-dependencies

Then you can back up your current projects and upgrade them with rake
from their own directories.

I could take a test snapshot from svn and upgrade it in its own
directory tree so you could run your test suite before upgrading any
production code.

-Sean
David T. wrote:

It looks like you’re not running this from with an actual Rails
project directory, so Rake can’t find the Rakefile it needs. You need
to run it for each project that you have.

Hope that helps.

David


#9

I’m sorry, why not just use gem update?


#10

Hi Jake and everyone,

I’m having the same problem. I tried uninstalling (all versions of)
Rails and starting over, and that didn’t solve the problem.
I would be very grateful if someone could point us in the
right direction on this!

Chris J.

jakehowlett wrote:

David T. <ceedwlt@…> writes:

It looks like you’re not running this from with an actual Rails
project directory, so Rake can’t find the Rakefile it needs. You need
to run it for each project that you have.

Hi David,

I tried that but I got this error instead when rake aborted:

“Don’t know how to build task ‘rails:update’”

Any ideas? Appreciate the help.

Jake


#11

After spending quite a bit of time with the same problems, I finally got
this working for me. By this point, I have already upgraded to Ruby
1.8.4, and rails 1.1.0 and reinstalled RadRails 6.1 and configured
RadRails to use the correct ruby, rdoc, and ri.

I would recommend backing up your project first or at least committing
anything recently changed to your source control before duplicating
this.

I made a fresh rails project and copied from the new project to my
actual working project the public/javascipts/ directory and files, the
/script directory, and then config/environments/ directory and
config/environment.rb and routes.rb and test/test_helper.rb files. If
you had updated any of these previously, now is where you go back to the
backup copy and see what it will take to reimplement those changes.

After all this, I was able to get webrick and my rails app launched at
least.

Probably a bit more copying than necessary, but I haven’t gone back and
figured out exactly what needs upgraded.

David

Chris J. wrote:

Hi Jake and everyone,

I’m having the same problem. I tried uninstalling (all versions of)
Rails and starting over, and that didn’t solve the problem.
I would be very grateful if someone could point us in the
right direction on this!

Chris J.

jakehowlett wrote:

David T. <ceedwlt@…> writes:

It looks like you’re not running this from with an actual Rails
project directory, so Rake can’t find the Rakefile it needs. You need
to run it for each project that you have.

Hi David,

I tried that but I got this error instead when rake aborted:

“Don’t know how to build task ‘rails:update’”

Any ideas? Appreciate the help.

Jake