Archive for October, 2007

Rails and readline problems on Mac OS X

Friday, October 19th, 2007

If you build Ruby on Mac OS X yourself, you may face the following problem once you have downloaded the language's source from ruby-lang.org, compiled/installed it and tried to run your Rails app:

 mike$ script/console

Loading development environment.

dyld: NSLinkModule() error

dyld: Symbol not found: _rl_filename_completion_function

  Referenced from: /usr/local/lib/ruby/1.8/i686-darwin9.0.0b5/readline.bundle

  Expected in: flat namespace

 

Trace/BPT trap 

 

 In order to fix the problem, you need to re-build readline from the source and then rebuild Ruby, linking it to the new readline's installation dir. Here's how you do it:

wget ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz 

tar -xzf readline-5.1.tar.gz

cd readline-5.1

./configure –prefix=/usr/local && make && sudo make install

 

and then rebuild Ruby (you do it in your Ruby source directory of course)

make distclean && configure –with-readline-dir=/usr/local && make && make install   

Once done, everything should be back on track. 

New portal goes online

Tuesday, October 2nd, 2007

Being in development (mostly contents part, not the system itself) for a several months, a kimono-company portal which uses the multi-site system I have developed, have finally went live today :)

The Kyo-roman portal is a portal system for a company which sells kimonos here in Japan - the headquarters and filials (and that's 17 of them!) each got own web-site, with blog and news/events periodicals, centralized articles approval solution and other perks like visual editor and video uploads. Latest news from filial sites are all gathered on the top page of the headquarters' site (hey, it's a portal site, after all :).

Currently, sites of company's filials are pretty minimalistic, but hopefully that will change in the future (it's up to users to add new content from now on).

The system uses Ruby on Rails as development system (specifically, version early version of my Rails-based multi-site system) and is deployed on CentOS-based hosting, Apache 2 + Mongrel cluster.

Well I know this might sound pretty boring (bah.. ANOTHER system online, so what?), but this is actually the first large-scale deployment of the system I've been working on for over a year, so well.. this is kinda exciting for me :)