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

Message ListMessage List     Post MessagePost Message

  Extension trouble
Posted by gert holtoft on Sep-04-2021 17:53
Hello Mr. Kwan

I've run into ChartDirector (CD) setup issues, I think I've done all the right things (see below). I also use CD on an ubuntu 18.04 / php7.2 and have used the same setup as in it, I am a happy user of CD on the 18.04 and would rather use CD on my Raspberry.I have tried both the 32 and 64 bit version.
Can you kick me in the right direction

with kind regards
Gert Holtoft
http://furesøvejr.dk

##################
PHP configuration file location : "/etc/php/7.3/apache2/php.ini":
    extension_dir="/usr/lib/php/20180731"
    extension="phpchartdir730.dll"


PHP extension directory : "/usr/lib/php/20180731"
contains all files from lib incl. fonts and they are made readable for apache2.

The error:
Error Loading ChartDirector for PHP Extension

It appears this PHP system has not loaded the ChartDirector extension by using an extension statement in the PHP configuration file (typically called "php.ini"). An attempt has been made to dynamically load ChartDirector on the fly, but it was not successful. Please refer to the Installation section of the ChartDirector for PHP documentation on how to resolve this problem.

Error Log

The version and type of PHP in this system does not support dynmaic loading of PHP extensions. All PHP extensions must be loaded by using extension statements in the PHP configuration file.

System Information
Operating System : Linux diversepi 5.10.52-v7l+ #1441 SMP Tue Aug 3 18:11:56 BST 2021 armv7l
PHP version : 7.3.29-1~deb10u1
PHP / Web Server interface : apache2handler
PHP configuration file location : "/etc/php/7.3/apache2/php.ini"
PHP extension directory : "/usr/lib/php/20180731"

My setup:
Raspberry pi 4 model B / 8 GB mem
Newest raspbian os
uname -r:
5.10.52-v7l+
php -v:
PHP 7.3.29-1~deb10u1 (cli) (built: Jul  2 2021 04:04:33) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.29-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies
Chartdirector:
chartdir_php_linux_64.tar.gz

  Re: Extension trouble
Posted by Peter Kwan on Sep-05-2021 04:05
Hi Gert,

The Linux editions of ChartDirector for PHP in our download page are for the "i386/i686" and "x86_64" architectures. For your case, the Linux architecture is "armv7l". So they would not work.

Currently, we have some custom builds for various ARM CPU architectures. See:

https://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1619420755

For your case, the "armhf" architecture should be compatible with "armv7l".

Regards
Peter Kwan