Friday, May 11, 2007

Installing Instiki on Mac OS X

I was trying to get Instiki running on my Mac OS X machine, but was getting mysterious errors, where the directories to be created weren't being created. I looked closer and discovered that my initial Web object wasn't saving because the color attribute had a value of '008B26' (including the quotes). I fudged the correct value in to test, and then noticed that it couldn't find a template called "'textile'_help", again with the single quotes.
This led me to believe that something was wrong with my SQLite installation, or with the one that Instiki was using. A little more research and I discovered that Instiki has sqlite3-ruby 1.1.0 embedded. I'm running SQLite 3.3.17 on this machine, so there may be some compatibility problems, such as the one that warranted the upgrade to sqlite3-ruby 1.2.1 for users of SQLite 3.3.8 and above mentioned over at RubyForge.
I punted and solved this by switching to MySQL in the database.yml and running "rake migrate". More ambitious souls may want to figure out how to get Instiki to point to a gem installation of sqlite3-ruby instead of a shipped one.

No comments: