These instructions are gold, thank you. You should capture them somewhere in 
some instructions.

I hit one other snag, which was the "switch create" step wanted me to have 
something called bubblewrap, or bwrap (which was a pleasant distraction, 
because I had to try all my package-manager commands with both "bubblewrap" and 
"bwrap"—luckily none of those worked anyway). I followed these instructions to 
get out of it: https://github.com/ocaml/opam/issues/3424#issuecomment-450786508

Also, on an Ubuntu 14.04 machine, I hit an error during the links build which 
was a C error in the ssl package. Presumably some version mismatch. I'm not too 
fussed about that, but I'll post my error in another message for completeness.

Thanks for your quick help!
Ezra


On Thu, Aug 8, 2019, at 11:26 AM, HILLERSTRÖM Daniel wrote:
> Hi Ezra,

> 

> > But it looks like the dune files specify version 1.10 and the version I got 
> > is 1.2.

> 

> Yes, your version of dune is "out-dated". On our side, I suspect the problem 
> is that we do not specify a lower version bound on dune in our `.opam` files. 
> I will fix this.

> 

> > I guess I should install opam from apt-get?

> 

> Unfortunately no. You will need OPAM >= 2, the Ubuntu 16.04 and 18.04 LTS 
> only provide OPAM version 1.2.x. So you have to install OPAM 2.x from source 
> (c.f.  https://opam.ocaml.org/).

> 

> Once installed you'll want to install a new switch (i.e. OCaml compiler). I 
> suggest using at least version 4.07.1:

> 

> $ opam switch create 4.07.1

> 

> Afterwards you should be able to install Links via OPAM:

> 

> $ opam install links

> 

> ... and database drivers, if you need those

> 

> $ opam install links-postgresql

> 

> The above commands should automatically pull in the latest version of dune 
> too. If not, you may need to execute the following

> 

> $ opam install dune.1.11.0

> 

> Which should force installation of the latest stable version of dune.

> 

> As Links release 0.9 is imminent you may want to use it instead of 0.8. It 
> will possibly take a week or so before it makes its way into the OPAM 
> repository -- until then you can pin it

> 

> $ opam pin add links  https://github.com/links-lang/links.git#0.9

> 

> Simon Fowler has put together a nice changelog for version 0.9  
> https://github.com/links-lang/links/releases/tag/0.9.

> 

> Kind regards, Daniel

> 
> *From:* links-users <[email protected]> on behalf of Ezra e. 
> k. Cooper <[email protected]>
> *Sent:* 08 August 2019 17:01:38
> *To:* [email protected] <[email protected]>
> *Subject:* Re: [links-users] Installing Links on Ubuntu 
> 
> One more semi-dead end: If I "opam install dune" then I perhaps I could 
> attempt to build the source myself (maybe the compiler version wouldn't 
> actually matter that much?). But it looks like the dune files specify version 
> 1.10 and the version I got is 1.2.
> 
>  On Wed, Aug 7, 2019, at 7:28 PM, Ezra e. k. Cooper wrote:
>  > I'm installing Links on some more machines and having a little 
>  > difficulty. Hoping someone can coach me through it.
>  > 
>  > First problem, on the http://links-lang.org/ homepage, it says in big 
>  > letters "Get Links / 0.8 Merchiston" which sounds great. But clicking 
>  > that gives me a page that says "Current as of 0.7.3"--presumably that's 
>  > the Links version?. (Also it says "Installing Links on a fresh VM" 
>  > which doesn't necessarily apply—I might be using real hardware—does it 
>  > matter?)
>  > 
>  > The front page also suggests "opam install links" but I've hit a few 
>  > snags with that, too. I guess I should install opam from apt-get? But 
>  > this doesn't necessarily give me the correct version. "opam install 
>  > links" gives me 'links is not available because your system doesn't 
>  > comply with ocaml-version >= "4.06.0".' This <page 
>  > http://ocaml.org/docs/install.html> suggests that no Ubuntu versions 
>  > have an Ocaml version later than 4.05. I feel like "Ubuntu" is a 
>  > relatively tame choice of platform, so am I missing some easy path to 
>  > getting it installed.
>  > 
>  > The instructions at 
>  > <https://github.com/links-lang/links/wiki/Installing-Links-on-a-fresh-VM> 
> say they work on Ubuntu 16.04, but they also seem to say that Ocaml 4.06 is 
> an easy thing to "switch" to.
>  > 
>  > Is there any easy advice for getting this going on my platform? What 
>  > platform is known to be the easiest to install Links?
>  > 
>  > Thanks in advance!
>  > Ezra
>  > _______________________________________________
>  > links-users mailing list
>  > [email protected]
>  > http://lists.inf.ed.ac.uk/mailman/listinfo/links-users
>  >
> 
>  -- 
>  Ezra e. k. Cooper
>  [email protected]
>  _______________________________________________
>  links-users mailing list
>  [email protected]
> http://lists.inf.ed.ac.uk/mailman/listinfo/links-users
> The University of Edinburgh is a charitable body, registered in Scotland, 
> with registration number SC005336.

-- 
 Ezra e. k. Cooper
 [email protected]

_______________________________________________
links-users mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/links-users

Reply via email to