Posts Tagged ‘ruby’
Ruby, Ruby, Ruby, Ruby
May 23rd, 2007 Posted 12:05 pm
I don’t particularly like that song called Ruby and I’m completely failing to remember the name of the band but I’ve spent the last two days getting Ruby (plus Rails) up and running locally on Phoenix (my MacBook). It’s working (at last) and I now have a fresh install of Mephisto to play with. I think I might love this software, but I’m scared how long it’s going to take to get RoR running on my web server.
How I Installed Ruby on Rails and Mephisto Locally on Mac OS X
I’d already got PHP and MySQL running by following the instructions in Blog Design Solutions combined with a bit of common sense (basically, I kept hitting buttons and typing stuff until it worked, I may one day write a tutorial on this). Next, I attempted to follow Mephisto’s own installation instructions. Save yourself the hassle and don’t even bother reading them (yet - and to be fair, they probably aren’t that bad if you’ve got some semblance of a clue as to what you’re doing but for instructions that are aimed at people who’ve never run Rails before, they suck), first use these awesome instructions by Dan Benjamininstead to get RoR up and running. I’m clueless with Terminal and it still worked.
With RoR working, I downloaded Mephisto and dropped the whole folder into Sites (which is the bit of Mac OS X intended for running websites). I used these instructions to get SQLite up and running (ignoring the bit about SWIG - basically just typing sudo gem install sqlite3-ruby should do fine if you followed Dan’s method of installing RoR). Then it was time to go back to Mephisto’s crap guide and skip to the bit about configuring the database. Created the database.yml file and then, in Terminal, changed directory so that I was in the mephisto folder (cd sites/mephisto in this case). Perhaps it should have been obvious that I needed to change directory but I had to go to bed and get up again to figure it out. Once I’d done that, I continued following the instructions and found myself with Mephisto installed and working.
I then had no clue how to login and have now updated Mephisto’s crap instructions so that it gives the username and password at the bottom. Time to play.
ETA: A little later, for no apparent reason, my install of Mephisto broke. I started getting NoMethodErrors and basically it equated to the script being unable to find the theme it needed to use. It seems to be a common occurence and there are (overly complicated) ways to fix it. So just in case you’re trying this and it happens to you, you need to use Terminal and type svn export http://svn.techno-weenie.net/projects/mephisto/tags/rel-0.7.3/themes/default/ path/to/mephisto/themes/site-1/simpla --force. That should get things working.
