Hiya - to get the graphics features that the Gallery uses, you'll need to include the GD library in your PHP configure statement & then re-make PHP.
So the steps are:
Configure, make & install zlib-1.2.3 (used by GD)
Configure, make & install jpeg-6b (used by GD)
Configure, make & install freetype-2.3.5 (used by GD)
Configure, make & install libpng-1.2.24 (used by GD)
Configure, make & install libxml2-2.6.27 (not sure if GD needs, but is needed by PHP)
Configure, make &install gd-2.0.35 (you might have to specify the gd configure statement to use jpeg, freetype & png - I can't remember)
Re-configure, make & install php-5.2.5 (copy of my compile statement below)
This is quite a fiddly process - there are some tips about on the web for doing this on the MyBook - here's my tips:
Don't fortget to do make test after make but before make install. It will tell you if things worked right !
There will be some errors for the PHP install - that's coz there are so many options & it takes ages.
Use the following configure statement for PHP:
./configure —prefix=/usr —without-iconv —without-pear —enable-fastcgi —enable-discard-path —enable-force-cgi-redirect —without-mysql —enable-sockets —with-zlib —with-gd=/usr —with-png-dir=/usr —with-jpeg-dir=/usr —with-freetype-dir=/usr
Note: First I had to copy the following files from /usr/local/lib to /lib to get the PHP configure to work.
I also had to copy the file libz.a from /usr/local/lib to /usr/lib
I think installing GD will automatically include the freetype & png support - but if not, then you'll need to install those as well - before configuring GD. see above.
Once PHP is installed you may need to tweak PHP.ini depending on what setup you want - search for PHP.ini on the web & look at the php.ini-dist & php.ini-recommended that come with the php tar file.
Finally run a sample php file from a web directory with the contents <?php phpinfo()?> which will tell you if all is installed - ie the GD library with jpeg, png, zlib support, etc.
Good luck - it does work !