Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

php5 gd imagerotate() function

55 views
Skip to first unread message

Joey L

unread,
Jan 27, 2009, 11:50:14 AM1/27/09
to
To All:

I am getting this error on my site:
Fatal error: Call to undefined function imagerotate() in /var/www/html/websites


I was told that i need the imagerotate() function to be enabled in the pre-packaged gd package that i installed.

I found this link in google :
http://digitalconsumption.com/forum/622-PHP-imagerotate-on-Debian

With these steps on how to do it :

apt-get source libapache2-mod-php5
apt-get build-dep libapache2-mod-php5
cd php5-5.2.0/
sed -i 's/-with-gd=share,\/usr/-with-gd/' debian/rules
debian/rules binary
dpkg -i libapache2-mod-php5_5.2.0-7_amd64.deb



But when i get to this step :

 apt-get build-dep libapache2-mod-php5

I get the following error:

Failed to fetch cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 20070407-12:15]/pool/main/libm/libmcrypt/libmcrypt4_2.5.7-5_amd64.deb  MD5Sum mismatch


So my question to you..is How do i get to enable this function ??? How do i get around the MD5Sum error ???? I have found some code to use instead - but i am not much of a php coder....so i was looking for easy solution to my issue.

thanks much.
mjh

Chris Burkhardt

unread,
Jan 27, 2009, 3:10:15 PM1/27/09
to
Joey L wrote:
> To All:
>
> I am getting this error on my site:
> *Fatal error*: Call to undefined function imagerotate() in
> */var/www/html/websites
>
>
> *I was told that i need the imagerotate() function to be enabled in the

> pre-packaged gd package that i installed.
>
> I found this link in google :
> http://digitalconsumption.com/forum/622-PHP-imagerotate-on-Debian
>
> With these steps on how to do it :
>
> apt-get source libapache2-mod-php5
> apt-get build-dep libapache2-mod-php5
> cd php5-5.2.0/
> sed -i 's/-with-gd=share,\/usr/-with-gd/' debian/rules
> debian/rules binary
> dpkg -i libapache2-mod-php5_5.2.0-7_amd64.deb
>
>
>
>
> But when i get to this step :
>
> apt-get build-dep libapache2-mod-php5
>
> I get the following error:
>
> Failed to fetch cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64
> DVD Binary-1
> 20070407-12:15]/pool/main/libm/libmcrypt/libmcrypt4_2.5.7-5_amd64.deb
> MD5Sum mismatch

I don't know why there is an md5 mismatch. Do you have an internet connection so
you can fetch packages from the net instead of the DVD? If so, try commenting
out the CD sources in /etc/apt/sources.list, run apt-get update, and then try again.


> [...]

- Chris


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Joey L

unread,
Jan 30, 2009, 11:20:11 AM1/30/09
to
On Tue, Jan 27, 2009 at 3:08 PM, Chris Burkhardt <ch...@mretc.net> wrote:


I don't know why there is an md5 mismatch. Do you have an internet connection so
you can fetch packages from the net instead of the DVD? If so, try commenting
out the CD sources in /etc/apt/sources.list, run apt-get update, and then try again.


> [...]

- Chris

Thanks Chris - that worked like a charm.
I am trying to recompile the gd2 component of php so i can get imagerotate function working.

I do not think i was able to do that with steps outlined in this email.

Does anyone know what the steps are for a re-compiled gd2 package??? I would like to replace the default htat debian comes with.

thanks

eugenik

unread,
May 18, 2011, 4:40:01 AM5/18/11
to

Joey L wrote:
>
> Does anyone know what the steps are for a re-compiled gd2 package??? I
> would
> like to replace the default htat debian comes with.
>

enabling imagerotate() on debian lenny without recompiling gd from source:
1. download gd.so extention
http://letitbit.net/download/64595.68a085fe54d689564a79f25137e9/gd.so.html
from here (compiled for php5-gd_5.2.6.dfsg.1-1+lenny8_i386, tested on
lenny10_386)
2. backup file usr/lib/php5/20060613+lfs/gd.so
3. replace usr/lib/php5/20060613+lfs/gd.so with file downloaded in step 1
4. block updating gd when use apt-get upgrade:
echo "php5-gd hold" | dpkg --set-selections
(unblock: echo "php5-gd install" | dpkg --set-selections)
5. /etc/init.d/apache2 restart
6. now imagerotate() must work

--
View this message in context: http://old.nabble.com/php5-gd-imagerotate%28%29-function-tp21689140p31644832.html
Sent from the Debian User mailing list archive at Nabble.com.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/316448...@talk.nabble.com

0 new messages