Docstoc

GD Library for PHP

Document Sample
GD Library for PHP Powered By Docstoc
					GD Library for PHP | drupal.org                                                    https://drupal.org/node/134331




                          Home » Forums » Support » Post installation


           GD Library for PHP
           sdad - April 6, 2007 - 21:40                                       Post installation · Drupal 5.x


           Status is reporting that GD Library for PHP is not installed. I checked out the
           suggested link, and now I'm here. Very new at all of this, and it doesn't appear that I
           was the target audience for the help page. Please, would someone try to simplify the
           install for me. I feel almost as dense as a black hole.

           Thank you

                                                                  » Login or register to post comments




             ---
             VM - April 6, 2007 - 21:52


             what version of PHP are your runnig on your host ?

             if GD insn't installed on your server you must install it.

             paste this into a new file

             <?php phpinfo(); ?> name the file phpinfo.php upload it to your server and run it
             in your browser to be fed back version inormation as well as settings for PHP on
             your host.

                                                                   Login or register to post comments




1 of 31                                                                                      08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                    https://drupal.org/node/134331



                --
                Mark Gibbens - April 6, 2007 - 21:55


                             if GD insn't installed on your server you must install it

                Is that really necessary, for a simple Drupal install? It's not always possible to
                install GD on shared hosting...

                Mark
                flet.org

                                                                 Login or register to post comments



                     ---
                     VM - April 6, 2007 - 22:33


                     for a simple drupal install probably not. however, im not sure how not
                     having the GD2 library installed will affect the garland theme that uses the
                     colorpicker.module. I was merely responding to the idea that if it was
                     wanted, it would need to be installed. As the user expressed he was brought
                     here by a warning of NOT having GD2 installed.

                     GD was/is part of the PHP package for quite sometime, I'm assuming your
                     host either turned it off, or just chose not to install it.

                     can you confirm whether you are on shared hosting? or whether you are
                     setting up your own server?

                     If on shared hosting you will need them to compile the binaries for you.

                                                                 Login or register to post comments



                        I am setting up my own
                        sdad - April 6, 2007 - 22:35


                        I am setting up my own server. Sounds lethal doesn't it?

                        Barry Demers

                                                                 Login or register to post comments




2 of 31                                                                                     08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                 https://drupal.org/node/134331



                  The version of PHP that I am
                  sdad - April 6, 2007 - 22:09


                  The version of PHP that I am running is 5.1.6. The Status report is saying that I
                  don't have GD installed. That's my issue. I really don't know how to do that, the
                  help page isn't doing me much good.

                  Barry Demers

                                                                Login or register to post comments



                  Additional note - location of file is critical
                  ShedPhotons - November 5, 2007 - 15:46


                  I had the same problem, using Feisty Fawn and PHP5. For some reason, the
                  gd.so file installed to /usr/lib/php5/20060613+lfs/gd.so and Drupal /PHP do
                  not know to look there. I had to copy the file to /usr/lib/php5/ext. I had the
                  same
                  trouble with mysql.so, and spotted something in a comment that gave me the
                  idea to try this. I wonder why appt-get is using the oddball path for .so files?
                  This was after following the other instructions above, of course.

                                                                Login or register to post comments



             --
             Mark Gibbens - April 6, 2007 - 21:52


             The GD Library in PHP is the bit that deals with manipulation of images on the
             server.

             As far as I know, you won't run into any major problems without GD. It'll be a
             problem if you want to add Drupal modules later which can automatically resize
             images you upload. But if you don't need to do that, I wouldn't worry for now.

             Does that help? Shout if you need anything else :)

             Mark
             flet.org

                                                                Login or register to post comments




3 of 31                                                                                  08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                  https://drupal.org/node/134331



                I believe that this website
                sdad - April 6, 2007 - 22:15


                I believe that this website will be quite image intensive. This is a family site, and
                there are a number of shutter bugs within the clan. More importantly though,
                this whole venture is instructional for me. I want to learn as much as I can,
                even if not applicable immediately, I'd like to go through the exercise, just to do
                it.

                Barry Demers

                                                               Login or register to post comments



                    --
                    Mark Gibbens - April 6, 2007 - 22:27


                    OK - well, it sounds like you're going to need to get GD installed on your
                    server - or else move to a server that supports it. What's your situation with
                    hosting?

                    Mark
                    flet.org

                                                               Login or register to post comments



                         I'll be handling the
                         sdad - April 6, 2007 - 22:39


                         I'll be handling the hosting. This is going to be a Community site for next
                         of kin only. Pictures, addresses, events, calendars, blah, blah, blah. I'm
                         shooting for about 33 1/3% up time ;>)

                         Barry Demers

                                                               Login or register to post comments




