Wednesday, September 29, 2010

Install DB2 on Mac OS X

I helped to testing ActiveRecord-JDBC with DB2 on my Macmini. But there are two big traps. In this article, I write about the first trap : Install DB2 on Mac OS X. I have researched with IBM developerWorks, Antonio Cangiano's blog, Google and Google.

Choose Installer

I use DB2 Express-C for this test. But, unfortunately, There are no V9.7.x installer for Mac OS X. So I choose the V9.5.2 beta installer.

Monday, September 27, 2010

Qt SDK 4.7.0 was released

1 week ago, Qt SDK 4.7.0 was FINALLY released. In this release, QML is enabled. So we can install Qt, QML and QtCreator straightforward.

When I install the Qt SDK of windows version, I DON'T choose MinGW option because GCC of Ruby DevKit is newer than one of this Qt SDK.

So let's launch sample QML application from QtCreator with Qt 4.7.0.

Saturday, September 18, 2010

Autumn short vacation 2010

I take a autumn vacation, so I suspend posts and comments to this blog for a moment. Resume will be September 27, 2010.

Wednesday, September 15, 2010

confusion of many gem environments

In this article, I installed many Ruby languages on my Macmini. But Confusion of many gem environments occurs. It's the conflict about Ruby1.8's and Ruby 1.9's

$ gem1.9 outdated
/opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/source_index.rb:58:in `from_installed_gems'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:883:in `source_index'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in `initialize'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:841:in `new'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:841:in `block in searcher'
    from :10:in `synchronize'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:840:in `searcher'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:479:in `find_files'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:983:in `load_plugins'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:1139:in `'
    from :29:in `require'
    from :29:in `require'
    from /usr/bin/gem:8:in `
'

It's the bug reported in Debian (see the report) and it may occurs in Mac OS X too. Temporary solution for this bug is, edit the shebang.
$ sudo vi `which gem1.9`
#!/opt/local/bin/ruby1.9 --disable-gems
...
$ gem1.9 outdated
mail (2.2.5 < 2.2.6.1)

That's okay.

Monday, September 13, 2010

IronRuby 1.1 is available, maybe.

IronRuby's latest version is 1.1 (stable version is still 1.0) . This version will be compatible with Ruby 1.9.2.

Really? Show the irb of Ruby 1.9.2.

Next, show the irb of IronRuby 1.1.

Oops, String#encoding is not ready.