LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing a rpm (https://www.linuxquestions.org/questions/linux-newbie-8/installing-a-rpm-745634/)

Zeno McDohl 08-06-2009 02:46 PM

Installing a rpm
 
I'm trying to install duplicity via a rpm:
Quote:

[root@server ~]# rpm -i duplicity-0.5.18-0.fdr.6.i386.rpm
error: Failed dependencies:
librsync >= 0.9.6 is needed by duplicity-0.5.18-0.fdr.6.i386
librsync.so.1 is needed by duplicity-0.5.18-0.fdr.6.i386
Okay, so I downloaded librsync v0.9.8 and the README says:
Quote:

To build and test librsync from the extracted distribution do;

$ ./configure
$ make all check
I finish ./configure:
Quote:

configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/Doxyfile
config.status: creating popt/Makefile
config.status: creating testsuite/Makefile
config.status: creating librsync-config.h
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make all check:
Quote:

signature.test: .........OK
PASS: signature.test
mutate.test: .................................................................................................... OK
PASS: mutate.test
sources.test: .........OK
PASS: sources.test
isprefix.test: OK
PASS: isprefix.test
delta.test: ...........................OK
PASS: delta.test
mksum.test: .........OK
PASS: mksum.test
triple.test: .................................................................................................... ............................................OK
PASS: triple.test
changes.test: OK
PASS: changes.test
==================
All 8 tests passed
==================
make[2]: Leaving directory `/root/librsync-0.9.7/testsuite'
make[1]: Leaving directory `/root/librsync-0.9.7/testsuite'
make[1]: Entering directory `/root/librsync-0.9.7'
make[1]: Leaving directory `/root/librsync-0.9.7'
I get the feeling I'm missing something else, but the README says nothing more about what to do.

Of course the RPM still says
Quote:

[root@server ~]# rpm -i duplicity-0.5.18-0.fdr.6.i386.rpm
error: Failed dependencies:
librsync >= 0.9.6 is needed by duplicity-0.5.18-0.fdr.6.i386
librsync.so.1 is needed by duplicity-0.5.18-0.fdr.6.i386
What did I miss?

XavierP 08-06-2009 02:49 PM

RPMs can only see other RPMs. If you install something via source, the RPM database is unaware of it.
Quote:

If you install from the source package, you will also need:

* Python development files, normally found in module 'python-dev'
* librsync development files, normally found in module 'librsync-dev'
Get the librsync from here: http://rpm.pbone.net/index.php3/stat....i386.rpm.html

Zeno McDohl 08-06-2009 02:53 PM

I'm using CentOS, which RPM is for that? Tried one and got
Quote:

[root@server ~]# rpm -i librsync-devel-0.9.7-10.fc7.i386.rpm
warning: librsync-devel-0.9.7-10.fc7.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
librsync = 0.9.7-10.fc7 is needed by librsync-devel-0.9.7-10.fc7.i386
librsync.so.1 is needed by librsync-devel-0.9.7-10.fc7.i386

XavierP 08-06-2009 04:51 PM

Try here then http://dag.wieers.com/rpm/packages/librsync/ note the instruction at the top: These packages are part of DAG RPM Repository and may depend on other packages. Please consider installing Apt and rpmforge-release to automatically install packages and their dependencies. Only use the package for your distribution and architecture.

See also http://centos.karan.org/el4/extras/s...0-0.9.7-2.html & http://packages.sw.be/librsync/ for other options.

Why haven't you configured Yum to download and install packages for you? http://wiki.centos.org/HowTos/Packag...ment/YumOnRHEL

Zeno McDohl 08-06-2009 05:01 PM

Quote:

Why haven't you configured Yum to download and install packages for you? http://wiki.centos.org/HowTos/Packag...ment/YumOnRHEL
I already have yum installed, but no one has answered my question/issue about it.

http://www.linuxquestions.org/questi...licity-740013/

XavierP 08-06-2009 05:22 PM

I don't use Centos or Duplicity, but I think I may have a solution in your thread.

John VV 08-06-2009 07:22 PM

first "rpm -i librsync-devel-0.9.7-10.fc7.i386.rpm" IS NOT MEANT FOR CENTOS 5.3 That is a VERY VERY old Fedora 7 rpm . although the two share some things and SOME Fedora rpm's do work on centOS ( i have a few fedora rpm -- games -- installed . Most will not work .


see the CentOS 5.3 wiki for the "tips and tricks" & "help "
http://wiki.centos.org/

and the how to for setting up the software repos
http://wiki.centos.org/AdditionalResources/Repositories

also here
http://rpm.pbone.net/index.php3/stat....i386.rpm.html

if you do not use yum to install then you will also need the dependencies
libpthread.so.0
python-boto => 0.9d
ncftp => 3.1.9
rtld(GNU_HASH)
rsync
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
python-GnuPGInterface => 0.3.2
python(abi) = 2.4
libc.so.6(GLIBC_2.4)
rpmlib(CompressedFileNames) <= 3.0.4-1
openssh-clients
librsync.so.1
libc.so.6(GLIBC_2.1.3)
/usr/bin/python
libc.so.6
libc.so.6(GLIBC_2.3.4)
gnupg => 1.0.6

Zeno McDohl 08-06-2009 07:30 PM

I installed it via yum and it doesn't work:
Quote:

[root@server ~]# duplicity
Traceback (most recent call last):
File "/usr/bin/duplicity", line 29, in ?
from duplicity import collections, commandline, diffdir, dup_temp, \
File "/usr/lib/python2.4/site-packages/duplicity/collections.py", line 22, in ?
import log, file_naming, path, dup_time, globals, manifest
File "/usr/lib/python2.4/site-packages/duplicity/path.py", line 653, in ?
import robust, tarfile, log, selection, globals, gpg, file_naming
File "/usr/lib/python2.4/site-packages/duplicity/gpg.py", line 22, in ?
import GnuPGInterface, misc, log, path
ImportError: No module named GnuPGInterface

John VV 08-07-2009 12:29 AM

Quote:

ImportError: No module named GnuPGInterface
GnuPG was not installed
from the dependency list above
gnupg => 1.0.6

Zeno McDohl 08-07-2009 09:45 AM

From what I can see, it's already installed:
Quote:

[root@server ~]# yum install gnupg
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: ftp-stud.fht-esslingen.de
* base: styx.biochem.wfubmc.edu
* updates: mirror.skiplink.com
* addons: styx.biochem.wfubmc.edu
* extras: mirror.linux.duke.edu
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package gnupg-1.4.5-14.i386 already installed and latest version
Nothing to do
[root@server ~]# duplicity
Traceback (most recent call last):
File "/usr/bin/duplicity", line 29, in ?
from duplicity import collections, commandline, diffdir, dup_temp, \
File "/usr/lib/python2.4/site-packages/duplicity/collections.py", line 22, in ?
import log, file_naming, path, dup_time, globals, manifest
File "/usr/lib/python2.4/site-packages/duplicity/path.py", line 653, in ?
import robust, tarfile, log, selection, globals, gpg, file_naming
File "/usr/lib/python2.4/site-packages/duplicity/gpg.py", line 22, in ?
import GnuPGInterface, misc, log, path
ImportError: No module named GnuPGInterface

John VV 08-07-2009 01:53 PM

oops it is , But is this prerequisite
python-GnuPGInterface

Zeno McDohl 08-10-2009 03:34 PM

I don't see that in yum.
Quote:

[root@server weekly]# yum search GnuPGInterface
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: fr2.rpmfind.net
* base: mirrors.cmich.edu
* updates: holmes.umflint.edu
* addons: centos.secsup.org
* extras: mirror.newnanutilities.org
Excluding Packages in global exclude list
Finished
Warning: No matches found for: GnuPGInterface
No Matches found


All times are GMT -5. The time now is 01:33 PM.