4 of 31                                                                                   08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                 https://drupal.org/node/134331



                           ---
                           VM - April 6, 2007 - 22:51


                           Those who can give more information on this will need more
                           information from you, since you are your own host.

                           what OS ?

                           if unix, what flavor ? debian, unbutu ...... so on so forth

                           it is probably just a setting you missed during installation..

                                                               Login or register to post comments



                              I am using Ubuntu 6.10
                              sdad - April 6, 2007 - 23:26


                              I am using Ubuntu 6.10 server. The install was supposed to be a
                              LAMP, but I ended up having to install Apache, Mysql, and PHP
                              separately after the fact. I followed the outline given in the
                              documentation, making adjustments for version number along the
                              way. Apparently the GD library was not part of the manual install
                              procedure. So I want to put it in. I don't want to have modules fail
                              because of dependencies. Like I've said though, I don't quite see
                              how this is done since all I'm reading talks about compiling into
                              PHP4, while I am using PHP5. Recompiling PHP5 to accommodate
                              GD just doesn't seem right to me. If GD is significant enough to
                              Drupal, I have to believe that some mention would have been
                              made about this issue along the way. No, I must be missing
                              something, someway to get this library recognized without having
                              to recompile.

                              Barry Demers

                                                               Login or register to post comments




5 of 31                                                                                     08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                    https://drupal.org/node/134331



                                  ---
                                  VM - April 6, 2007 - 23:34


                                  it can't be done without a recompile and restart from what i
                                  understand. You may get a faster definitive answer on the
                                  Unbutu forums with regards to that. I don't run my own server
                                  although I do have a local copy of XAMMP running.

                                                                    Login or register to post comments



                                     Oh, now that makes me real
                                     sdad - April 6, 2007 - 23:37


                                     Oh, now that makes me real sad.

                                     Barry Demers

                                                                    Login or register to post comments



                                         ---
                                         VM - April 7, 2007 - 00:48


                                         consider it a stepping stone in the learning process, you
                                         now know more than you did yesterday : )

                                                                    Login or register to post comments



                                     GD Module
                                     mjohnq3 - April 7, 2007 - 02:18


                                     Did you check to see if the GD Module is in the php/ext
                                     directory? Under Unix/Linux it's probably called gd2.so. If it
                                     is there check to see if it's been enabled in PHP
                                     configuration file under Extensions. The syntax should be
                                     extension=gd2.so, if I remember the Unix/Linux setting
                                     correctly.

                                                                    Login or register to post comments




6 of 31                                                                                     08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                   https://drupal.org/node/134331



                                          solution - enable: gd2.dll
                                          pelikan2402 - May 16, 2007 - 19:08


                                          Exactly! What you need to do is enable
                                          extension=php_gd2.dll in PHP.INI
                                          thanks

                                                                   Login or register to post comments



                                              no that's the windows syntax
                                              twohills - May 24, 2007 - 23:06


                                              no that's the windows syntax

                                                                   Login or register to post comments



                                  Ubuntu package
                                  yelvington - April 7, 2007 - 01:23


                                  You didn't say whether you installed PHP/MySQL from Ubuntu
                                  packages or from source. If the former, install the php5-gd
                                  package. If the latter, reconfigure --with-gd and recompile.

                                                                   Login or register to post comments



                                      Install GD support php5-gd
                                      faqing - April 7, 2007 - 04:03


                                      Install GD support php5-gd in Ubuntu
                                      -----------------
                                      Just type following command to install this module:

                                      $ sudo apt-get install php5-gd

                                      Restart Apache
                                      # sudo /etc/init.d/apache2 restart

                                      for detail, check here:
                                      Install Ubuntu Server on Ubuntu GNOME Desktop to run
                                      Drupal
                                      http://www.thanhsiang.org/faqing/node/51

                                                                   Login or register to post comments



7 of 31                                                                                    08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                            https://drupal.org/node/134331




                                  No Joy
                                  sammons - April 14, 2007 - 15:00


                                  I seem to be in the same situation, however I installed
                                  PHP using the latest LAMP install, so I have PHP 5.1.6.

                                  when I do a sudo apt-get install php5-gd it tells me that
                                  I already have the latest version installed. but my drupal
                                  still tells me "GD library Not installed
                                  The GD library for PHP is missing or outdated. Please
                                  check the PHP image documentation for information on
                                  how to correct this."

                                  so i'm stuck and don't knwo what to do.

                                  :o) Phil

                                  --------------------------------------------------------------------
                                  The two most abundant elements in the world are
                                  Hydrogen and stupidity.

                                                          Login or register to post comments



                                     I am not sure about your
                                     faqing - April 14, 2007 - 15:43


                                     I am not sure about your problem. Try to check
                                     php.ini file whether the "extension=php_gd2" is
                                     enabled. In php.ini ifle, there is one line related to gd
                                     extension.

                                                          Login or register to post comments




8 of 31                                                                              08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                             https://drupal.org/node/134331



                                  That did it!
                                  Ross Bennett - April 21, 2007 - 16:28


                                  That's exactly what I needed. No recompile needed, just
                                  needed the module installed and it was loaded
                                  dynamically at the next restart.

                                  Thanks very much for the pointer. That was the last of
                                  my status issues.

                                  Ross (a total drupal newbie)

                                                          Login or register to post comments



                                     great thread
                                     DaveMere - February 11, 2008 - 14:00


                                     Had the same problem - adding a new dll and
                                     changing the ini file was a load easier than
                                     reinstalling.

                                     Real useful thread, thanks.

                                                          Login or register to post comments



                                  It works to me!!!
                                  castudil - May 6, 2007 - 23:13


                                  now my drupal is at 100% on my ubuntu dapper :)
                                  Thank you!

                                                          Login or register to post comments



                                  Worked perfectly
                                  bmcgee - May 24, 2007 - 05:26


                                  Feisty (7.04) server. Drupal 5.1

                                  Thanks!

                                                          Login or register to post comments




9 of 31                                                                              08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                              https://drupal.org/node/134331



                                  Nothing else needed
                                  bmcgee - July 7, 2007 - 00:50


                                  Thanks again

                                                          Login or register to post comments



                                  Worked for me; thanks
                                  davidpburdette - August 20, 2007 - 19:05


                                  I'm running a Fedora Core system which didn't have apt
                                  on it. But "yum install php-gd" did the trick.

                                  Sometimes all you need is a clue... :-)

                                  -dpb-

                                                          Login or register to post comments



                                  That did the trick on Ubuntu
                                  joachim - May 9, 2008 - 12:15


                                  That did the trick on Ubuntu 7.10.
                                  Thanks!

                                                          Login or register to post comments



                                  6.2
                                  natem50 - May 19, 2008 - 14:58


                                  Interestingly enough, I didn't have this problem until I
                                  installed the lastest Drupal release of 6.2. Thanks for the
                                  help!
                                  www.thevillagedj.com
                                  www.softballhelp.net

                                                          Login or register to post comments




10 of 31                                                                              08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                      https://drupal.org/node/134331



                                              Thanks! php5-gd help
                                              stoczko - October 13, 2009 - 08:00


                                              I followed these steps, restarted apache2, and voila! all
                                              working and up to date.

                                              Struggled with this for quite awhile, before getting this
                                              nice & easy solution.

                                              Thanks!!

                                                                      Login or register to post comments



             Awesome
             garg_art - May 9, 2007 - 23:28


             I am an old man and a newb like just arrived on linux world. And installed linux and
             drupal and this just removed the last hurdle of GD alert. I am still wondering how
             to get cron up by themselves and what would they be for a standard drupal.
             Second item I still need to find is how to set up a simple email so that drupal can
             send and receive emails.

             Like your style of spoonfeeding. Works for people like me.

                                                                      Login or register to post comments



                Use poormanscron module
                iyan - April 17, 2008 - 04:43


                Just in case you haven't found how to make Cron up for themselves, you can
                use this module http://drupal.org/project/poormanscron

                                                                      Login or register to post comments




11 of 31                                                                                      08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                 https://drupal.org/node/134331



             How to fix Drupal problem with unrecognized image
             toolkit
             Kipp Elliott Watson - June 13, 2007 - 01:59


             I had this same problem. I use Windows XP and basically the latest versions of
             PHP, Apache, MySQL and Drupal. I went to the Windows XP control panel where
             you can add or change installed programs. I found the line(s) for PHP and selected
             change. A lovely window popped up and it was a piece of cake to find the GD2
             module that was not installed by default. I selected this one module from the
             change application and everything was hunky dory after that (I even remembered to
             restart the Apache Server this time!). I hope this helps you.

             Oh, I forgot to mention you may have to edit a line or two in php.ini. I have not
             actually confirmed this because I had edited this file before I came up with this fix.

             Kipp Elliott Watson

             for free downloads of award-winning information management software products,
             visit www.whistlingcow.com and www.kronolog.com

                                                               Login or register to post comments



                Debian 4.0 etch
                herfjonez - July 10, 2007 - 18:04


                On my Debian 4.0 Etch system with the latest Drupal (5.x) and php4,
                I needed to:

                $ sudo apt-get install php4-gd

                and I did a:
                $ sudo /etc/init.d/apache2 reload

                for good measure. I did not need to edit php.ini.

                -hj

                                                               Login or register to post comments




