LinuxQuestions.org
Help answer threads with 0 replies.
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 06-05-2002, 08:39 PM   #1
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
help with "downloader for X" and rpm dependencies


I tried to install this program using rpm, but it said that I had dependencie issues. I am assuming that it means libraries, but I don't know what they are or where to get them. Can you also tell me if I can run the rpm file from any location (ie. my home directory) or if the rpm should be in some other directory. Thank you in advance.

here is my input and output:

[root@localhost Randy]# ls
d4x-2.0-1.i386.rpm linux-docs
[root@localhost Randy]# rpm -iv d4x-2.0-1.i386.rpm
error: failed dependencies:
libgcc_s.so.1 is needed by d4x-2.0-1
libstdc++.so.3 is needed by d4x-2.0-1
[root@localhost Randy]#
 
Old 06-05-2002, 08:47 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
As for dependencies you need gcc installed, head to rpmfind.net and download the source rpm for gcc, to build rpms from it use
rpm --rebuild gcc-whatever.src.rpm
after it's done
cd /usr/src/redhat/RPMS/i386
rpm -ihv gcc*.rpm
Just remember that only root can install and build rpms. You can run rpm command from any directory as lons as the path to the actual package is intact.
 
Old 06-05-2002, 09:40 PM   #3
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by neo77777
As for dependencies you need gcc installed, head to rpmfind.net and download the source rpm for gcc, to build rpms from it use
rpm --rebuild gcc-whatever.src.rpm
after it's done
cd /usr/src/redhat/RPMS/i386
rpm -ihv gcc*.rpm
Just remember that only root can install and build rpms. You can run rpm command from any directory as lons as the path to the actual package is intact.
I thought I had gcc installed, I can issue gcc and compile a program. However, I did go to the site to download like you said, but there must have been over 700 listings for gcc-whatever. I had no idea which one to download. Can you please explain a little further please. Thank you.
 
Old 06-05-2002, 11:59 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Ok issue
gcc -v
to see what version of gcc is installed (I'd refer to it as <gcc_version>). Then go over to rpmfind.net and get the following packages libstdc++-<gcc_version> and libgcc-<gcc_version>.
 
Old 06-06-2002, 12:23 AM   #5
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by neo77777
Ok issue
gcc -v
to see what version of gcc is installed (I'd refer to it as <gcc_version>). Then go over to rpmfind.net and get the following packages libstdc++-<gcc_version> and libgcc-<gcc_version>.
[Randy@localhost Randy]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
[Randy@localhost Randy]$

I found libstdc++-2.96-98 on rpmfind.net

I did not find libgcc-2.96-98 on rpmfind.net

does it matter what directory I run the rpm --rebuild gcc-whatever.src.rpm command in. I am assuming the rpm will install the files in the right directories regardless of were I run the command from.

also, If you have the time could you tell me how you knew what rpm packages I needed?? I am trying to learn all I can.

Thank you again for your help.
 
Old 06-06-2002, 12:45 AM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Ok now when you found the packages for libstdc++ and libgcc on rpmfind download them and as root
rpm -ihv /path/to/downloded/libstdc++-version.release.rpm /path/to/downloded/libgcc-version.release.rpm

if there are no more deps problems you are good to compile the d4x.
How I knew? it is from the error message you gave us, I just ran a query on rpmfind.net for the missing libs and found relevant packages, then it is a matter of getting the right version. As for gcc-blah.blah.src.rpm it is a source rpm for gcc which contains all the packages of gcc (some are not needed in most cases like gcc-g77 - fortran compiler, who writes progs in fortran to be compiled by gcc? but anyhow), and building rpms from a source rpm doesn't require you to be in particular directory, just make sure you have enough free space on the partition where /var is located. When you run as root
rpm --rebuild source_rpm-version.release.src.rpm it puts the resulted rpms under redhat OS in /usr/src/redhat/RPMS/<architecture> directory, so to install the built rpms you should switch to /usr/src/redhat/RPMS/<architecture>/ locate the packages and install them with rpm -ihv or if you're upgrading an existent packages rpm -Uhv packagename-version.release.rpm
 
Old 06-06-2002, 01:13 AM   #7
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
But one of the problems is that I can't find libgcc-2.96-98 it only has version 3.x stuff on there. Will it hurt to download version 3 libraries instead of version 2.96 libraries?

Also, I went to search also to see if I could find similar stuff to what you found... I didn't. Everything the search gave me was 3.x stuff??? Oh well, I am sure I will figure it out eventually.
 
Old 06-06-2002, 01:27 AM   #8
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
http://rpmfind.net//linux/RPM/redhat...6-98.i386.html
http://rpmfind.net//linux/RPM/redhat....1-3.i386.html install them with
rpm -ihv --nodeps libgcc-blah.blah.rpm libstdc++-blah.blah.rpm
 
Old 06-06-2002, 01:37 AM   #9
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
Thank you for your help.

I had found both links, but I wasn't sure about using the second because the version was not right. Thanks for confirming.
 
  


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
Where to download rpm packages of "gocr" and "kooka" satimis Linux - Software 6 02-24-2006 12:35 AM
Difference Between "Source RPM" "Static RPM" Mic Q SUSE / openSUSE 2 03-30-2005 07:51 PM
What's the difference between "rpm" and "*.noarch.rpm"? kpachopoulos Linux - Newbie 1 08-12-2004 12:03 PM
Problem with "Downloader for X" Damnit73 Linux - Newbie 4 05-02-2004 02:52 PM
Installation hangs at "Finding Module Dependencies" on several distros patpawlowski Linux - Newbie 1 01-25-2004 11:25 AM


All times are GMT -5. The time now is 04:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration