LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2014, 02:52 AM   #1
morrgp
LQ Newbie
 
Registered: Apr 2010
Location: Adrian, MI USA
Distribution: Slackware64
Posts: 19

Rep: Reputation: 0
Can't get jpgraph working on slackware 14.1-64


I have php working fine with apache and mysql (mariadb) on slackware 14.1-64 bit. I am having trouble placing jpgraph where php can find it. I currently have it at /usr/lib64/php/jpgraph but php doesn't seem to find it.

Warning: include(pChart/pData.class): failed to open stream: No such file or directory in /var/www/htdocs/copy of index1.php on line 16

Warning: include(): Failed opening 'pChart/pData.class' for inclusion (include_path='.:/usr/lib64/php') in /var/www/htdocs/copy of index1.php on line 16

Can anyone help me with this? Thanks.
 
Old 08-07-2014, 05:33 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 528

Rep: Reputation: Disabled
(1) You are using pChart, not jpgraph? (2) If so, you left off the .php extension for the file you are including (should be pChart/pData.class.php).
 
Old 08-08-2014, 02:44 AM   #3
morrgp
LQ Newbie
 
Registered: Apr 2010
Location: Adrian, MI USA
Distribution: Slackware64
Posts: 19

Original Poster
Rep: Reputation: 0
Wink

You are correct. I have been looking at several graphing programs and being the night was late I used the wrong example. I will continue working on this and will get back if I don't make progress. Thanks for pointing that out.
 
Old 08-09-2014, 01:10 AM   #4
morrgp
LQ Newbie
 
Registered: Apr 2010
Location: Adrian, MI USA
Distribution: Slackware64
Posts: 19

Original Poster
Rep: Reputation: 0
OK. PHP is finding my jpgraph library but I am having other problems. Going back to the jpgraph website I found the following:

Prerequisites for running the library

Any 32bit operating system capable of running PHP5

PHP5, requires version >= 5.1.0 (it might work with earlier versions but this is not officially supported)

Enabled GD 2.x library in PHP installation. This is normally bundled with the PHP5 distribution. It is strongly recommended that you use the included version of GD with PHP5 and not try to install it separately.

Caution

There are known issues so running the library under a 64 bit OS so the library does not officially support any 64 bit OS:es

I have a 64 bit OS and as such, the examples on the jpgraph web site don't work on my machine. I will continue looking at other graphing programs but would like to know what other people recommend. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in getting a jpgraph example to work newbie_0404 Linux - Software 1 06-22-2010 09:04 AM
php jpgraph fails quietly BCarey Programming 2 09-29-2006 05:04 PM
ACID+JPGRAPH problem .heeelp zahra79 Linux - Security 3 06-14-2005 05:07 AM
jpgraph lynger Linux - Software 0 02-11-2004 08:19 PM
jpgraph lynger Linux - Software 4 02-08-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration