Rails: Upgrade Passenger for Rails 2.3.3

I recently upgraded a project from Rails 2.3.2 to 2.3.3, after which I started getting strange the following error from Passenger:

undefined method 'rewind' for #<UNIXSocket:0xf6206c18>

After a little Googling, I discovered that I also needed to upgrade passenger from 2.1.2 to the current version 2.2.4. If you’re using RubyGems, this is a quick and easy:

gem update passenger
passenger-install-apache2-module

Once the Passenger installation has finished, be sure to update your apache config to point to the new version of Passenger:

# apache2.conf
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4
PassengerRuby /usr/bin/ruby1.8

Running Aptana Jaxer on Ubuntu 8.04

I’ve not had any time to try out Jaxer yet, but the idea of a single platform for both client and server-side processing sounds good.

On trying to get started, though, one problem I encountered was that the installation instructions on Aptana‘s site didn’t quite get Jaxer running on my default Ubuntu 8.04 install. The reason seems to be the built-in Apache trying to load an external library from /usr/lib

which doesn't exist.

The library in question is libexpat.so.0; however, there is a libexpat.so.1.5.2 installed! You can check this by running:

$ ls -l /usr/bin | grep libexpat

Creating a link to this file in /usr/lib with:

$ ln -s libexpat.so.1.5.2 /usr/bin/libexpat.so.0

seems to have got Jaxer running and the server status looks good. If you're having trouble getting a Jaxer server running on the latest Ubuntu, this might be worth giving a go.

Check your language for GMail IMAP?

Like quite a few others, I was pleased to hear that Google has finally got round to adding IMAP to its GMail service. IMAP means checking and dealing with emails from multiple sources is a lot simpler, as any changes are synchronised back to the server. I patiently waited for the IMAP tab to appear in my settings panel, as Google had announced it would take a few days to activate. After a couple of days, though, I began to wonder if they had forgotten about my one lonely GMail account, and starting browsing the help pages for any hint of what might be happening. By sheer luck, I happened upon this little nugget of info:

To use IMAP, you must have your interface language set to ‘English (US)’.Â

Just in case, I thought, I’d check my language settings. Lo and behold, my GMail account was set to use English-UK. I flicked the language back to English-US, and the IMAP option dutifully popped up in my settings panel.So, if you’re still waiting for IMAP to appear, it might pay to check that your account language settings.