LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 06-15-2015, 03:37 PM   #1
brdai2008
LQ Newbie
 
Registered: Jun 2015
Posts: 6

Rep: Reputation: Disabled
Installing librsync


Hi folks,

We have RHEL 7 and we need to get librsync installed.

Would you guys be able to help us?

When we try installing an application, we receive the following error:

checking librsync.h usability... no
checking librsync.h presence... no
checking for librsync.h... no
checking for rs_delta_begin in -lrsync... no
Please install librsync

If we check with RPM, we get the following:

[root@localhost src]# rpm -q librsync
librsync-1.0.0-1.el5.x86_64


Any help would be much appreciated .

Thanks
 
Old 06-15-2015, 04:24 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The rpm command you ran shows you have librsync designed for RHEL5 (the "el5" portion of the package name).

You'd need to find librsync for RHEL7 instead. You can't just copy rpm's from system to system when going between major releases.

You could run command to search repositories defined on you RHEL7 system.
To see if there is a package of that name:
yum list librsync
To see if there are files that contain that name in other packages:
yum provides "*/librsync*"

If it isn't in the RHEL7 repositories you might be able to find it elsewhere. On a quick check I did find it in Fedora's EPEL at:
http://dl.fedoraproject.org/pub/epel.../librsync.html

Generally speaking if you're running RHEL you want to get the packages from RedHat's repositories as those would be the "supported" ones. On occasion there are packages you want even though they're not "supported" by RedHat. In which case you need to find a trusted source to get them such as the EPEL or you can find the source code for the package, download the source and compile your own.
 
Old 06-15-2015, 04:29 PM   #3
brdai2008
LQ Newbie
 
Registered: Jun 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks, here is the result:

[root@localhost tmp]# yum install /tmp/librsync-1.0.0-1.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Examining /tmp/librsync-1.0.0-1.el7.x86_64.rpm: librsync-1.0.0-1.el7.x86_64
Marking /tmp/librsync-1.0.0-1.el7.x86_64.rpm as an update to librsync-1.0.0-1.el5.x86_64
Resolving Dependencies
--> Running transaction check
---> Package librsync.x86_64 0:1.0.0-1.el5 will be updated
---> Package librsync.x86_64 0:1.0.0-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ==================================================================================================== ============================================================
Package Arch Version Repository Size
==================================================================================================== ==================================================================================================== ============================================================
Updating:
librsync x86_64 1.0.0-1.el7 /librsync-1.0.0-1.el7.x86_64 124 k

Transaction Summary
==================================================================================================== ==================================================================================================== ============================================================
Upgrade 1 Package

Total size: 124 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : librsync-1.0.0-1.el7.x86_64 1/2
Cleanup : librsync-1.0.0-1.el5.x86_64 2/2
Verifying : librsync-1.0.0-1.el7.x86_64 1/2
Verifying : librsync-1.0.0-1.el5.x86_64 2/2

Updated:
librsync.x86_64 0:1.0.0-1.el7

Complete!


But still, when I run the ./configure, I still get the following:

checking librsync.h usability... no
checking librsync.h presence... no
checking for librsync.h... no
checking for rs_delta_begin in -lrsync... no
Please install librsync
 
Old 06-16-2015, 07:59 AM   #4
sgrlscz
Member
 
Registered: Aug 2008
Posts: 123

Rep: Reputation: 84
Try installing librsync-devel. The librsync package contains the library, and the librsync-devel is the development package, with the header files and development libraries.
 
1 members found this post helpful.
Old 06-16-2015, 08:21 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by sgrlscz View Post
Try installing librsync-devel. The librsync package contains the library, and the librsync-devel is the development package, with the header files and development libraries.
Good point.

The link at EPEL for the other package is:
http://dl.fedoraproject.org/pub/epel...ync-devel.html
 
Old 06-16-2015, 11:31 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
why are you installing it from a downloaded file in your temp folder ?
Code:
yum install /tmp/librsync-1.0.0-1.el7.x86_64.rpm
and WHY did you first use a rhel5 rpm on 7 ?
Code:
Marking /tmp/librsync-1.0.0-1.el7.x86_64.rpm as an update to librsync-1.0.0-1.el5.x86_64
Quote:
but is not receiving updates. You can use subscription-manager to assign subscriptions.
contact redhat and TURN ON the redhat repos
 
Old 06-16-2015, 02:37 PM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by John VV View Post
why are you installing it from a downloaded file in your temp folder ?
...
contact redhat and TURN ON the redhat repos
1) As noted earlier in thread librsync and librsync-devel are not in the RHEL7 repositories so he downloaded from the EPEL. He COULD have set the EPEL as a defined repository but I generally do what he did. Download the file and I need and install locally rather than defining 3rd party repositories so as not to pollute my RHEL install with possibly unsupported versions of software when supported RHEL versions DO exist in the RHEL repositories. (If one doesn't care then why use RHEL at all?)

2) You don't "contact redhat" to turn on the RHEL repositories. You register the RHEL server from the RHEL server itself (assuming you have open entitlements) and manage your repositories at host level.
 
Old 06-17-2015, 08:43 PM   #8
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
What application is this for? Maybe they have a recommendation to help with the install.

Also you can try yum local install.
 
Old 06-18-2015, 08:13 AM   #9
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by JockVSJock View Post
What application is this for? Maybe they have a recommendation to help with the install.

Also you can try yum local install.
OP's issue wasn't with yum installation. It was with attempting to configure another package. That was failing because it couldn't find librsync header file which aren't on RHEL7 by default and aren't in its repositories so he needs to install librsync-devel (and has already installed librsync itself).

Many packages that aren't bundled for the distro's preferred package manager (RPM in the case of RHEL) require you to compile them.
Typically such bundles tar.gz (or tgz) bundles that you download and extract to a directory. You then run a configure script in the extracted directory and that will try to determine if you have what it needs to be compiled and where it is on your distro then generates a makefile (or multiple makefiles). You then run make on the makefile to do the compilation. (Some will also have other makefiles such as makefile.in to run a make against to install the binaries it compiled as well as any other required files into the appropriate directories.

It appears the OP was on the configure step of some such process and it failed because it couldn't find librsync headers, hence the recommendations that followed to get librsync and librsync-devel packages from the EPEL.

By the way for installing downloaded rpms one can use "rpm -i ...." and yum isn't really required though may help in resolving dependencies. I typically do rpm -i because often enough downloaded rpms from 3rd parties have additional dependencies that also are not in the default RHEL repositories. It lets me choose how far I want to go even though it does sometimes run into the "dependency hell" folks used to deal with before the advent of yum.

Last edited by MensaWater; 06-18-2015 at 08:17 AM.
 
  


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
Installing (k)ubuntu-restricted-extras w/o installing java, looking for complete cmd cjae Ubuntu 3 05-20-2014 04:07 AM
Black screen while booting, after installing installing AMD Catalyst™ 12.8 Proprietar agmegharaj Linux - Laptop and Netbook 1 09-27-2012 01:14 PM
Toshiba Satellite 110CS installing pdf reader, installing linux nappy501 Linux - Laptop and Netbook 3 10-11-2008 10:45 AM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM
Installing Mandriva 2006 - Hangs installing hard drive controller nvidia mcp04 sata DanielJPayne Mandriva 7 01-19-2006 02:15 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:25 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
Open Source Consulting | Domain Registration