Unison on ReadyNAS NV+

As part of my backup strategy I discovered I was able to install Unison on my ReadyNAS NV+ raid system. It look a little bit of fiddling around but I got there in the end.First off I upgraded the ReadyNAS to the latest version of the firmware & installed the ssh and apt add-on's. Then I make sure I have the software so that I can compile Unison by ssh'ing into the ReadyNAS and:
$ apt-get install gcc autoconf libtool make bison

Now we Compile Ocaml:
First download ocaml-3.09.2.tar.gz then untar the file and navigate into it.
$ cd ocaml-3.09.2
$ ./configure
$ make world
$ make opt
$ make install

Now Compile Cl75
Download cl75unix.tar.gz:
$ cd cl75unix/src
$ make configure && make world && make install

Compile Unison
Download unison-2.13.16.tar.gz:
$ sed 's/tail/gtail/g' Makefile.OCaml > Makefile.OCaml.mod
$ mv Makefile.OCaml.mod Makefile.OCam
$ make UISTYLE=gtk2 STATIC=true

Comments

Thanks for the instructions

Thanks for the instructions - really helpful !

+1 for the comment on config.guess and config.sub - that helped too.

Installed ocaml-3.12.1, cl175 and Unison 2.40.65

Only note was that I didn't need to sed tail into gtail - in fact this seemed to break things.

Also couldn't compile UISTYLE=gtk2:

File "/usr/src/unison-2.40.65/uigtk2.ml", line 81, characters 26-48:
Error: Unbound module Pango
make: *** [uigtk2.cmx] Error 2

But UISTYLE=text worked well and is fine for my purposes.

works great. thanks a lot.

works great. thanks a lot.

Great - glad you got it to

Great - glad you got it to work!

Thanks so much for posting

Thanks so much for posting this. I was not able to get OCaml to compile until I updated the config.guess and config.sub scripts so that the host was correctly recognized on my sparc NV+.

I downloaded the most recent files from:

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.s...
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.g...

and dropped those files into the config/gnu subdirectory of the OCaml source directory after flagging them executable
(ocaml-3.09.2/config/gnu)

chmod +x config.sub
chmod +x config.guess

After that configure and make ran fine, though on the NV+ the compile took a long time.

Post new comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h2> <h4> <img> <div> <table> <tr> <td> <pre>
  • Lines and paragraphs break automatically.
  • Insert image: [img:node_id align=(left|right) size=(|fullLA|fullPreview|fullSQ|halfLA|halfPO|halfSQ|thirdSQ) action=(popup|link|frame) url=url style="margin:10px;" title=text description=text]

More information about formatting options

 
info@theanthillsocial.co.uk XHTML 1.0 Strict CSS2 WAI