problem with viewing survey graphs and needing php compiled --with-ttf

problem with viewing survey graphs and needing php compiled --with-ttf

autor Paula Edmiston -
Počet odpovědí: 0
This may be too off-topic. I hope not.

I am on FreeBSD 4.6-STABLE and Apache/1.3.26

I read a couple of posts here about problems seeing the image graphs produced by surveys.

When I try to view survey results I get an empty image box and when I try to force "view image" I get this error message:

Fatal error: Call to undefined function: imagettfbbox() in /usr/www/users/edmiston/cweb/lib/graphlib.php on line 1320

I even wrote in once and Martin suggested recompiling php with "--with-ttf".

I had this problem with the current release of moodle and also with the Moodle 1.0.9 development (2003042701) I installed on 28 April.

I'm on a commercial web host, pair.com and while they're usually pretty helpful, when I wrote to them about this they wrote back and said I'd have to install php myself to get this switch! I'm already waaay over my head with this stuff but after brooding for a few days and weighing the trauma of such an attempt against my desire to see those graph, I tried it.

I found some instructions that another pair customer posted
http://www.vttrains.com/phphelp/ and followed along until I got to step 6 which says to run the configuration including the various "switches". I ran it and it ended with an error message:

"configure: error: Cannot find header files under usr/local"


Here's what I entered (I entered the same switches that were recommended in the article linked above, but included the ttf):

nice ./configure \
--with-gd=/usr/local \
--with-mysql=usr/local \
--with-config-file-path=/usr/home/edmiston/phpini \
--enable-debug=no \
--enable-track-vars=yes \
--enable-ftp=yes \
--enable-force-cgi-redirect=yes \
--with-ttf


And I'm attaching a copy of the stuff that ran across my screen during the configuration run. Just in case.

I noticed that Martin, at one point
(http://moodle.org/mod/forum/discuss.php?d=614&parent=2600 ), seemed to recommend this:

./configure
--with-mysql
--with-pgsql=/usr
--enable-track-vars
--enable-trans-sid
--with-gd
--with-jpeg-dir=/usr
--with-ttf
--with-zlib-dir=/usr
--with-xpm-dir=/usr/X11R6
--with-freetype-dir=/usr
--with-apxs=/opt/bin/apxs

But the above seemed to me to be in reference to setting up a different php.

I'm pretty confused about all this. Any help anyone could offer would be tremendously appreciated.

best.
Průměr hodnocení: -