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

Message ListMessage List     Post MessagePost Message

  Unable to make libchartdir.so work
Posted by Kirill on Nov-02-2017 18:28
Hello,

Trying to run libchartdir.so on CentOS + php7.1

[root@usr modules]# uname -a
Linux kir-01.cloud.servers.com 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@usr modules]# php -v
PHP 7.1.9 (cli) (built: Aug 30 2017 20:06:08) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.9, Copyright (c) 1999-2017, by Zend Technologies

First I've tried downloading Linux (x86_64) version.
php -dextension=/usr/lib64/php/modules/libchartdir.so
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'libchartdir.so' in Unknown on line 0
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) '/usr/lib64/php/modules/libchartdir.so' in Unknown on line 0

After that I've tried downloading Linux (i386/i686) version and there were no any errors when running php -dextension=/usr/lib64/php/modules/libchartdir.so

In phpinfo I see .ini file that includes libchartdir.so extension, but it seems that extension do not work. I've checked chmods and chown of libchartdir.so but everything is okay.

Is there any way to diagnose why extension could not run?

Thank you!

  Re: Unable to make libchartdir.so work
Posted by Kirill on Nov-02-2017 19:06
Beside that I've noticed that all Download links leads to different versions of Charts (5, 6)
library:

http://download2.advsofteng.com/chartdir_php_linux.tar.gz
http://www.advsofteng.com/chartdir_php_linux.tar.gz
http://download2.advsofteng.com/chartdir_php_linux_64.tar.gz
http://www.advsofteng.com/chartdir_php_linux_64.tar.gz

  Re: Unable to make libchartdir.so work
Posted by Kirill on Nov-02-2017 20:32
Sorry, just ignore my last message about "different versions". Is is my bad and my mistake. Question from first message is still actual.

  Re: Unable to make libchartdir.so work
Posted by Kirill on Nov-02-2017 22:31
A little update. Checked error log and I see following messages


[02-Nov-2017 14:24:47 UTC] PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'libchartdir.so' in Unknown on line 0


also tried with absolute path, but still no result....

[02-Nov-2017 14:25:21 UTC] PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) '/usr/lib64/php/modules/libchartdir.so' in Unknown on line 0

  Re: Unable to make libchartdir.so work
Posted by Peter Kwan on Nov-03-2017 00:28
Hi Kirill,

According to the ChartDirector for PHP documentation, for PHP 7.1 on Linux, the extension is "phpchartdir710.dll".

http://www.advsofteng.com/doc/cdphp.htm#phpinstall.htm

The "libchartdir.so" is not a PHP extension. The PHP extension is "phpchartdir710.dll". This extension will use "libchartdir.so" internally.

It is suggested you copy *everything* (all *.dll and *.so and the fonts subdirectory) to your PHP extension directory, then add the line:

extension=phpchartdir710.dll

Please kindly let me know if this can solve the problem.

Regards
Peter Kwan

  Re: Unable to make libchartdir.so work
Posted by Kirill on Nov-03-2017 00:44
Peter, thank you so much! This solved my problem! Have a good day!