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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-02-2003, 06:59 AM
|
#1
|
Member
Registered: Sep 2002
Location: Australia
Distribution: Suse 8.0
Posts: 50
Rep:
|
right way to install rpm software?
I am trying to install kdevelop that I downloaded from kdevelop.org. I use the command rpm -U rpmname.rpm. And I get greeted with a list of dependencies. So I try to find these rpm's and add them to the command line, these in turn introduce new dependencies, ad near infinitum. This is really, really frustrating, it's taken up to 4 hours trying to install 1 rpm and I still can't install it. So incredibly frustrating.
Is there an easier way to install software than rpm -U?
How would a linux expert go about installing kdevelop 3.0 alpha?
cheers
Rich.
oh my distro is Suse 8.0
|
|
|
08-02-2003, 07:38 AM
|
#2
|
Member
Registered: Jun 2003
Location: Durham, UK
Distribution: Slackware 9, Mandrake 9.1
Posts: 163
Rep:
|
iv always used
rpm -i <filename>
rpm -U is used to upgrade a package, not install it. the dependancies may have appeared because your trying to upgrade using -U, and not install using -i.
rpm's are well known for 'dependancy hell' mind, so have you attempted installing from source?
|
|
|
08-02-2003, 08:09 AM
|
#3
|
Member
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253
Rep:
|
The previous post-er was correct, you are trying to upgrade something that's not there.
I would put all the rpms in one dir and do something like:
rpm -ihv *.rpm
This will install all the rpms in the order needed, provided you downloaded the correct dependencies. Good luck.
|
|
|
08-02-2003, 07:49 PM
|
#4
|
Member
Registered: Sep 2002
Location: Australia
Distribution: Suse 8.0
Posts: 50
Original Poster
Rep:
|
thanks for the replies. Unfortunately it's not exactly what I was looking for. -U option is correct by my reckoning, see the man entry below. I use this option in case I am installing over an old package, one of the things with SUSE is it installs so much 'crap' onto my system that I don't know what is there and what isn't.
rpm -U [install-options] <package_file>+
This upgrades or installs the package currently installed
to the version in the new RPM. This is the same as
install, except all other version of the package are
removed from the system.
Back to the problem, I need to find out how to go about resolving dependencies and downloading the correct rpms. I just last night spent 9 hours using something called apt-get to download about 75mb of kdevelop3 and supposed dependent packages. Well imagine my surprise when I get up this morning and see this:
Fetched 73.3MB in 9h56m1s (2051B/s)
Executing RPM (-e)...
Executing RPM (-Uvh)...
error: failed dependencies:
(null) is needed by xdevel-4.2.0-174
(null) is needed by libpng-devel-2.1.0.12-160
E: Sub-process /bin/rpm returned an error code (38)
So very frustrated, so long and such effort to install 1 piece of software.
Rich.
|
|
|
08-02-2003, 10:22 PM
|
#5
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
your best bet would be to get apt-get for suse to install a program like this that has the dependancy hell...you are correct and you can use rpm -U if you wish as it will be the same as rpm -i, so no this is not what was causing the depedancies problem...
|
|
|
08-02-2003, 11:36 PM
|
#6
|
Member
Registered: Sep 2002
Location: Australia
Distribution: Suse 8.0
Posts: 50
Original Poster
Rep:
|
yep I did use apt-get, it helped a lot, but it still didn't install correctly. There is a package called sp that seems to yo-yo between being installed and not being installed. If I do 'apt-get -f install' it will update this sp package, but then when I do apt-get install kdevelop3 it will again update the sp package and report breakage trying to install the rpms and tell me to do apt-get -f install to fix and so on and so on.
At least apt-get comes close to resolving the dependencies though. it's just that error in my previous post that gives me trouble. What package is <null>, why would it say that?? I tried to install just xdevel package and there seems to be a conflict between xdevel and xf86 so I'm now updating xf86 and will hopefully fix some of the problem, yet another 20MB download :-(. I am about to throw my computer out the window.
Are there any projects in the pipeline that have the potential to alleviate these rpm problems??
|
|
|
08-03-2003, 12:44 AM
|
#7
|
Member
Registered: Feb 2003
Posts: 484
Rep:
|
hey man, take a chill and don't throw the box out the window, ship it to me, i'll pay the postage.
the only rpm, so called apt-get package, that i know of is mandrakes urpmi. this will install all of the deps that are required for the upgrade/install.
for your problem, i guess that i would do an update db of the rpms db first. then try the apt-get install, do another updatedb, and then try the apt-get update/upgrade. i know that with my debian i have to do this sometimes. not the rpm updatedb, but get things in order before i try and update/upgrade. most people that use debian think that apt-get is the best thing in the world, i will say that it is nice, but it still has some bugs. hey it's linux, it's going to have some bugs in it. (better than windows that has lots of the critters running around though).
don't think that really helps much, but you might give it a try.
cheers.
|
|
|
08-03-2003, 09:05 AM
|
#8
|
LQ Newbie
Registered: Jul 2003
Location: Hellas - Crete - Heraklion
Distribution: Red Hat 9
Posts: 24
Rep:
|
About rpm: `rpm -U' is equivalent to `rpm -i' plus that it supports upgrading
packages in case a previous version of the packages is installed (at least that's
how things are with red hat distros). Now, about the dependencies: I see
that you are getting familiar with the term `dependency hell' and what it
means. The best way to overide it as it seems is to download `src.rpm' packages (these are a bit different than `.rpm' packages) and compile them to create '.rpm' packages suited for computer/distro. Now here is a link to
download the `.src.rpm':
ftp://ftp.pbone.net/mirror/ftp.kde.o....0a3-0.src.rpm
login as root (`su', password ...) and `cd' to the directory where you
downloaded the package. Now just issue:
rpmbuild --rebuild kdevelop3-3.0a3-0.src.rpm
and wait for as much as it takes to have the package compiled. By the time
compilation is over you should find some rpms in:
/usr/src/SuSE/RPMS/i386 (or something)
just `cd' in this directory (being root ofcourse) and issue:
rpm -Uvh kdevelop*
That would be all I guess
Cheers,
Dominique
|
|
|
All times are GMT -5. The time now is 11:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|