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

Message ListMessage List     Post MessagePost Message

  Chartdirectory/perl not working on aarch64-linux
Posted by Toni Leppa on Jan-27-2022 20:55
Hi!

I have not been able to get ChartDirector to work in freshly created virtual Ubuntu 20.04 where the host is Apple Macbook pro with M1 architecture. The error message when trying to run in ChartDirector/perldemo$ perl simplebar.pl

Can't load './../lib/perlchartdir530i64.so' for module perlchartdir530i64: ./../lib/perlchartdir530i64.so: cannot open shared object file: No such file or directory at /home/www-apache/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/aarch64-linux/DynaLoader.pm line 193.
at ../lib/perlchartdir.pm line 28.
...propagated at ../lib/perlchartdir.pm line 44.
Compilation failed in require at simplebar.pl line 7.
BEGIN failed--compilation aborted at simplebar.pl line 7.

I also tried to copy all files from ChartDirector/lib to ChartDirector/perldemo, the error message remains the same.

Command "perl -V" output is:

Summary of my perl5 (revision 5 version 30 subversion 0) configuration:

  Platform:
    osname=linux
    osvers=5.4.0-96-generic
    archname=aarch64-linux
    uname='linux ubuntu-linux-20-04-desktop 5.4.0-96-generic #109-ubuntu smp wed jan 12 18:07:25 utc 2022 aarch64 aarch64 aarch64 gnulinux '
    config_args='-de -Dprefix=/home/www-apache/perl5/perlbrew/perls/perl-5.30.0 -Aeval:scriptdir=/home/www-apache/perl5/perlbrew/perls/perl-5.30.0/bin'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    optimize='-O2'
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='9.3.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=1
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/include/aarch64-linux-gnu /usr/lib /lib/aarch64-linux-gnu /lib/../lib /usr/lib/aarch64-linux-gnu /usr/lib/../lib /lib
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.31.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.31'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
  Locally applied patches:
    Devel::PatchPerl 2.08
  Built under linux
  Compiled at Jan 25 2022 14:45:18
  @INC:
    /home/www-apache/perl5/perlbrew/perls/perl-5.30.0/lib/site_perl/5.30.0/aarch64-linux
    /home/www-apache/perl5/perlbrew/perls/perl-5.30.0/lib/site_perl/5.30.0
    /home/www-apache/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/aarch64-linux
    /home/www-apache/perl5/perlbrew/perls/perl-5.30.0/l

  Re: Chartdirectory/perl not working on aarch64-linux
Posted by Peter Kwan on Jan-28-2022 00:05
Hi Toni,

Your Perl is of type aarch64-linux (64-bit ARM Linux). It is not Linux (i386/i686) and not Linux (x86_64). You should download "ChartDirector for Perl for Linux (aarch64)". However, we have not uploaded it to our web site yet, so you should not find this release in our server. So you must be using some release that is not suitable for your operating system architecture.

To support your case, I have just updated our web site to include this release. Please download ChartDirector for Perl for Linux (aarch64) from our site and use this release.

I have just tested with a Ubuntu 20.04 on M1, and it works normally. For your reference, the following is what I tried - from creating the VM to executing simplebar.pl.

- Install Multipass (https://multipass.run/) if you have not already done so. This is used to create Ubuntu VM.

- multipass lanuch --name foo
  (Downloads the latest Ubuntu and lanuches it as a VM)

- multipass exec foo -- bash
  (Open a bash shell in the Linux VM)

- wget https://www.advsofteng.net/chartdir_perl_linux_arm64.tar.gz
  (Download ChartDirector for Perl for Linux(aarch64)" from our web site

- tar xvfz chartdir_perl_linux_arm64.tar.gz
  (Extract the files out)

- cd ChartDirector/perldemo
- ./simplebar.pl
  (Run simplebar.pl)

- ls simplebar.*
  (You should see the chart image simplebar.png.)

Hope this can help.

Regards
Peter Kwan

  Re: Chartdirectory/perl not working on aarch64-linux
Posted by Toni Leppa on Feb-24-2022 14:44
Hello and thank you for the prompt answer!

I was able to get the charts working, but one new issue raised:

for some reason I can't get my license working with this new build. My original way to insert the code is in the script by using "perlchartdir::setLicenseCode(....)". With this new build now I have also tested adding "chartdir.lic" to /etc.

I still get those yellow bars saying "ChartDirector (unregistered)..."

  Re: Chartdirectory/perl not working on aarch64-linux
Posted by Peter Kwan on Feb-24-2022 22:27
Hi Toni,

Please try:

print perlchartdir::setLicenseCode(....);

It will print out the result of setLicenseCode. If it does accept the license key, it will explains why.

Note that the aarch64 support is introduced in ChartDirector 7. If your license key was issued in or after July 2015, it will work on ChartDirector 7. If your license key is older, the setLicenseCode will explain that the license key is too old and display the maximum version of ChartDirector that it can apply.

The following is old upgrade policy:

https://www.advsofteng.com/purchase_upg.html

If you think your license key should work, please email it to me at pkwan@advsofteng.net. I will test it to see what is the cause of the issue.

Regards
Peter Kwan