php -m | grep gd -i
cd /usr/ports/graphics/php5-gd
make install clean
Убеждаемся, что все встало:
php -m | grep gd
gd
php -m | grep gd -i
cd /usr/ports/graphics/php5-gd
make install clean
php -m | grep gd
gd
php -i | grep gd -i
/etc/php5/cli/conf.d/gd.ini,
ffmpeg-php gd support => enabled
gd
GD Support => enabled
GD Version => 2.0 or higher
apt-get update;
apt-get -y upgrade;
cd /usr/src
apt-get install -y dpkg-dev devscripts build-essential fakeroot
apt-get source libapache2-mod-php5
apt-get build-dep -y libapache2-mod-php5
cd php5-5.2.6.dfsg.1
sed -i 's/-with-gd=shared,\/usr/-with-gd=shared/' debian/rules
debuild -us -uc # -us unsigned source, -uc unsigned changes
# если же требуется на 64 битной архитектуре собирать 32 битный пакет, то команда будет иной:
# debuild -us -uc -ai386
cd ..
dpkg -i php5-gd_5.2.6.dfsg.1-1+lenny9_i386.deb
cd ..
dpkg -i php5-gd_5.2.6.dfsg.1-1+lenny9_amd64.deb
/etc/init.d/apache2 restart
php -i | grep gd -i
/etc/php5/cli/conf.d/gd.ini,
ffmpeg-php gd support => enabled
gd
GD Support => enabled
GD Version => bundled (2.0.34 compatible)
php -r "imagerotate();"
php -r "imageconvolution();"
echo "php5-gd hold" | dpkg --set-selections
apt-get update; apt-get upgrade
cd /usr/src
wget http://fastvps.googlecode.com/files/php5-gd_5.2.6.dfsg.1-1%2Blenny8_i386.deb
dpkg -i php5-gd_5.2.6.dfsg.1-1+lenny8_i386.deb
wget http://fastvps.googlecode.com/files/php5-gd_5.2.6.dfsg.1-1%2Blenny8_amd64.deb
dpkg -i php5-gd_5.2.6.dfsg.1-1+lenny8_amd64.deb
echo "php5-gd hold" | dpkg --set-selections
/etc/init.d/apache2 restart