LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-02-2006, 04:40 PM   #1
boris-78
LQ Newbie
 
Registered: Sep 2006
Location: Pescara, Italy
Distribution: Slackware 12
Posts: 16

Rep: Reputation: 0
Compiling new libraries


Hi all!
This is my first post (^^), and i have a little problem.
I'm using slackware 10.1
When I want to compile a new version of a library, for example pango, or gtk+2, Should I uninstall the old one before or after installing the new one?
Thanks for your help,
Bye Boris
 
Old 09-02-2006, 04:52 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Hi,

And welcome to LQ!


As for the uninstall ... yes, it's most likely a good idea since the
default locations will most likely differ if you install from source;
you'd end up with two versions installed, and which one is being picked
will depend on the order in which the directories are listed in your
/etc/ld.so.conf ... specially if the libs depend on each other in some
way removal of the old stuff would be prudent.


Cheers,
Tink
 
Old 09-03-2006, 06:10 AM   #3
boris-78
LQ Newbie
 
Registered: Sep 2006
Location: Pescara, Italy
Distribution: Slackware 12
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you very much!
 
Old 09-03-2006, 09:17 AM   #4
lotusjps46
Member
 
Registered: Apr 2003
Location: Dallas
Distribution: Vector Linux, Suse 10.1
Posts: 186

Rep: Reputation: 30
Presuming that you are using the usual configure-make-make install process for installing from source code, you might want to use checkinstall instead of make install. Checkinstall makes a Slackware .tgz package at the same time it installs the new software on your system. If you want to remove something you have installed with checkinstall you use the regular utility for uninstalling packages. You can also reuse the package on another Slackware system.

Good luck.

C
 
Old 09-07-2006, 02:26 PM   #5
boris-78
LQ Newbie
 
Registered: Sep 2006
Location: Pescara, Italy
Distribution: Slackware 12
Posts: 16

Original Poster
Rep: Reputation: 0
thanks for the tip. I'm packaging the new software using make pkg, and I'll try checkinstall for sure!
Thank again!
 
  


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
compiling development libraries deadlyhead Linux - Newbie 3 06-05-2005 04:52 AM
Where does compiler look for libraries when compiling Evolution? dhave Linux - Software 2 01-18-2005 12:22 PM
Compiling C code with libraries OldGuru Programming 4 09-18-2004 08:06 PM
What is the magic trick for compiling libraries? jmorse Linux - General 0 06-30-2004 02:24 PM
compiling with shared and static libraries jinksys Programming 1 11-22-2003 05:54 AM


All times are GMT -5. The time now is 09:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration