problems trying to start a new project

Aptana RadRails discussion.

Moderator: Aptana Staff

problems trying to start a new project

Postby nastycanasta » Wed Dec 10, 2008 7:43 pm

I'm an absolute beginner with rubyonrails but I'm gradually learning. Here's what I have so far...I'm running Vista and the latest aptana studio. I've installed mysql and it is up and running. After I create a project. I hit the green arrow button to start my server but nothing happens. In the console I get the following message...

Code: Select all
Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update --system` and try again.
"5144"


What do I do next? I'm really new to the command prompt too so explaining things to me as if I was 2 years old would probably help a lot. Thanks... :D
nastycanasta
 
Posts: 11
Joined: Wed Dec 10, 2008 7:26 pm

Postby blazar » Wed Dec 10, 2008 8:26 pm

Can you open a command prompt and run the gem update --system from it successfully? This is a Ruby infrastructure issue, not an Aptana issue except that RadRails relies on having the current version of RubyGem installed.
blazar
 
Posts: 668
Joined: Wed Jul 02, 2008 9:54 pm

Postby nastycanasta » Thu Dec 11, 2008 12:07 am

Yeah but here's where I have problems. I've never really used the command prompt so I don't know the commands.

Here's what I have at my prompt right now...

Code: Select all
irb<main>:001:0>


So I guess I need to know what to type to run the gem update. Any help or is this somethings that's way over my head. I've made it this far though so I'm thinking I can do it with some good advice.
nastycanasta
 
Posts: 11
Joined: Wed Dec 10, 2008 7:26 pm

Postby nastycanasta » Thu Dec 11, 2008 2:14 am

Well after doing a little research I think I figured out how to run the gem update. I typed this from my command prompt...

Code: Select all
C:\Users\Myname>gem update


It started installing the files but then I got this

Code: Select all
ERROR: While executing gem...<Gem::RemoteFetcher::FecthError>
    timed out <http://gems.rubyforge.org/gems/test-unit-2.0.1.gem>


What should I go next, thanks....
nastycanasta
 
Posts: 11
Joined: Wed Dec 10, 2008 7:26 pm

Postby blazar » Thu Dec 11, 2008 5:18 am

Did you type gem update or gem update --system? Sould be the second one.
blazar
 
Posts: 668
Joined: Wed Jul 02, 2008 9:54 pm

Postby nastycanasta » Sat Dec 13, 2008 2:06 am

I typed the gem udpdate --system and it said there was nothing to update.

So I opened aptana studio and an auto install gems window came up including ruby-debug-ide and ruby-debug-base.

I hit the install button and then got this message in the console...

Code: Select all
gem install -l ruby-debug-base-0.10.3-mswin32.gem
ERROR:  Error installing ruby-debug-base-0.10.3-mswin32.gem:
   ruby-debug-base requires linecache (>= 0.3, runtime)
>gem install -l ruby-debug-ide-0.4.2.gem
ERROR:  Error installing ruby-debug-ide-0.4.2.gem:
   ruby-debug-ide requires ruby-debug-base (= 0.10.3, runtime)


So I guess I need to know what to do next? Thanks...
nastycanasta
 
Posts: 11
Joined: Wed Dec 10, 2008 7:26 pm

Postby protech_v2 » Mon Dec 15, 2008 7:51 pm

Hi - if you haven't solved it yet, you should type "gem update linecache", which will update your version and enable you to continue...
protech_v2
 
Posts: 2
Joined: Mon Dec 15, 2008 7:48 pm

Postby nastycanasta » Mon Dec 15, 2008 8:13 pm

I just tried that and I got "nothing to update"

My prompt has this... C:\Users\MyName>

Is this correct or should it just be C:\

Are there any brackets, colons, etc to type in after "gem update linecache?
nastycanasta
 
Posts: 11
Joined: Wed Dec 10, 2008 7:26 pm

Postby cwilliams » Tue Dec 16, 2008 4:29 am

nastycanasta: You don't have linecache installed so you actually would want to do a "gem install linecache" instead of an update. If that fails for some reason, you can grab the win32 version of that gem from this page: http://rubyforge.org/frs/?group_id=5040 (as linecache-0.43-mswin32.gem). Save it, then open up the command line to the directory it's in, and run "gem install linecache-0.43-mswin32.gem". Once linecache is installed restart Aptana/RadRails and it'll prompt you to install the gems again, this time they should succeed.

This is a bug in RDT/RadRails as it should have included linecache in the list of gems to install for you and installed that before ruby-debug-base. I've opened a bug for it: http://support.aptana.com/asap/browse/ROR-1078
User avatar
cwilliams
 
Posts: 2061
Joined: Thu Mar 29, 2007 11:21 pm
Location: Rochester, NY

problems trying to start a new project

Postby johnking » Thu Dec 18, 2008 5:39 pm

cwilliams,
Many thanks for the reply. May I request an addition to that bug fix? Although it may be patently obvious to an experienced user, the console message "ruby-debug-base requires linecache" left this noob wondering what, exactly, was "linecache" anyway: an environment variable, an .ini setting, a Java routine? Perhaps it would be more clear if the message had identified the missing object as a Gem. Thanks again, JK
johnking
 
Posts: 1
Joined: Thu Dec 18, 2008 5:14 pm

Postby nastycanasta » Fri Dec 19, 2008 11:40 pm

Hey 77004 if you would read my earlier posts you would see that I have absolutely no experience whatsoever with rad rails, ROR, and working from the command prompt. This is all new to me. I'm quite experienced with other programs and software and the way I learned it all was from simply asking questions. I'm going to be asking a lot more so please bare in mind that something that seems so easy to you is absolutely alien to me, but I will learn it.

Cwilliams, thanks a lot for everything so far. The little help you've given me has already made me quite a lot of progress. I hope you don't mind the real basic questions, but I'm reading books and with great help from people like you I'm sure I'll start picking this stuff up quickly.

By the way, I live in Vegas now but I was born and raised in Rochester. I used to bartend in a bar called Woody's back in the day. Thanks for all your help so far.
nastycanasta
 
Posts: 11
Joined: Wed Dec 10, 2008 7:26 pm

Postby the_drow » Sat Dec 20, 2008 11:18 am

To install rails you have to install rake 0.83.
It is also missing. Please fix this.
the_drow
 
Posts: 17
Joined: Sat Dec 20, 2008 11:14 am

Postby nastycanasta » Sun Dec 21, 2008 1:14 am

Do I type " install rake 0.83" at the command prompt?

Thanks...
nastycanasta
 
Posts: 11
Joined: Wed Dec 10, 2008 7:26 pm

Postby the_drow » Sun Dec 21, 2008 6:44 am

yes. also it is not fixed yet. please fix it as soon as possible :)

Thanks
the_drow
 
Posts: 17
Joined: Sat Dec 20, 2008 11:14 am

Postby nastycanasta » Mon Dec 22, 2008 1:38 am

I typed rake install 0.83 and this is what i got

Code: Select all
C:\Users\Myname>rake install 0.83
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2343:in `raw_load_rakefile
'
(See full trace by running task with --trace)
nastycanasta
 
Posts: 11
Joined: Wed Dec 10, 2008 7:26 pm

Next

Return to Aptana RadRails