12 of 31                                                                                 08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                    https://drupal.org/node/134331



                    I also have Debian Etch,
                    Lloyd Standish - September 16, 2007 - 18:43


                    I also have Debian Etch, Drupal 5.2, php4, but I did have to edit php.ini to
                    enable gd.

                                                                  Login or register to post comments



                       i'm might sound stupid, but
                       Sakrecoer - February 17, 2008 - 03:20


                       i'm might sound stupid, but i'm not to fit with all this:
                       where is this php.ini file located?

                       thanks in advance!

                       /reSet

                                                                  Login or register to post comments



                           =-=
                           VM - February 17, 2008 - 03:21


                           depends on your system really. Sometimes there is more than one.
                           Check your PHP documentation. or scan your folders for php.ini
                           may also do a phpinfo() from your webroot to find its location.

                           more information about how to use phpinfo() found in the first
                           comment in this thread.

                                                                  Login or register to post comments



                           All config files are usually
                           SeanA - March 17, 2009 - 17:22


                           All config files are usually found somewhere under /etc.

                                                                  Login or register to post comments




13 of 31                                                                                    08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                https://drupal.org/node/134331



             Very Helpful
             web_peon - June 25, 2007 - 01:12


             Thanks for the help.

                                                                Login or register to post comments



             DRUPAL 5.x PHP 5.x GD Library
             edelarey - September 4, 2007 - 08:07


             [PHP_GD2]
             extension=php_gd2.dll

             To get the GD Library functioning in PHP the above must be added to the PHP.ini
             file.

             It is not enough to have only the line: extension=php_gd2.dll

             It Seems the tag [PHP_GD2] is vitally important.

             This line is added by changing the PHP setup from change/Remove programs in
             windows setup.
             I presume it is not doing any other configuration.

             I encountered this problem because I added GD library support after PHP install
             and configuration.

                                                                Login or register to post comments



                edelarey nailed it
                mrweaver - March 31, 2008 - 17:51


                I found this post and it solved my problem. I was going nuts trying to figure
                out why I couldn't get PHP to read php_gd2.dll. Going in through the control
                panel and change/remove programs was the key.

                Thanks!

                mrweaver

                Finished products are for decadent minds. -- Isaac Asimov

                                                                Login or register to post comments




14 of 31                                                                                08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                     https://drupal.org/node/134331



             WAMP
             daniel_h - October 6, 2007 - 16:41


             In you (the reader who googled to this page with the same issue) are using a ...
             WAMP Server
             ... for local testing, you merely need to uncomment the
             ;extension=php_gd2.dll
             line in your php.ini file. The .dll is already there.
             Have fun.

                                                                     Login or register to post comments



                WAMP Server
                Tony Budak - November 24, 2007 - 21:00


                Newbie here, using WAMP, I don't know how to uncomment the
                ;extension=php_gd2.dll

                Please explain?

                Cheers,
                Tony
                www.clnews.org

                                                                     Login or register to post comments



                    Remove ; (in php.ini,
                    Karel - November 24, 2007 - 23:04


                    Remove ; (in php.ini, comments are sometimes semicolons ; not #)

                                                                     Login or register to post comments



             Mac OS 10.5 GD library for PHP is missing
             jreed510 - July 6, 2008 - 05:07


             I tried uncommenting ;extension=php_gd2.dll but it did not help me. Based on the
             comments above I'm guessing this extension only applies to windows? I'm running
             Leopard. Does anyone have any fixes that work for OS 10.5?

             Thanks

                                                                     Login or register to post comments



15 of 31                                                                                     08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                  https://drupal.org/node/134331




             Had the same problem.. and solved it
             tienuzz - July 9, 2008 - 23:21


             Using my own at home server, ubuntu 8.04 server.

             PHP 5.2.4

             I changed the php.ini (/etc/php5/apache2/php.ini)

             I gave this pathname on this row that can be found in the php.ini:

             ;Directory in witch the loadable extensions (modules) reside.
             extensions_dir = "usr/lib/php5/20060513+lfs/"

             In this dir is the gd.so located used by drupal.

             Grz Mrt

                                                                Login or register to post comments



                 That usually doesn't apply
                 Djamu - August 28, 2008 - 15:43


                 Changing this is quite useless actually -you probably forgot to reload apache(2)
                 after installing the stock GD libs. Any module inside /usr/lib/php5/ is considered
                 a valid location.
                 You can check loading of the modules by typing > sudo dpkg -L php5-gd

                                                                Login or register to post comments



                 gd.so in php.ini
                 teh_catt - January 14, 2010 - 17:14


                 for info I also had to add in a line in my php.ini file to load the extension before
                 this solution worked:

                 extension=gd.so

                 then restarted apache2 and bingo all my lovely thumbs have returned.

                                                                Login or register to post comments




16 of 31                                                                                  08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                     https://drupal.org/node/134331



             How to, install complete bundled GD libs on Debian /
             Ubuntu
             Djamu - August 28, 2008 - 15:58


             Following only applies to debian / ubuntu installations, and will install the complete
             bundled ( forked ) GD libraries.

             Installing the stock php5-gd ( apt-get install php5-gd ) package only installs the
             Boutell's version of GD library -the non forked php version- ( so no imagerotate
             etc... goodness )

             So there's 2 alternatives
             1. Compiling bundled forked version > which is not for the occasional CLI user.
             2. The easy way > install a pre-compiled version in 3 easy steps.
             Open a command line interface & add following 2 lines to /etc/apt/sources.lst

             deb http://packages.dotdeb.org stable all
             deb-src http://packages.dotdeb.org stable all

             then run > apt-get update
             run > apt-get install php5-gd
             ( it will complain about non-authenticated sources .. just ignore, it will also update
             some additional php libs , keep local modified php.ini )

             run > /etc/init.d/apache2 restart

             done ... you'll enjoy this one

             modified packages come from > http://www.dotdeb.org/ > they provide upgraded
             packages for LAMP stacks

             Djamu

             --------------------------------------------------------------------------------------------------
             Windows, the only virus you pay for
             http://3d.uk.to

                                                                  Login or register to post comments



                Thanks
                jordiestrada - September 29, 2008 - 19:54


                The solution works great.

                                                                  Login or register to post comments



17 of 31                                                                                      08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                https://drupal.org/node/134331



                Thanks Djamu
                Francewhoa - November 22, 2008 - 00:28


                Thanks Djamu your solution works for me.

                Here is the steps for Ubuntu Server 8.04.1 and PHP5. Like Djamu said it will
                install a GD pre-compiled working version. It is a complete bundled (forked) GD
                libraries:

                1. If not already done removing your current GD package and its configurations.
                sudo apt-get --purge remove

                2. Adding 2 lines to your file /etc/apt/sources.lst

                 deb http://packages.dotdeb.org stable all
                 deb-src http://packages.dotdeb.org stable all


                3. Updating your current apt-get list
                apt-get update

                4. Installing working GD package.
                apt-get install php5-gd

                It will complain about non-authenticated sources, just ignore, it will also update
                some additional php libs.

                When prompt select keep_current modified php.ini

                5. Restarting Apache
                /etc/init.d/apache2 restart

                Enjoy

                                                                                                ---

                                                                      How to contribute to Drupal.

                                                              Login or register to post comments




18 of 31                                                                                08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                   https://drupal.org/node/134331



                    Thanks Djamu and onopoc
                    _av_ - February 19, 2009 - 17:28


                    Thanks Djamu for php5-gd

                    and

                    onopoc for the link from php.net/manual/en/image.installation.php

                    Daggoo

                                                                Login or register to post comments



                       Good info
                       vjamilloux - February 26, 2009 - 11:37


                       Hi,

                       Thank Djamu, the indications about the installation of the bundled GD
                       package are ok.
                       To verify if the GD - PHP library is really included in the server, display
                       the phpinfo(). You find several things :
                       * additional .ini files parsed presente where are the .ini files are in the file
                       system
                       * In PHP core configuration, there are the expose_php directive = on and
                       the extension_dir directive presente the path directory where the
                       extention libraries are.
                       * there a "gd" table with its settings
                       Bye
                       Véronique

                                                                Login or register to post comments



                    I thought that this didn't
                    mattgilbert - March 19, 2009 - 21:08


                    I thought that this didn't work, until I realized that for me I needed to
                    modify sources.list (with an "i"), not sources.lst. I'm pretty sure
                    sources.lst didn't exist before I tried this.

                    Thanks!

                                                                Login or register to post comments




19 of 31                                                                                   08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                             https://drupal.org/node/134331



                       Typo
                       SeanA - March 27, 2009 - 21:03


                       Yep, sources.lst was a typo... On debian-based distros the repositories
                       for apt are listed in /etc/apt/sources.list. Remember to apt-get update
                       after modifying this file to load in the new package lists!

                                                            Login or register to post comments



                    Thanks you so much for this
                    lakbaytaodev - March 24, 2009 - 03:11


                    Thanks you so much for this wonderful information. Hope to run my Drupal
                    application that needs this kind of stuff.

                    Linux Registered User #383849
                    http://SocialSAM.com

                                                            Login or register to post comments




20 of 31                                                                             08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                  https://drupal.org/node/134331



                    A little nervous...
                    steve02476 - April 24, 2009 - 13:29


                    I have a feeling that Onopoc's message from November 21, 2008 will fix my
                    problem, but it makes me a little nervous also.

                    I have an Ubuntu 8.10 (Intrepid Ibex) system running Drupal 6.10 very
                    nicely. But, in my Drupal Status window, I get the complaint:

                                  GD Image Filtering Low Quality / Poor Performance
                                  The installed version of PHP GD does not support image
                                  filtering(desaturate, blur, negate, etc). It was probably
                                  compiled using the official GD libraries from
                                  http://www.libgd.org instead of the GD library bundled
                                  with PHP.

                    I'm an Ubuntu/linux newbie as well as a Drupal newbie, but it sounds like
                    steps 1,2, and 3 will completely change where apt-get gets new stuff and
                    updates for my Ubuntu box. Is this likely to be ok as time goes on, or will
                    my Ubuntu machine start being pretty different from other Ubuntu machines
                    out there? (Since I'm an Ubuntu dummy it helps me to keep it as close to a
                    stock system as possible, when I need to figure out a problem.)

                    Is there a way I can follow the steps in the November 21 post, and then put
                    my apt-get system back to the way that it was after I've fixed the GD issue?
                    Or is there an alternate way of dealing with the problem without monkeying
                    with the way apt-get works?

                    Thanks a ton, and I realize this is really much more of an Ubuntu question
                    than a Drupal question, so I apologize in advance for posting it here.

                                                                 Login or register to post comments




21 of 31                                                                                  08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                              https://drupal.org/node/134331



                    Careful
                    lorraineflack - May 3, 2009 - 18:12


                    I followed onopocs suggestion. Ignored warnings. It crashed my server.
                    Hmmm...
                    So I'm offline again, while I rollback.
                    It would be nice to find a painless working solution for the Imagefiltering &
                    Imagerotation warnings.
                    This obviously wasn't it for me (debian etch, apache2, drupal6, imagecache).
                    Editing php.ini by wasn't it either.
                    Any more ideas?
                    Or maybe: just leave it alone?

                                                             Login or register to post comments



                    This worked for me also, on
                    morningtime - June 1, 2009 - 12:26


                    This worked for me also, on Hosteurope's Linux XXL 3.0 package with
                    Ubuntu 8.04. No risk, no crash.

                    Ice Scan Electronics
                    Drupal theming & web development services

                                                             Login or register to post comments



                    THANK YOU!
                    seanr - June 6, 2009 - 20:20


                    You totally saved my day! Thank you very much!

                    Sean Robertson
                    webolutionary@webolutionary.com

                                                             Login or register to post comments




22 of 31                                                                              08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                               https://drupal.org/node/134331



                    New steps for Ubuntu Server 8.04.x LTS
                    Francewhoa - August 5, 2009 - 15:40


                    IMPORTANT: New steps for Ubuntu Server 8.04.x LTS can be found at
                    http://drupal.org/node/540838

                    I can't edit my above post (#comment-1120427). So I wrote a
                    handbook. I edited a few typos and added clarifications.

                                                                                               ---

                                                                     How to contribute to Drupal.

                                                             Login or register to post comments



                    Thank you, exactly what I
                    paulgrimshaw - August 10, 2009 - 16:39


                    Thank you, exactly what I needed.
                    P.

                                                             Login or register to post comments



                Thanks Djamo
                Eli-T - May 26, 2009 - 18:39


                I was quite worried by the time I made it that far down the page, but that
                worked great for my Ubuntu 8 install.

                www.thedepartmentofdesign.co.uk

                                                             Login or register to post comments



                thanks djamu
                rocannon - June 6, 2009 - 12:08


                thanks for the dotdeb.org referral. worked easily.

                                                             Login or register to post comments




23 of 31                                                                               08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                https://drupal.org/node/134331



                yay!
                madra - July 20, 2009 - 10:44


                thanks for this. been banging my head against a wall for ages here - trying to
                get PHP to recognise that damned gd_lib.

                your suggestion worked first time for me on ubuntu jaunty

                one thing tho'. on my server anyway, the sources list file is at /etc/apt
                /sources.list not /etc/apt/sources.lst

                madra|bilge|appletalker|herman

                                                              Login or register to post comments



                Maybe for Debian but not Ubuntu
                macrocosm - September 1, 2009 - 11:38


                Dont do this on Ubuntu!

                After adding those dotdeb sources and running apt-get update/upgrade
                commands it will switch your php and mysql to the dotdeb versions ... which
                are most definitely not for ubuntu! This will mess a lot of things up because
                they have different directories for a ton of files ... and unless you want to go
                and change a bunch of stuff by hand its not worth the bother.

                It was pain in the but to remove the cruft from dotdeb on my dev server! Mehh!

                                                              Login or register to post comments



                Great resource! Thank you :)
                norio - December 22, 2009 - 12:29


                Great resource! Thank you :)

                --
                Maxiware CC
                Drupal Development and Design Services

                                                              Login or register to post comments




