System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

What are the prerequisites to make RSYNC work ?

 
Highlighted
Super Advisor

What are the prerequisites to make RSYNC work ?

Hi,

Are there any patches or software I need to install to make RSYNC work ?

Regards,
Berenger
12 REPLIES 12
Highlighted
Acclaimed Contributor

Re: What are the prerequisites to make RSYNC work ?

Hi:

You need to satisfy the runtime depenedencies (and compile-time too, if you compile from source): See:

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-3.0.5/

Regards!

...JRF...
Highlighted
Honored Contributor

Re: What are the prerequisites to make RSYNC work ?

Have you already installed rsync? If not, that's a good starting point.

You can get it from here:
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-3.0.5/
(BE SURE to pay attention to the dependencies list!!)

If you are running 11iv2/11.23, you can get RSYNC from HP at:
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123

If you are running 11iv3/11.31, you can get RSYNC from HP at:
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1131


If you have already installed rsync, are you having trouble getting it to work? If so, what is the problem? Do you get any errors?
Highlighted
Super Advisor

Re: What are the prerequisites to make RSYNC work ?

Thanks for your replies.
I have already installed the RSYNC. Here is bellow the error message that pops up:

# rsync
/usr/lib/hpux32/dld.so: Unable to find library 'libpopt.so'.
Killed
#

Thanks for your help.

Regards,
Berag
Highlighted
Exalted Contributor

Re: What are the prerequisites to make RSYNC work ?

Shalom,

Just because rsync is installed does not mean it will work.

The rsync depot will install with errors.

The links provided to you by JRF and Patrick include two major things:
Install dependencies, which you have met if you have used the same depot they pointed you to.
Run time dependencies, which your error indicates you have not met.

There is no shortcut to running through the list, downloading the dependencies and installing them.

The fun part is some of the dependencies have dependencies.

You need to get them all and install them.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Occasional Contributor

Re: What are the prerequisites to make RSYNC work ?

The link provided for rsync installation on HP-UX 11.31 downloads the one for 11.23.

Where can I get the libpopt.so for HP-UX?

I'm running into the same issue when attempting to run rsync.

root@capleorad# rsync
/usr/lib/hpux32/dld.so: Unable to find library 'libpopt.so'.
Killed

Thanks,
Bryan
Highlighted

Re: What are the prerequisites to make RSYNC work ?

Bryan,

You should really start your own thread...

Not sure why you think the link goes to an 11.23 version - I can see an 11.31 version right here:

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-3.0.6/

As for the error - well it seems entirely likely to me that libpopt is part of the popt package that is listed as a run-time dependency of rsync... you *did* install popt (and gettext and libiconv) as well didn't you??

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
New Member

Re: What are the prerequisites to make RSYNC work ?

I have installed RSYNC and the run-time dependencies. but it still did not work on my hpux11.31 (itanium) box. swlist shows its installed. I restarted the server. rsync did not appear under /etc/services. what do I do?

 

# rsync
sh: rsync: not found.

Highlighted
Acclaimed Contributor

Re: What are the prerequisites to make rsync work?

>sh: rsync: not found.

 

What is the absolute path of rsync?

Highlighted
Honored Contributor

Re: What are the prerequisites to make RSYNC work ?

Try:

/usr/local/bin/rsync

 and if that works, consider adding /usr/local/bin to /etc/PATH for convenience. Or you might symlink /usr/local/bin/rsync to /usr/bin to make sure it is always in the PATH for all users ("ln -s /usr/local/bin/rsync /usr/bin/rsync").

 

Rsync has two main "modes": it can run on-demand through a shell session (preferably ssh, but rsh can also be used), or it can be run as a dedicated rsync server process.

 

When you run rsync with a single colon in remote pathnames like this, you are using the on-demand mode:

rsync -aPz /some/file/or/directory remotehost:/some/remote/directory/
or
rsync -aPz remotehost:/some/file/or/directory /some/local/directory/

 The advantages of on-demand mode are:

  • does not require a separate authentication configuration (if remote shell session works, rsync works too)
  • if ssh session is used as a tunnel for rsync (which is usually the default), the transferred data is protected by SSH encryption
  • does not require a dedicated rsync server process
  • it works very much like scp or rcp, which you may already be familiar with (except that rsync has much more options)

The disadvantage is that it requires a normal user account to exist on the remote host, and on high-volume rsync servers, the number of starting/stopping shell sessions may cause unnecessary load to the system.

 

The other mode is to set up a dedicated rsync server process. When accessing a dedicated rsync server, you use either rsync:// URLs or double colons on the rsync command line. For example:

rsync rsync://user@remotehost/some/directory/or/file /some/local/directory/
or
rsync user@remotehost::/some/directory/or/file /some/local/directory/

 

Setting up a dedicated rsync server process is optional, and that's why installing the rsync depot does not automatically do it for you.

 

You might want to set up a rsync server process if you are planning to set up your system as a high-volume download location (e.g. a world-wide main distribution point for software DVD images) or want to set up some rsync file transfer accounts with no corresponding Unix account on the system.

 

Since the traffic to and from a dedicated rsync server process is not encrypted at all, a rsync server is mostly applicable for public data only, unless you use VPNs or take other steps to secure your rsync server connections.

 

If you choose to set up a dedicated rsync server process, you'll need to:

  • add an entry for dedicated rsync server port to your /etc/services, if it does not already exist (for initrd). Usually, the port is 873/tcp, but you can choose any port you want.
  • configure your inetd (or xinetd) to start the actual rsync server when an incoming connection is detected on the dedicated rsync server port. You'll find examples in rsync documentation: http://rsync.samba.org
MK