Posted by Graham Stratton
Wed, 02 Aug 2006 18:07:00 GMT
I’ve now completed moving most of my stuff to my new server. So far, this blog has caused me most grief. I spent ages trying to get typo to install. I kept getting the error
checking for sqlite3_open() in -lsqlite3
when trying to install the typo gem. It turned out that not only is one required to have libsqlite3 and libsqlite3-dev installed, but one mustn’t have libsqlite or libsqlite-dev installed. Apparently installing the debian package build-essential is also required.
Posted in Rails, Typo | 3 comments
Posted by Graham Stratton
Mon, 16 Jan 2006 22:18:00 GMT
I have a shiny new weblog! I’m not sure that I approve of the fixed-width design, but I’ll sort that out later.
The blog is powered by Typo, which is built on the Ruby on Rails framework. It took a little bit of installing. The first problem was that irb, the interactive ruby interpreter, was not installed, but in production mode rails does not give you any hints, it just returns status 500 (internal server error) for all requests.
Running in development mode I got a traceback and fixed the problem, but then I again got status 500s with no indication of the problem. Attempting to run the test suite showed the issue: rails not being able to find mysql.sock. I would have thought that happened enough that a useful error message could be given. Anyway, a peek at my.cnf gave the required information, and adding the socket: line to database.yml fixed the problem.
After that it was merely a matter of finding the login code, concocting the correct phrase from some salt and my password, SHA1-ing it, and inserting it into the database. Maybe there was a simpler way.
Posted in Typo, Rails | 2 comments