<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Guys<DIV>I come to you in a moment of desperation...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>...the caveat is I am a humble c# windows developer with little - no experience with programming for mac, (read a book on objective c once and ran away!) Although I thought that had changed when I turned to ruby.. now I could write programs that ported onto any system.. even better with rails, as I could develop web sites on my pc or one of my macs, great!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I managed to work out how to install all the prereqs: mysql, ruby-mysql-adapter, rails and all dependencies via rubygems and get it working.. yay!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>However when it comes to upgrading, when there is a new release of rails for example; I am in a world of pain! AHHHH! My real underlying problem is I have no clue how all these apps are tied together and I am missing some fundamental knowledge of how OSX and even UNIX does things because I am Bill Gate's bytch. :'-(</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So I ran under bash:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>sudo bash</DIV><DIV>gem update rails --include-dependencies</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>and it updated everything like a dream.. however when I attempted to run any rails app, I got an error complaining that it could not login as no password was being sent. (<FONT class="Apple-style-span" color="#2E5E91" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">Access denied for user: '<A href="mailto:root@127.0.0.1">root@127.0.0.1</A>' (Using </SPAN></FONT><A href="http://www.experts-exchange.com/Databases/Mysql/Q_20649319.html#"><FONT class="Apple-style-span" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"><FONT class="Apple-style-span" color="#2E6112">password</FONT></SPAN></FONT></A><FONT class="Apple-style-span" color="#2E5E91" face="Lucida Grande" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">: NO)</SPAN><FONT class="Apple-style-span" color="#000000" face="Helvetica">)</FONT></FONT></DIV><DIV>So I thought fine; I must need to update the rails-mysql adapter as it is no longer sending the connection string correctly; but this is starting to sound like the UNIX equivalent of DLL hell!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So I upgraded to version 2.7 (ruby) using the bash command:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>gem update mysql</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Which failed instantly, I think something important is missing from my PATH??</DIV><DIV>so I went to the mysql2.7 gem directory and ran:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>ruby extconf.rb --with-mysql-config</DIV><DIV>make</DIV><DIV>ruby test.rb localhost root andmypasswordhere</DIV><DIV>make install</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>unfortunately four of the unit tests failed and now web brick won't even boot. I am sorry to clutter a happy newsgroup with stories of terror, but I desperately need some guidence, firstly in fixing what I currently have, and secondly with an upgrade plan to ensure I don't get my self into this mess everytime I upgrade.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Many Thanks</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Tom Medhurst</DIV></BODY></HTML>