ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  ChartDirector for OX Snow Leopard
Posted by Will on Sep-02-2009 06:16
I'm unable to get ChartDirector for Ruby to load on Snow Leopard:

>> require 'rubycdapi'
LoadError: dlopen(./rubycdapi.bundle, 9): no suitable image found.  Did find:
./rubycdapi.bundle: no matching architecture in universal wrapper - ./rubycdapi.bundle
from ./rubycdapi.bundle
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from (irb):1

It looks like the system architecture may have changed on upgrade to snow leopard:

>> Config::CONFIG['sitearch']
=> "universal-darwin10.0"

(it was "universal-darwin9.0" on Leopard).

Does ChartDirector need to be recompiled?

  Re: ChartDirector for OX Snow Leopard
Posted by Peter Kwan on Sep-03-2009 00:33
Hi Will,

Currently, we are busy testing ChartDirector with Snow Leopard.

Based on the small number of machines we have tested as of now, we found that ChartDirector for Ruby Ver 5 is compatible with Snow Leopard. It should run without any issue.

In your case, it seems you are using an earlier version of "ChartDirector for Ruby". The earlier version uses "rubycdapi.bundle", while ChartDirector Ver 5 uses "rubycdapi18.bundle" and "rubycdapi191.bundle".

The "no matching architecture" means you are using 64-bit Ruby, but "rubycdapi.bundle" is ony capable of 32-bit operation.

In Mac OS X 10.5 or below, the ruby in Mac OS X is always 32-bit. The "rubycdapi.bundle" supports 32-bit only, so it works.

In Mac OS X 10.6, the Ruby is both 32-bit and 64-bit (universal binary). Whether it will run as 32-bit or 64-bit by default depends on your CPU type (PowerPC, Core Duo, or Core 2 Duo). In your case, the Ruby is probably running as 64-bit. The newer ChartDirector for Ruby Ver 5 contains "rubycdapi18.bundle" that supports both 32-bit and 64-bit, so it should work.

To solve the problem, please try to use the latest version of ChartDirector for Ruby for Mac OS X available from our web site.

Hope this can help.

Regards
Peter Kwan

  Re: ChartDirector for OX Snow Leopard
Posted by Peter Kwan on Sep-03-2009 00:36
Hi Will,

Another possibility I can think of is that you have already downloaded the latest version of ChartDirector, but your "chartdirector.rb" comes from an earlier version of ChartDirector. It is not uncommon for people to copy "chartdirector.rb" to other directories, and when they upgrade ChartDirector, they may forget to upgrade the "chartdirector.rb" scattered in other directories.

Regards
Peter Kwan