Hiya... first the obligatory brief intro: my name is Bob, I''m from Atlanta, and I''m a designer/developer just venturing into the Ruby/Rails world. I''ve worked with PHP for several years but decided I needed some new aggravations in my life. Looks like I''ve found one. :-) I''m working my way through the Pickaxe 2 book and "Agile Web Dev with Rails" at the same time. In the latter, I''m attempting the Depot app, but am running into a "bad handshake" error when executing the following: depot> ruby script/generate scaffold Product Admin I''ve gone through all the reinstalls, MacOSX Tiger fixes, reinstalling the MySQL gem, etc., to no avail. I do NOT have a socket path specified for my databases in database.yml, as none seems to exist on my computer. If I do: depot> which mysql.sock I get ''no mysql.sock in /bin /sbin /usr/bin /usr/sbin'' .... SO... anyone else run into this, and what''s the solve? Thanks much! -Bob
Hi Bob - it will be in /tmp/mysql.sock Also, consider trying out Locomotive - http://locomotive.sourceforge.net - it will save you a LOT of hassle, especially if you want to use things like RMagick later on. Cheers! -DF On 10/26/05, Bob Sawyer <bobsawyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hiya... first the obligatory brief intro: my name is Bob, I''m from > Atlanta, and I''m a designer/developer just venturing into the > Ruby/Rails world. I''ve worked with PHP for several years but decided I > needed some new aggravations in my life. Looks like I''ve found one. > :-) > > I''m working my way through the Pickaxe 2 book and "Agile Web Dev with > Rails" at the same time. In the latter, I''m attempting the Depot app, > but am running into a "bad handshake" error when executing the > following: > > depot> ruby script/generate scaffold Product Admin > > I''ve gone through all the reinstalls, MacOSX Tiger fixes, reinstalling > the MySQL gem, etc., to no avail. I do NOT have a socket path > specified for my databases in database.yml, as none seems to exist on > my computer. If I do: > > depot> which mysql.sock > > I get ''no mysql.sock in /bin /sbin /usr/bin /usr/sbin'' .... > > SO... anyone else run into this, and what''s the solve? > > Thanks much! > -Bob > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 10/26/05, David Felstead <david.felstead-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Bob - it will be in /tmp/mysql.sockThanks, I''ll give that a shot.> Also, consider trying out Locomotive - > http://locomotive.sourceforge.net - it will save you a LOT of hassle, > especially if you want to use things like RMagick later on.I tried out Locomotive a week or two ago, and installed the latest version last night when I started having problems with mysql.sock. But I''m the kind of guy who likes to solve a problem before I move on, so once I get the mysql.sock issue resolved, I''m more than likely going to leave that where it is and begin using Locomotive exclusively. :-) Appreciate your help! -Bob
Bob, fyi, ''which'' is used to give you the full path to an executable. it only searches those paths specified in the PATH environment variable. you could try ''find / -name mysql.sock'' if you have the ''find'' command available on OSX. On 10/26/05, Bob Sawyer <bobsawyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 10/26/05, David Felstead <david.felstead-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi Bob - it will be in /tmp/mysql.sock > > Thanks, I''ll give that a shot. > > > Also, consider trying out Locomotive - > > http://locomotive.sourceforge.net - it will save you a LOT of hassle, > > especially if you want to use things like RMagick later on. > > I tried out Locomotive a week or two ago, and installed the latest > version last night when I started having problems with mysql.sock. But > I''m the kind of guy who likes to solve a problem before I move on, so > once I get the mysql.sock issue resolved, I''m more than likely going > to leave that where it is and begin using Locomotive exclusively. :-) > > Appreciate your help! > > -Bob > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 10/26/05, Chris Hall <christopher.k.hall-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> fyi, ''which'' is used to give you the full path to an executable. it only > searches those paths specified in the PATH environment variable. > you could try ''find / -name mysql.sock'' if you have the ''find'' command > available on OSX.Ahh... good to know. My CLI experience is limited, I admin. As my boss says: "Sometimes a little knowledge is dangerous." :-) Thanks, -Bob
Indeed. try slocate or locate first. Using find will pretty much thrash the performance of your box by checking every last file. Not so bad for your desktop, pretty terrible for a server... -Matt B On Wed, 2005-10-26 at 10:20 -0400, Bob Sawyer wrote:> On 10/26/05, Chris Hall <christopher.k.hall-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > fyi, ''which'' is used to give you the full path to an executable. it only > > searches those paths specified in the PATH environment variable. > > you could try ''find / -name mysql.sock'' if you have the ''find'' command > > available on OSX. > > Ahh... good to know. My CLI experience is limited, I admin. As my boss > says: "Sometimes a little knowledge is dangerous." :-) > > Thanks, > -Bob > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On 10/26/05, Matthew Beale <mixonic-8rZIAEcCR/xWk0Htik3J/w@public.gmane.org> wrote:> Indeed. try slocate or locate first. Using find will pretty much thrash > the performance of your box by checking every last file. Not so bad for > your desktop, pretty terrible for a server...Also good to know. BTW, in my previous reply, this sentence: ''My CLI experience is limited, I admin'' should read, ''My CLI experience is limited, I admit.'' Not enough coffee today. Thanks, Bob