LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   RPM's and dependencies (https://www.linuxquestions.org/questions/linux-general-1/rpms-and-dependencies-293569/)

Avatar33 02-22-2005 04:53 PM

RPM's and dependencies
 
Hi

I'm trying to install the Disk Archive program (DAR) and it requires Libbzip2.
Code:

rpm -q bzip2
reveals that I have bzip2 installed but this is not good enough for DAR.
I think DAR needs the bzip2/libbzip2 shared library installed.

So I dowloaded bzip source from here: ftp://sources.redhat.com/pub/bzip2/v...2-1.0.2.tar.gz

I then built the source with make, but when calling
Code:

make install
I get the following error:
Code:

ln: `/usr/bin/bzless': File exists
make: *** [install] Error 1

This makes sense since I have not yet removed the bzip package. When I run
Code:

rpm -e bzip2
I get
Code:

error: Failed dependencies:
        bzip2 is needed by (installed) info-install-4.7-2mdk
        bzip2 >= 0.9.0c-2 is needed by (installed) rpm-4.2.2-15mdk
        bzip2 >= 1.0 is needed by (installed) perl-URPM-1.03-1mdk
        bzip2 >= 1.0 is needed by (installed) rpmtools-4.5-25mdk

What am I supposed to do in this situation?
Is there a way I can replace the Bzip package with the binaries/libraries that I built from source without breaking dependencies?

Any advice would be appreciated.
Thanks
Avatar

acid_kewpie 02-22-2005 04:58 PM

you said it needed libbzip2, yet you're concenred about bzip2? these are not the same thing.... install libbzip2

Avatar33 02-23-2005 02:53 PM

Hi Chris.

libbz2.so.1.0.2 and the bzip2 ar e built from the same source (http://sources.redhat.com/bzip2/).

I've actually solved my problem. Although
Code:

make install
did not manage to copy the binaries to their proper location, it did manage to copy the Libbzip2 library.

So now all is well when I try to build DAR.

Thanks for your help.
Avatar

acid_kewpie 02-23-2005 03:42 PM

so you over installed an rpm insatll with a source one? that's really not a nice way to acheive anything. sure they're built from the same source, i wouldn't doubt they were, but we're dealing with lumps of RPM's, not source installations... and the rpm "bzip2" does not contain the same stuff as "libbzip2"

Avatar33 02-23-2005 05:15 PM

Quote:

so you over installed an rpm insatll with a source one? that's really not a nice way to acheive anything
Ok I won't do it again :-)

Is the conclusion, that you either _only_ use RPM installs or _only_ use source installs?

I often find source installs easier, because finding the exact rpm is a hard task.
For example: DAR also requires that openssl's libcrypto library is installed. When doing a search for this library on the net: the first result I get is http://www.openssl.org which only has a source download option.

Thanks for your help.
Avatar


All times are GMT -5. The time now is 12:14 PM.