|
Ruby 2.6 end of life |
Posted by Compatibility Question on Mar-04-2022 18:51 |
|
Hi,
We love chartdirector and have been using it on one of our apps for nearly 15 years!
Our application support provider is telling us however that we need to migrate shortly from Ruby 2.6 (which is end of life at the end of March 2022), and that they don't think chartdirector will work with versions of Ruby 2.7 and onwards.
Could anyone provide any advice on compatibility?
Thanks,
Phil |
Re: Ruby 2.6 end of life |
Posted by Peter Kwan on Mar-04-2022 23:06 |
|
Hi Phil,
We can try to compile a special build for ChartDirector 6.3 for Ruby 2.7. Would you mind to clarify which operating system you are using (windows, macOS, Linux 32-bit, Linux 64-bit)?
Regards
Peter Kwan |
Re: Ruby 2.6 end of life |
Posted by John Pitchko on Jul-16-2022 22:16 |
|
Could you publish a version for Apple Silicon please? |
Re: Ruby 2.6 end of life |
Posted by Peter Kwan on Jul-20-2022 03:52 |
|
Hi John,
I have done a simple test. I found that the ChartDirector 6 for Ruby for macOS can work with the ruby 2.6 that comes with recent versions of macOS.
(The ChartDirector 6 for Ruby is built for up to to Ruby 2.3. Due to the way Linux and macOS handles shared objects, it can work with later other Ruby versions as long as the Ruby is backwards binary compatible with Ruby 2.3.)
The official ChartDirector 6 for Ruby for macOS release is a universal binary built for the x86_64 and i386 architecture. It is possible to use them on Apple Silicon by using Rosetta to run in x86_64 mode. (The ruby that comes with macOS supports both x86_64 and arm64.)
https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment
From the command line, you can run ruby in x86_64 mode by using something like:
arch -x86_64 ruby somescript.rb
I understand it may be more desirable if it is possible to run in arm64 mode on Apple Silicon. I have compiled an updated rubycdapi23.bundle and libchartdir.so that supports x86_64 and arm64. I have only done a basic test, and it seems to work in my test Apple Silicon machine. You can download it from:
https://www.advsofteng.com/supports/cd6_ruby_macos_x64_arm64_patch.zip
To use it, please replace the rubycdapi23.bundle and libchartdir.so in the official distribution with the files in the download.
Best Regards
Peter Kwan |
|