24 of 31                                                                                08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                               https://drupal.org/node/134331



             [gd] configuration
             ejwensley - September 5, 2008 - 20:00


             I'm running IIS7/PHP5/Drupal6.4. I was having this same problem, even though
             the gd extension was uncommented in php.ini. I found a section earlier on in
             php.ini:
             [gd]
             ; Tell the jpeg decode to libjpeg warnings and try to create
             ; a gd image. The warning will then be displayed as notices
             ; disabled by default
             ; gd.jpeg_ignore_warning = 0

             What solved the problem for me was uncommenting the last line so it looked like
             this:
             [gd]
             ; Tell the jpeg decode to libjpeg warnings and try to create
             ; a gd image. The warning will then be displayed as notices
             ; disabled by default
             gd.jpeg_ignore_warning = 0

             After that the error went away. I'm not sure what that line does, but drupal no
             longer complains about gd anymore.

                                                             Login or register to post comments



             The GD library for PHP is missing or outdated.
             jcrispin - March 27, 2009 - 22:01


             All,
             I have tried everything in this blog to get rid of this error and nothing has worked.
             I have Mac OS 10.5.6 PHP version 5.2.6 I enabled the extension=php_gd2.dll in the
             php.ini file and still nothing works. ANY help would be greatly appreciated. Thanks!

                                                             Login or register to post comments




