On Feb 19, 9:22 am, scruffian <[email protected]> wrote:
> Hi
>
> I am new to rails and I was trying to get version 2.1.1 installed so
> that I could run lovdbyless and play with Rails to see what it was
> like. When trying to install lovdbyless I kept getting problems when
> running "rake" so I looked around for an answer and did what the
> forums said, and then i'd get another error and i'd go through the
> same process. Now I am getting very strange errors that I can't find
> anyone else having so I really need some help!
>
> I am on OSX 10.6.6.
>
> Here's what happens:
>
> $ rails -v
> -bash: /opt/local/bin/rails: /opt/local/bin/ruby: bad interpreter: No
> such file or directory
>
> $ ruby -v
> -bash: ruby: command not found
>
> $ sudo port install ruby
> --->  Computing dependencies for ruby
> --->  Cleaning ruby
>
> $ sudo port install rails
> Error: Port rails not found

You don't install rails that way. Rails and it's accompanying files
are installed as ruby gems.

You should already have ruby 1.8.7 with mac 10.6.6 (as already
mentioned), so if you are just experimenting at the moment to see if
rails is something you want to work with (in which case rvm might be
overkill initially), just open a shell and enter:

gem install rails VERSION=2.1.1

at the command prompt, and this will give you the rails version you
need to get started.

If you want the latest version 3.0.4, just omit VERSION=*

However, I doubt you will get very far with setting up lovdbyless.
I've just downloaded it and had a quick look. I think you are going to
need, at the very least, a basic understanding of ruby and rails in
order to get it functioning locally.

I also would not recommend it as a way of learning rails. It appears
that lovedbyless is stuck way back on rails 2.1.1, and it has not been
updated since 2008. Their big claim that it now runs on rails 2.2.2 is
not that impressive. Rails is now at 3.0.4, so you may be better
learning rails 3 right off the bat.

There are two good books which every newb should have:

AWDwR [1] (v4 is still in Beta but you can get the electronic version
for $24 - along with all the updates released prior to printing -
also, even after the paper book is released, you will still receive
updates to your e-version when they are available)

Follow the tutorials in this to get an understanding of how everything
fits together. It will also give you a basic intro to the ruby
language.

Programming Ruby [2] (commonly known as the Pickaxe book) is also
recommended if you want to increase your ruby knowledge further than
AWDwR provides for.

Also checkout Railscasts [3] - they provide free instructional vids on
all sorts of rails related topics.

[1] http://pragprog.com/titles/rails4/agile-web-development-with-rails
[2] http://pragprog.com/titles/ruby3/programming-ruby-1-9
[3] http://railscasts.com/

We've all been newbs at one time or another, so good luck with it.

Paul
>
> I am totally lost, so any help, even if it's just some instructions on
> deleting everything and starting again, would be very helpful.
>
> Thanks so much!
> Ben

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to