LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2009, 02:31 PM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
Removing GD lib for php


(Using a Fedora 9 platform)

I've installed GD library from libgd.org in order to have jpeg and png support in php

However, from the things I have read, I should have used the gd version that cam bundled with php-5.2 (This is related to a Drupal issue) so I would like to uninstall the gd lib that i installed from libgd.org.

I have installed gd-2.0.35 from source in the /usr/local directory.

I've never uninstalled library files from source before (as opposed to rpm). Can someone point me in the right direction on how to do that?
 
Old 04-27-2009, 04:28 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'gd-2.0.35' has a Makefile with 'make uninstall'.
'cd gd-2.0.35/'
'su'
# make uninstall

If you don't have the (extracted) source code any more,
extract gd-2.0.35.tar.gz and run './configure' .. 'make'
# 'make install' and then # 'make uninstall'.

The /usr/local/ part of 'make uninstall' looks like this :
Code:
  rm -f '/usr/local/bin/annotate'
 rm -f '/usr/local/bin/gdparttopng'
 rm -f '/usr/local/bin/gdtopng'
 rm -f '/usr/local/bin/gd2copypal'
 rm -f '/usr/local/bin/gd2topng'
 rm -f '/usr/local/bin/pngtogd'
 rm -f '/usr/local/bin/pngtogd2'
 rm -f '/usr/local/bin/webpng'
 rm -f '/usr/local/bin/gd2togif'
 rm -f '/usr/local/bin/gdcmpgif'
 rm -f '/usr/local/bin/giftogd2'
 rm -f '/usr/local/bin/bdftogd'
 rm -f '/usr/local/bin/gdlib-config'
 rm -f '/usr/local/include/gd.h'
 rm -f '/usr/local/include/gdfx.h'
 rm -f '/usr/local/include/gd_io.h'
 rm -f '/usr/local/include/gdcache.h'
 rm -f '/usr/local/include/gdfontg.h'
 rm -f '/usr/local/include/gdfontl.h'
 rm -f '/usr/local/include/gdfontmb.h'
 rm -f '/usr/local/include/gdfonts.h'
 rm -f '/usr/local/include/gdfontt.h'
 rm -f '/usr/local/include/entities.h'
 /bin/sh ./libtool   --mode=uninstall rm -f '/usr/local/lib/libgd.la'
rm -f /usr/local/lib/libgd.la /usr/local/lib/libgd.so.2.0.0 /usr/local/lib/libgd.so.2 /usr/local/lib/libgd.so /usr/local/lib/libgd.a
.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Slack 9] Freetype2 support in GD lib (PHP) ilhbutshm Slackware 4 10-06-2005 02:23 PM
Removing .a libraries in /usr/lib/ kunkie Linux - General 1 08-27-2005 11:44 PM
removing php issey Linux - Newbie 2 03-27-2005 03:26 AM
add a lib to php in Red Hat 9 omelin Red Hat 2 08-10-2004 08:12 PM
'PEAR.php' (include_path=''.:/usr/local/lib/php'') SOLVED SOLVED adengua Linux - Software 0 04-02-2004 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration