LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2016, 09:07 PM   #1
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Compiling unison


Unison is great, except when you can't install the same version on two different systems

Raspberry Pi with Rasbian - Debian Jessie
Linux Mint 18 Cinnamon - Ubuntu 16.04

Linux Mint
Code:
unison -version
unison version 2.48.3
Raspberry Pi
Code:
unison -version
unison version 2.40.102
Ideally, I'd like to install using the package manager. However, I'm currently attempting to compile on the raspberry pi to get 2.48

I've obtained the source from here and ran as the directions indicate - opam
Code:
sudo apt-get install ocaml opam
make UISTYLE=text
However, it fails trying to find etags (according to sh), but I can't seem to find how to install it, some guides are 2 decades old - but apparently it's related to emacs somehow?

Code:
if [ -f `which etags` ]; then \
    etags *.mli */*.mli *.ml */*.ml */*.m *.c */*.c *.txt \
          ; fi 
/bin/sh: 2: etags: not found
Makefile:347: recipe for target 'tags' failed
make[1]: [tags] Error 127 (ignored)
make[1]: Leaving directory '/home/foo/src'
I don't care about the newest version here - just trying to get identical version so I can sync my files
 
Old 10-15-2016, 10:08 PM   #2
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
apt-get, aptitude may help you find which package provides which binary.
 
Old 10-16-2016, 04:48 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably you may try to compile it yourself: http://www.crutzi.info/unison/binary/armel but probably you need to use 2.40 on ubuntu too.
you need to install the package containing etags to be able to continue that
 
Old 10-16-2016, 05:33 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Sefyir, please help me to remember in which situation you need unison on both machines?
iirc, it was when using the ssh feature?
in any case, i had the same problem.
what i do now, i locally mount the remote location with sshfs, and then unison can use it as a local folder, no need to have it installed on the remote machine.
hope this helps.
 
Old 10-16-2016, 11:19 AM   #5
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Original Poster
Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Quote:
Originally Posted by pan64 View Post
probably you may try to compile it yourself: http://www.crutzi.info/unison/binary/armel but probably you need to use 2.40 on ubuntu too.
you need to install the package containing etags to be able to continue that
Thanks for this link. The below quote helped

Quote:
It might fail with an error, but the unison binary should have been build successfully already.
After examining it, it turns out the binary was compiled anyways after the failure and works fine!
 
  


Reply



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
Rsync vs. Unison bennypr0fane Linux - Software 16 03-03-2016 03:34 AM
Unison sync sagar666 Linux - Server 1 01-01-2015 11:37 AM
Help with Unison Simply_S Linux - Software 0 11-02-2008 06:42 AM
Unison Setup FragInHell Linux - Software 0 02-21-2007 10:34 PM
any tools other than unison? pudhiyavan Linux - General 2 01-29-2004 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:15 AM.

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