LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-26-2002, 10:13 PM   #1
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
Advanced Compiling and Uninstallation Of Packages From Source


I was wondering if anybody can point out where I can find an advanced guide on installing and uninstalling applications from source code. This would include things such as using ldd, how to make the installed program look for its libraries in a path other than the current path so that you can have multiple versions of some libraries to achieve compatiblity between applications that use the different versions of the libraries so that none of the applications break due to installation of the latest libraries and so forth, how best to deal with dependencies (without relying on package management systems such as apt). Thanks for your time and waiting to hear from you

PS. Also, what are your options if you want to uninstall a piece of software without breaking the dependencies of other applications. Also, how would you go about doing so if you no longer have your makefile?
 
Old 06-27-2002, 06:56 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
I've never come across a guide like that before. Usually people rely on the contents of the README file that came with the package and previous experiences of compiling programs.
And if you are still stuck then usually searching on the net will give you further clues. Or you can trace what it's trying to do step by step to find out where it runs into problems.

Uninstalling is always a tricky issue. Especially if you don't have any package manager. Without the Makefile or history of what got installed it's virtually impossible. Usually you can still download older versions of certain packages which should get you some kind of makefile that could help in finding out what files to remove. Otherwise it would be up to how lucky you can guess which files belong to which package. In those cases you should always keep backups of the files you are removing in case you got the wrong one.
 
Old 06-27-2002, 10:18 PM   #3
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Original Poster
Rep: Reputation: 31
Any source code (probably slackware) gurus want to add their input? Thanks
 
Old 06-28-2002, 10:14 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
So you don't consider my reply as a valid one? That's insulting
I guess you're right though I only develop programs, I've never worked on building installers/uninstallers.
And what does slackware have to do with a source code guru?
 
Old 06-28-2002, 07:17 PM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Quote:
I was wondering if anybody can point out where I can find an advanced guide on installing and uninstalling applications from source code.
There is none but common sense. If a developer was a losy bustard he may not include even a Makefile, so you better watch the output of compilation and installation process, another approach, if there isn't make uninstall target, use find to look for references of a particular program. It can get complicated with shared libraries scattered around the system and such; what do you mean by use of ldd? ldd is for dynamic linking - it mostly used to see what libraries are invoked when executable is launched.
 
Old 06-29-2002, 08:39 AM   #6
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Original Poster
Rep: Reputation: 31
Sorry. My mistake about the ldd and Slackware parts. But you get the gist of my question Maybe a better way to put it is how to be able to have several versions of the same library installed at the same time and how to tell a program where to look for its libraries when you are configuring/compiling it. A bit like sand-boxing. Thanks for you time
 
Old 06-29-2002, 09:31 AM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
ok, most developers allow you to secify --prefix=/where/you/want/to/install/app
it is usually done during ./configure step
./configure --prefix=/opt/app/ for instance
then if hte shared libs are getting installed in /opt/app/lib for example you just edit your /etc/ld.so.conf file to include /opt/app/lib
and run /sbin/ldconfig to configure run-time bindings, hence let the system know where to look for shared libs in run-time (/etc/ld.so.conf is read during this step).
 
  


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
software for compiling source packages hdo781 Debian 4 02-16-2007 10:54 AM
compiling from source and devel packages acedreds Linux - Software 1 09-22-2005 11:27 AM
optimizing slack (compiling packages from the source ISO disk) saurabhp_75 Slackware - Installation 1 02-28-2005 05:19 AM
Uninstallation of the installed packages? wittyguysuku Linux - Newbie 3 08-24-2004 04:55 AM
compiling from source vs. binary packages oldi Linux - Newbie 4 06-04-2004 10:54 AM


All times are GMT -5. The time now is 03:43 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