Portal Home > Knowledgebase > Articles Database > Installing GD, How?
Posted by sloogy, 06-25-2008, 05:47 PM Hello, I have PSM and i just found out that even though they initiated my server they dont support GD on the initially installed apache 2. I really need a simple solution like GD to create simple thumbnails about 4-5 times per day. So PSM offered to downgrade the server to apache 1.X, i'm not sure this is right and needed to be done just to get simple GD functions. I'm with fairly limited server management skills, thats why i have psm. So i googled this topic and found out i can use Cpanel's builtin apache builder to rebuild the same web server with GD, I got this error: file /etc/fonts/conf.d/30-aliases-fedora.conf from install of fontconfig-2.4.1-7.el5 conflicts with file from package fontconfig-2.4.1-6.el5 Error Summary ------------- !! Could not ensure pkglist 'zlib1-devel, expat-devel, gettext, automake19, libstdc++.x86_64, libpng-devel, libopenssl0-dev, expat, openssl, gcc-c++, glibc-devel, libpng-dev, zlib-devel, zlib, bison, autoconf261, gmake, libXpm, libjpeg-devel, openssl-devel, automake, coreutils, libtool-libltdl-devel, libopenssl0, openssl-dev, libtool, patch, libz-devel, libltdl3-devel, libltdl, libjpeg-dev, libopenssl0.9.7-static-devel, pam-dev, libtool-ltdl-devel, libopenssl0.9.7-devel, libltdl-devel, fileutils, libXpm-devel, sed, libXpm-dev, lsof, krb5-dev, flex, glibc-dev, expat-dev, krb5-devel, libstdc++-devel.x64_64, make, libstdc++-dev.x86_64, libX11-devel, xorg-x11-devel, libtool-ltdl, libssl-dev, gd, pam-devel, cpp, xorg-x11-dev, gcc, libopenssl0-devel, ssl-dev, lex, autoconf' !! !! Please visit http://www.cpanel.net/support/could_not_ensurepkgs.htm for help with this error. !! !! Restoring original working apache !! my heart went down to my pants, but the original web server was restored and working as usual... I simply don't know what to do now, since this seems like a too complicated issue for a server newbie to fix, any help / suggestions into getting GD to work with the current server would be great! thanks
Posted by insanelymacintosh, 06-25-2008, 06:17 PM You can try yum install php-gd service httpd restart from the terminal. Not too sure which Linux distro you are using, but this should work with CentOS or Redhat. ------------------------------- ------------------------------- If you have CPanel it will be even easier. Login to WHM via http://yoursite.com:2086 go to : WHM >> Software >> Apache Update You will see a check box that says "Load previous config". make sure you check that!! Then check "GD" Then click "Start Build" Then ...wait. LOL. It will take...
Posted by sloogy, 06-25-2008, 06:19 PM i cant do WHM >> Software >> Apache Update, it didn't work. I might just try yum install php-gd service httpd restart
Posted by sloogy, 06-25-2008, 06:22 PM This cant be good: Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: styx.biochem.wfubmc.edu * updates: mirror.raystedman.net * addons: mirrors.tummy.com * extras: mirrors.tummy.com base 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 951 B 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Excluding Packages in global exclude list Finished Setting up Install Process Parsing package install arguments No package php-gd available. Nothing to do
Posted by insanelymacintosh, 06-25-2008, 06:24 PM I thought you had tried it that way, but was not sure. I have never personally seen that error. But I just did a search and found this: http://www.webhostingtalk.com/showthread.php?t=667647 which might help.
Posted by sloogy, 06-25-2008, 06:30 PM Thanks but this seems a bit too complicated or hugh risk, i wonder why i can't just yum gd, even that gave back an error btw, using centos
Posted by insanelymacintosh, 06-25-2008, 07:06 PM The only reason yum gave you an error was because it could not find the package on the remote yum server. Not because of any error on your server or anything. You can try "yum search gd" and see if anything comes up.
Posted by sloogy, 06-25-2008, 07:13 PM root@server [~]# yum search gd Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: styx.biochem.wfubmc.edu * updates: mirror.raystedman.net * addons: pubmirrors.reflected.net * extras: mirror.anl.gov Excluding Packages in global exclude list Finished gdbm.x86_64 : A GNU set of database routines which use extensible hashing. gdbm-devel.i386 : Development libraries and header files for the gdbm library. gdm.x86_64 : The GNOME Display Manager. glib.x86_64 : A library of handy utility functions. gdbm-devel.x86_64 : Development libraries and header files for the gdbm library. gdk-pixbuf.i386 : An image loading library used with GNOME. gdk-pixbuf-devel.x86_64 : Files needed for developing apps to work with the GdkPixBuf library. gdb.x86_64 : A GNU source-level debugger for C, C++, Java and other languages. gdbm-devel.x86_64 : Development libraries and header files for the gdbm library. glib-devel.i386 : The GIMP ToolKit (GTK+) and GIMP Drawing Kit (GDK) support library. gdk-pixbuf-devel.i386 : Files needed for developing apps to work with the GdkPixBuf library. gd-devel.i386 : The development libraries and header files for gd gd.i386 : A graphics library for quick creation of PNG or JPEG images gdk-pixbuf.x86_64 : An image loading library used with GNOME. glib2-devel.x86_64 : The GIMP ToolKit (GTK+) and GIMP Drawing Kit (GDK) support library sysklogd.x86_64 : System logging and kernel message trapping daemons. gtk-sharp2-gapi.x86_64 : Glib and GObject C source parser and C generator for the creation and maintenance of managed bindings for Mono and .NET gdb.x86_64 : A GNU source-level debugger for C, C++, Java and other languages. gtk-sharp2.x86_64 : GTK+ and GNOME bindings for Mono gdbm.x86_64 : A GNU set of database routines which use extensible hashing. sysklogd.x86_64 : System logging and kernel message trapping daemons. zenity.x86_64 : Display dialog boxes from shell scripts gdb.x86_64 : A GNU source-level debugger for C, C++, Java and other languages. libgdiplus.x86_64 : libgdiplus: An Open Source implementation of the GDI+ API gd.x86_64 : A graphics library for quick creation of PNG or JPEG images gd-progs.x86_64 : Utility programs that use libgd gdbm-devel.i386 : Development libraries and header files for the gdbm library. aspell-gd.x86_64 : Gaelic dictionaries for Aspell. libgdiplus-devel.x86_64 : Development files for libgdiplus rsyslog.x86_64 : Enhanced system logging and kernel message trapping daemons gdb.x86_64 : A GNU source-level debugger for C, C++, Java and other languages. glib2-devel.x86_64 : The GIMP ToolKit (GTK+) and GIMP Drawing Kit (GDK) support library gd-devel.x86_64 : The development libraries and header files for gd kdbg.x86_64 : A GUI for gdb, the GNU debugger, and KDE. kdevelop.x86_64 : Integrated Development Environment for C++/C glib.i386 : A library of handy utility functions. glib-devel.x86_64 : The GIMP ToolKit (GTK+) and GIMP Drawing Kit (GDK) support library. gdbm.i386 : A GNU set of database routines which use extensible hashing. gdbm.i386 : A GNU set of database routines which use extensible hashing. glib2-devel.i386 : The GIMP ToolKit (GTK+) and GIMP Drawing Kit (GDK) support library root@server [~]#
Posted by insanelymacintosh, 06-25-2008, 07:59 PM Umm. I see GD listed, and you can install it. But you will still not be able to access GD via PHP. To be honest I think your best bet will be to try and get the CPanel method working. Other wise the only other way to install gd (for PHP) would be to rebuild PHP from the command prompt which will take some experience because it is somewhat involved. But if you really feel up to building PHP from source from the command prompt then you can download PHP from php.net, untar it (like unzip it), and run ./configure '--enable-magic-quotes' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-wddx' '--enable-yp' '--with-ftp' ... [ with alot more things here depending on what you want installed with php ] make make install ----------------------------- totally try to get it working via CPanel.
Posted by layer0, 06-26-2008, 12:11 AM Just wanted to add that if you want to see your current configure command, just fire up a phpinfo() page or run:
Posted by sloogy, 06-26-2008, 04:19 AM Ok thanks for pointing out gd from that list, any idea on getting that cpanel issue resolved?
Posted by ~ServerPoint~, 06-26-2008, 06:27 AM Sloogy, Fix for that font conflict error is mentioned at the bottom of the url in the error itself. http://www.cpanel.net/support/could_not_ensurepkgs.htm
Posted by jtonsupport, 06-26-2008, 07:23 AM 1. You need to be working as root to install gd. su root 2. I like to keep a copy of my downloaded programs in /usr/local/download So create this directory if you don't already have one. 3. You can download GD from here. 4. First we have to unpack the download. We are going to install it into /usr/local/gd1.3. I've used a pretty cryptic tar command below to do it all in one hit. cd /usr/local/download tar xzf gd1.3.tar.gz -C .. 5. Let's make the GD stuff easy to find: cd .. ln -s gd1.3 gd 6. Now we need to compile everything: cd gd make 7. You can run the gddemo program to check that the installation is working: ./gddemo 8. This demo program generates a gif file: demoout.gif
Posted by foutrelis, 06-26-2008, 07:53 AM What didn't work exactly?
Add to Favourites Print this Article