LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-16-2005, 05:16 PM   #1
seiyachan
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Rep: Reputation: 0
Dependencies dependency.


Hello,

I am just wondering, when we need to install a program from source in Linux, we need to make sure all the dependencies are satisfied, in which most cases we are required to install those extra packages of dependencies before we could compile a program. So, every time we install a program from source, we have some normally not needed packages installed as well.

Questions:
1. Why dont every developers of a program give a list of dependencies like every package would include a README and INSTALL instruction text file. So we know which lib-devel package we have to have installed ?

2. Is there anyone would include those lib-devel packages into there program`s package so newbies like I am used to be would not have to scratch their head what is going on, and look everywhere to find the dependency packages? and the installation would just be a matter of ./configure, make, make install, and work.

3. And then, after we have compiled the program that depend on the dependencies, can we actually remove the dependencies packages? To save HD space or keep the system slim and clean.

4. I like the concepts behind Linux and open source. And admire and appreciate all the passions people have. I wish I could contribute in the future too. Thank you for answering my questions.

Seiya.
 
Old 06-16-2005, 05:52 PM   #2
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Rep: Reputation: 22
Most good developers do put what the dependencies are. My suggestions to you are this:

1: Get some type of RPM management package. It is much easier in the long run if you install/uninstall a lot of stuff on your machine
2: Switch to the gentoo distro. Portage, the essence of gentoo, basically does away with dependencies. The install process is pretty painful, but well worth it when it's done.
 
Old 06-16-2005, 07:23 PM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
what is your distro? I use Fedora and yum is a blessing. type man yum for more info. You can use it to install programs and what yum does it looks at your system and sees what dependencies you need for that program and installs them as well. I don't think you can uninstall the dependencies and still have the program work, cuz then why would you have needed them in the first place? Even if you could you might run into another program that needs it and would have to go thru the hassle of reistalling it.
 
Old 06-17-2005, 12:44 AM   #4
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
I'd switch to a debian based distro [its what I did]

I have little problems with fixing dependecies now.

All I have to do now is just ./configure and if it says something like

*** Configure error, delayed by previous errors.
*** Configure: Could not find libpng3

I can easily install it by going to root and typing:
root@2[~]# apt-cache search libpng
Code:
Output sample from command:
libpng2 - PNG library, older version - runtime
libpng2-dev - PNG library, older version - development
libpng3 - PNG library - runtime
libpng3-dev - PNG library - development, compatibility package
Then I can easily install it by just getting the development libraries (for libpng3), by doing this:
root@2[~]# apt-get install libpng3-dev

It will automatically download the package from the internet, configure it and install it for you. Then all you have to do is try to ./configure the program that failed earlier, and if it doesn't require any more dependecies, make and install it. (If it has more dependecies rinse and repeat!)

I think it beats having to use google anyday myself...
There is even a graphical version of apt-get if you're unconfortable with using the command line version I showed you above.

Last edited by jon_k; 06-17-2005 at 12:47 AM.
 
  


Reply



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
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM
I recieve a failed dependencies error, but I have all required dependencies Laptop2250 Linux - Software 15 02-03-2004 07:58 PM
c++ dependency tucolino Programming 1 01-01-2004 04:08 PM
dependency kashyaplalit Linux - General 1 03-29-2003 09:30 AM
Dependency: Help! source Linux - Newbie 1 03-17-2003 10:42 PM

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

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