Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I'm trying to understand how to get
librsync
to work (ie. make signature/make delta/patch) under CENTOS 5.8 x86_64 standard (before I eventually try to compile it under windows), but since I'm mainly a Windows/Delphi guy, and given the lack of documentation, I'm having trouble running it.
Can someone tell me how to call librsync? I followed
the intructions
to compile it, which is basically:
$ ./configure
$ make all check
According the echoed output, it worked. I realize it's a library rather than a executable, so now I'm lost: how can I call librsync anyway?
As far as I can see, compiling librsync also resulted in generating an executable called rdiff, I tried calling it under putty, but it won't work either!
Basically you want to make a .c, compile it and link it to librsync.la (using a command such as gcc -o myprogram myprogram.o librsync.la)
Your .c program will include the librsync.h, and call the rs_??? functions that you need.
The rdiff.c
file in the distribution seems to be a good sample. See the Makefile
for the commands to run to compile your program (search for rdiff
inside it).
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.