Ok I think i've almost got to the bottom of this. When I do:

/usr/local/bin/rake db:create:all

it works, but when i just do

rake db:create:all

it says:
-bash: /usr/bin/rake: /System/Library/Frameworks/Ruby.framework/
Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory

So rake is referring to /usr/bin/rake, not usr/local/bin/rake, which
is where my ruby and rails are. How do I fix this? A symlink?

Thanks

On Feb 21, 1:47 pm, scruffian <[email protected]> wrote:
> Thanks Steven
>
> I get the same message with rake db:create:all --trace.
>
> I do have a config/database.yml file.
>
> I think it must be that rake isn't installed properly and it's looking
> for ruby in the wrong place?
>
> Ben
>
> On Feb 21, 1:14 pm, Steven Bristol <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Sun, Feb 20, 2011 at 2:23 PM, scruffian <[email protected]> wrote:
> > > Hi
>
> > > I have had a lot of problems getting past the "rake db:create:all"
> > > step in the setup instructions. I ended up completely reinstalling
> > > ruby and rubygems and rails and mysql but it still doesn't work!
>
> > > This is what I get:
>
> > > $ rake db:create:all
> > > -bash: /usr/bin/rake: /System/Library/Frameworks/Ruby.framework/
> > > Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
>
> > > No doubt I am doing something stupid, but I can't work out what. Any
> > > help would be great appreciated.
>
> > > Thanks
> > > Ben
>
> > Ben,
>
> > Can you do a
> > rake db:create:all --trace?
> > Also, do you have a config/database.yml?
>
> > cheers,
> > stevenbristol

-- 
You received this message because you are subscribed to the Google
Groups "Lovd by Less" 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/lovdbyless?hl=en
Who loves ya baby?

Reply via email to