Re: Complete Newbie needs help!

Abhinav Saxena
Fri, 11 Sep 2009 11:23:56 -0000

You should install any gem with sudo
  example: sudo gem install rails

Anyway, I guess, you generated the application you are working one with a
different rails version than it is currently installed. So I think, updating
RAILS_GEM_VERSION with the correct version will be much simpler. Try that.
Or if it is just a sample app, discard it, and generate a new one.

Thanks,
Abhinav
--
अभिनव
http://twitter.com/abhinav



On Fri, Sep 11, 2009 at 4:36 PM, Brad
<brad-YQrk2ocFi+e2//VQYe0aCQ@public.gmane.org> wrote:

>
> Thanks for your reply. I had a look at my database.yml file and the
> socket path is correctly referenced.
>
> i did rake db:create and got this:
>
> (in /Applications/rubystack-1.6-0/projects/rubystack)
> Missing the Rails 2.3.2 gem. Please `gem install -v=2.3.2 rails`,
> update your RAILS_GEM_VERSION setting in config/environment.rb for the
> Rails version you do have installed, or comment out RAILS_GEM_VERSION
> to use the latest version installed.
>
> so i did what it told me and entered this: gem install -v=2.3.2 rails
>
> and i got this back: WARNING:  Installing to ~/.gem since /usr/local/
> lib/ruby/gems/1.8 and
>          /usr/local/bin aren''t both writable.
> WARNING:  You don''t have /Users/bradbucceri/.gem/ruby/1.8/bin in
your
> PATH,
>          gem executables will not run.
>
> Brad
>
> On Sep 11, 11:54 am, Abhinav Saxena
<abhinav...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > http://rubyresponse.wordpress.com/2006/07/22/cant-find-mysqldsock/
> >
> > Thanks,
> > Abhinav
> > --
> > अभिनवhttp://twitter.com/abhinav
> >
> > On Fri, Sep 11, 2009 at 3:58 PM, Brad
<b...-YQrk2ocFi+e2//VQYe0aCQ@public.gmane.org> wrote:
> >
> > > Wahey! ok, my server is running.
> >
> > > I started this tutorial:
> >
>http://guides.rubyonrails.org/getting_started.html#creating-a-new-rai.
> ..
> >
> > > when i get to rake db:create  it tells me that the mysql.sock (i
think
> > > thats it) is missing or not there and to install it.
> >
> > > In my /Applications/rubystack-1.6-0/mysql/tmp/mysql.sock folder,
it''s
> > > definiteley there.
> >
> > > im still confused but getting there!
> >
> > > Brad
> >
> > > On Sep 11, 10:06 am, Abhinav Saxena
<abhinav...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > > RubyGems might be there, but not the appropriate version
necessarily.
> >
> > > > On command prompt do this> gem -v
> >
> > > > If its < 1.3.1 then, install >= 1.3.1 as suggested by
the error
> message.
> >
> > > > Thanks,
> > > > Abhinav
> > > > --
> > > > अभिनवhttp://twitter.com/abhinav
> >
> > > > On Fri, Sep 11, 2009 at 2:15 PM, Brad
<b...-YQrk2ocFi+e2//VQYe0aCQ@public.gmane.org> wrote:
> >
> > > > > Hey,
> >
> > > > > Thanks for your reply. i just changed it to
script/server and got
> > > > > this: Rails requires RubyGems >= 1.3.1. Please
install RubyGems and
> > > > > try again:http://rubygems.rubyforge.org
> >
> > > > > I am pretty sure the gems were there yesterday and i
dont think i
> did
> > > > > anything that would have got rid of them.
> >
> > > > > Brad
> >
> > > > > On Sep 11, 9:36 am, Abhinav Saxena
<abhinav...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > > > > Hi Brad,
> >
> > > > > > I have never used Mac, so essentially
can''t you much. But you
> seem to
> > > > > > mistyping "script/server" as
"scripts/server", ie, you should use
> > > script
> > > > > > (singular)
> >
> > > > > > Thanks,
> > > > > > Abhinav
> > > > > > --
> > > > > > अभिनवhttp://twitter.com/abhinav
> >
> > > > > > On Fri, Sep 11, 2009 at 1:14 PM, Brad
<b...-YQrk2ocFi+e2//VQYe0aCQ@public.gmane.org>
> wrote:
> >
> > > > > > > Hey,
> >
> > > > > > > I am so stoked to learn rails. i am on an
iMac so i know it''s
> pre-
> > > > > > > installed. I have installed rubystack.
> >
> > > > > > > I would like to know how to start my project
etc. I have tried
> a
> > > > > > > number of tutorials including creating a
simple blog from the
> > > > > > > rails.org site but i fall down every time at,
what i think is
> the
> > > same
> > > > > > > place.
> >
> > > > > > > Yesterday i got as far as getting the
"Welcome aboard" page
> > > running,
> > > > > > > which i presume means my servers etc are on.
> >
> > > > > > > Today, however, i started the server and if i
didn''t get this
> > > message:
> > > > > > >
"/Applications/rubystack-1.6-0/ruby/bin/.ruby.bin: No such file
> or
> > > > > > > directory — scripts/server (LoadError)"
> >
> > > > > > > i got others such as: the "welcome
aboard" page which goes
> mental
> > > if
> > > > > > > you click the drop down link at the top. it
says "something
> went
> > > wrong
> > > > > > > and we have been notified" or something
like that.
> >
> > > > > > > basically i need some help, please!
> >
> > > > > > > brad
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---