Dear Federico (and Benjamin),
Benjamin is right and put it very succinctly. Â In case you need some
more hints, I had this problem too, and like you I had grown to love
and rely on this wonderful program! Â I found the solution after
searching around. Â Briefly, don't be afraid to compile your own copy
(on all your machines) so that they are identical, with the same
libraries. Â I found it isn't very difficult. Â
As you mention that you are in a hurry before travelling, I thought it
might help you if I sent you my own notes on how to do this, using the
latest stable version (2.51.2). Â it's possible some of the steps can be
improved, but hopefully this will get you started. Â Good luck, and I
hope you quickly return to the land of Unison-lovers! Â
I hope this is useful! Â Experts might be able to improve on this
recipe. Â
Best wishes,
Richard
This procedure was adapted from that given in https://eric.blog/2017/08
/25/how-to-install-unison-2-48-on-ubuntu/
sudo apt update
sudo apt install ocaml make
This is sufficient to compile the text-only version. An attempt at this
point to build a graphical version fails in linking with a library
error. The OCaml library lablgtk is required, as explained in the
Unison manual (http://www.cis.upenn.edu/~bcpierce/unison/download/relea
ses/stable/unison-manual.html).
For the GTK graphical version, add the following libraries:
sudo apt install libgtk2.0-dev liblablgtk2-ocaml liblablgtk-extras-
ocaml-dev
(In total about 115 MB is downloaded, including dependencies, occupying
around 650 MB when installed. Â This amount may depend on which desktop
environment you use and therefore which dependencies get downloaded in
addition to what you ask for.)
Check the latest release version at https://github.com/bcpierce00/uniso
n/releases/ (currently 2.51.2). Then download the source code into
<your own favourite directory> ...
cd <your own favourite directory>
wget https://github.com/bcpierce00/unison/archive/v2.51.2.tar.gz
OR
curl -O https://www.seas.upenn.edu/~bcpierce/unison/download/releases/s
table/unison-2.51.2.tar.gz
OR download the source using a web browser
tar -xvzf unison-2.51.2.tar.gz
Now compile Unison itself using
cd unison-2.51.2/src/
make
../unison -versionÂ
The command ./unison -version is merely to make sure it built
correctly.  make creates the graphical GTK version (and warns about
some deprecated language features).  make UISTYLE=text can be used if
desired to compile a text-only version (both are named unison).
To deploy it, move the compile binary to /usr/local/bin/, which should
be at or near the start of the $PATH and is probably empty or almost
empty (at least on my Ubuntu, Mint and Debian systems). This will
ensure the newly compiled version is used in place of any older version
already installed (e.g. by apt).
sudo mv unison /usr/local/bin/
A new shell might need to be started before the new version is used.
unison -version
cd /usr/local/bin
sudo ln -s unison unison-2.51
The symlink appears to be necessary, perhaps to ensure that the binary
can be found on the server after being contacted by the program when
started on a client. Optionally, add the newly compiled Unison to the
main Menu, using Preferences -> Main Menu (or whatever your distro
provides) or run it using unison & at the command prompt.
On Fri, 2018-06-29 at 09:33 -0400, 'Benjamin C. Pierce'
Post by 'Benjamin C. Pierce' ***@cis.upenn.edu [unison-users]This looks like the usual problem that arises when Unison is compiled
on the client and server with incompatible versions of OCaml. You
need to make sure that either both machines have an ocaml version <
4.02.1 or both have a version >= 4.02.2.
- Benjamin
Post by Federico Marchetti frdx-***@usa.net [unison-users]Â
The complete error message, as observed on my other laptop, is
Â
Unison failed: Uncaught exception Failure("input_value: bad
bigarray
Post by Federico Marchetti frdx-***@usa.net [unison-users]kind") Raised by primitive operation at file
"/tmp/buildd/unison-2.48.3/remote.ml", line 453, characters 18-45
Called from file "/tmp/buildd/unison-2.48.3/remote.ml", line 459,
characters 23-61 Called from file
"/tmp/buildd/unison-2.48.3/lwt/lwt.ml", line 75, characters 20-23
Re-raised at file "/tmp/buildd/unison-2.48.3/lwt/lwt.ml", line 135,
characters 12-13 Called from file "list.ml", line 73, characters
12-15
Post by Federico Marchetti frdx-***@usa.net [unison-users]Called from file "/tmp/buildd/unison-2.48.3/lwt/lwt.ml", line 31,
characters 2-37 Called from file
"/tmp/buildd/unison-2.48.3/lwt/lwt.ml", line 83, characters 17-46
Called from file
"/tmp/buildd/unison-2.48.3/lwt/generic/lwt_unix_impl.ml", line 147,
characters 6-40 Called from file "/tmp/buildd/unison-
2.48.3/main.ml",
Post by Federico Marchetti frdx-***@usa.net [unison-users]line 202, characters 6-24 Called from file
"/tmp/buildd/unison-2.48.3/main.ml", line 131, characters 4-9
Â
Fatal error: Lost connection with the server
0% 33:44 ETA
Â
Thank you for any help and suggestion.
--Â
Â
Â
------------------------------------
------------------------------------
Â
Â
------------------------------------
Â
Yahoo Groups Links
Â
Â
Â
--
Richard White <***@rjwhite.tk>