25 of 31                                                                               08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                 https://drupal.org/node/134331



                Hi jcrispin, a little late
                Djamu - April 28, 2009 - 15:10


                Hi jcrispin, a little late perhaps

                there's a couple of windoz users that don't explicitly state they're on mmm
                windoz....
                anything that ends on .dll is for windows & will never work on OSX / Linux (
                well at least not without wine ... but don't go that route > just ignore all posts
                windows related.

                Windows, the only virus you pay for
                http://3d.uk.to

                                                               Login or register to post comments



             Alternatively you can follow
             vivianspencer - June 11, 2009 - 10:14


             Alternatively you can follow the tutorial here: http://cumu.li/2008/5
             /13/recompiling-php5-with-bundled-support-for-gd-on...

             - Vivian

                                                               Login or register to post comments



                I followed that how to and it
                jdwfly - June 20, 2009 - 20:32


                I followed that how to and it worked for me on a Ubuntu 9.04 Server.

                                                               Login or register to post comments




26 of 31                                                                                 08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                              https://drupal.org/node/134331



             Trapped
             WebmistressM - June 25, 2009 - 17:05


             I tried both this:
             http://www.php.net/manual/en/image.installation.php#90295

             and this:
             http://cumu.li/2008/5/13/recompiling-php5-with-bundled-support-for-gd-on...

             No luck. Im still getting this error. Im a Hardy Heron user (non-Ubuntu server, but
             I am of course using LAMP). In the second step, I get stuck after download. I ran:

             cd php5-5.2.3

             and got "no such file or directory"

             Any ideas?

                                                             Login or register to post comments



                Just do exactly what Onopoc
                Fleshgrinder - July 5, 2009 - 22:21


                Just do exactly what Onopoc wrote in his comment: http://drupal.org
                /node/134331#comment-1120427

                                                             Login or register to post comments




27 of 31                                                                              08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                   https://drupal.org/node/134331



                    I've also had good luck with
                    steve02476 - November 2, 2009 - 14:40


                    From July 5, 2009:

                                  I've also had good luck with the procedure shown by
                                  http://drupal.org/node/134331#comment-1120427

                                  I've been running for weeks now that way, and everything
                                  has worked smoothly.

                                  One thing I did a little different, was after doing the
                                  upgrade, I then removed the two new lines in sources.list,
                                  so that I wasn't continuing to get updates from dot-deb

                                  I don't know if that was a good idea or not, but so far so
                                  good.

                    From October 1, 2009

                                  As of October 1, 2009, I would still say that everything's
                                  working smoothly on my Ubuntu 8.10 (Ibex) system.
                                  However, I just noticed that my PHP version is still at
                                  5.2.9-0.dotdeb.2 and my security people want me to
                                  upgrade to PHP v5.2.11. Although Ubuntu has been busy
                                  self-updating itself in general, clearly that didn't happen
                                  with the PHP because of this procedure. So, I think I will
                                  again do the procedure in http://drupal.org
                                  /node/134331#comment-1120427 and again, I will
                                  remove those two lines afterwards. I'll post an update later
                                  to say how it worked.

                    From November 2, 2009

                                  As of today, this procedure still seems to be working fine,
                                  but the snag with my variation of removing the two lines
                                  from my source.list after doing the manual upgrade seems
                                  to mean that neither Apache nor PHP gets automatically
                                  upgraded when the Ubuntu self-update happens. So, this
                                  time I'm just going to try and leave those two lines in.

                                                                 Login or register to post comments




28 of 31                                                                                   08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                               https://drupal.org/node/134331



                    New steps for Ubuntu Server 8.04.x LTS
                    Francewhoa - August 5, 2009 - 15:47


                    IMPORTANT: New steps for Ubuntu Server 8.04.x LTS can be found at
                    http://drupal.org/node/540838

                    I can't edit my post (#comment-1120427). So I wrote a handbook. I
                    edited a few typos and added clarifications.

                                                                                               ---

                                                                     How to contribute to Drupal.

                                                               Login or register to post comments



                       Dont do this on Ubuntu! After
                       macrocosm - September 1, 2009 - 11:57


                       Dont do this on Ubuntu!

                       After adding those dotdeb sources and running apt-get update/upgrade
                       commands it will switch your php to the dotdeb versions ... which is
                       definitely not for ubuntu! This will mess a lot of things up because they
                       have different directories for a some files ... and unless you want to go
                       and change a bunch of stuff by hand its not worth the bother. For
                       instance PECL was rendered useless among other things.

                       If you read around in dotdeb.org .. they say to not use their sources for
                       ubuntu unless you feel like mucking about a bunch when weird errors
                       arise.

                       Use this instead http://www.howtoforge.com/recompiling-php5-with-
                       bundled-support-for-gd-o...

                                                               Login or register to post comments




29 of 31                                                                               08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                   https://drupal.org/node/134331



                            That's why I suggested an
                            vivianspencer - September 4, 2009 - 16:17


                            That's why I suggested an alternative: http://drupal.org
                            /node/134331#comment-1689734

                            - Vivian

                                                                   Login or register to post comments



             Thank you!
             encho - October 15, 2009 - 15:16


             That worked for me on Lenny.

                                                                   Login or register to post comments



                what worked for me...
                zinasahib - November 25, 2009 - 01:23


                Hi,
                I ran into the same issue, I found what worked for me in this link:
                http://drupal.org/node/256876
                since I am running windows.
                Hope it works for you too...

                                                                   Login or register to post comments




30 of 31                                                                                   08/31/2010 06:42 AM
GD Library for PHP | drupal.org                                                 https://drupal.org/node/134331



             GD Library for PHP
             panthe - February 22, 2010 - 10:12


             Hi,
             I've try this solution in two system.
             For one all is ok (very thank because this system was most important).
             For another machine that we use for the production I've obtained some errors and
             this solution don't work for me.

             php5-gd: Depends: phpapi-20060613+lfs
             E: Damaged pockage

             Have you some suggest?
             Thanks
             Luca Panteghini

                                                                Login or register to post comments



             Fedora
             DarrellDuane - June 18, 2010 - 23:44


             On Fedora 13:

              #yum -y install php-gd


             fixed it.

             Darrell Duane
             d@duane.com
             Drupal Developer

                                                                Login or register to post comments




                                Drupal is a registered trademark of Dries Buytaert.




31 of 31                                                                                 08/31/2010 06:42 AM

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:8
posted:8/15/2011
language:English
pages:31