<p dir="ltr">Thank you for your help :)<br>
It almost worked. However, it's missing 'libssl', which has no installation candidate either through apt-get nor through OPAM:</p>
<p dir="ltr">jon@lemur:~/Auchitect/code$ opam install libssl<br>
[ERROR] libssl is not a valid versioned package name<br>
'opam install libssl' failed.</p>
<p dir="ltr">jon@lemur:~/Auchitect/code$ sudo apt-get install libssl<br>
[sudo] password for jon:<br>
Reading package lists... Done<br>
Building dependency tree      <br>
Reading state information... Done<br>
Package libssl is not available, but is referred to by another package.<br>
This may mean that the package is missing, has been obsoleted, or<br>
is only available from another source</p>
<p dir="ltr">E: Package 'libssl' has no installation candidate<br>
jon@lemur:~/Auchitect/code$<br><br></p>
<p dir="ltr">this is the error from OPAM when running 'opam install cohttp ssl async':<br></p>
<p dir="ltr">=-=-= Installing async.111.25.00 =-=-=<br>
default    Downloading<a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">https</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">://</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">opam.ocaml.org</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">/archives/</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">async</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">.111.25.00+</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">opam.tar.gz</a><br>

Downloading<a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">https</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">://</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">opam.ocaml.org</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">/archives/</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">async</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">.111.25.00+</a><a href="https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz">opam.tar.gz</a><br>

Building async.111.25.00:<br>
  make<br>
  make install<br>
Installing async.111.25.00.</p>
<p dir="ltr">[ERROR] Due to some errors while processing ssl.0.4.7, the following actions will NOT proceed:<br>
 - install cohttp.0.11.2<br>
 - install conduit.0.5.1</p>
<p dir="ltr">===== ERROR while installing ssl.0.4.7 =====<br>
# opam-version 1.1.1<br>
# os           linux<br>
# command      ./configure --prefix /home/jon/.opam/system<br>
# path         /home/jon/.opam/system/build/ssl.0.4.7<br>
# compiler     system (4.01.0)<br>
# exit-code    1<br>
# env-file     /home/jon/.opam/system/build/ssl.0.4.7/ssl-5767-c743ac.env<br>
# stdout-file  /home/jon/.opam/system/build/ssl.0.4.7/ssl-5767-c743ac.out<br>
# stderr-file  /home/jon/.opam/system/build/ssl.0.4.7/ssl-5767-c743ac.err<br>
### stdout ###<br>
# ...[truncated]<br>
# checking for ocamldep... /usr/bin/ocamldep<br>
# checking for ocamllex... /usr/bin/ocamllex<br>
# checking for ocamlyacc... /usr/bin/ocamlyacc<br>
# checking for ocamldoc... /usr/bin/ocamldoc<br>
# checking for ocamlmktop... /usr/bin/ocamlmktop<br>
# checking for gcc... (cached) gcc<br>
# checking whether we are using the GNU C compiler... (cached) yes<br>
# checking whether gcc accepts -g... (cached) yes<br>
# checking for gcc option to accept ISO C89... (cached) none needed<br>
# checking for SSL_new in -lssl... no<br>
### stderr ###<br>
# configure: error: Cannot find libssl.</p>
<p dir="ltr">The former state can be restored with opam switch import -f "/home/jon/.opam/system/backup/state-20140713220132.export"<br>
'opam install cohttp ssl async' failed.<br></p>
<p dir="ltr">Is SSL mandatory for running cohttp? The stuff I need to transfer via json to my Ocaml-program isn't privacy sensitive at all.</p>
<p dir="ltr">/Jon</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Jon,<div><br></div><div>You're missing just one system package required to build ocamlfind called 'm4'.  Just add</div>
<div><br></div><div>sudo apt-get install m4</div><div><br></div><div>to your command set below and you should be fine.  For installing Cohttp with the Core backend, do:</div><div><br></div><div>opam install cohttp ssl async </div>
<div><br></div><div>Let us know if this doesn't work out.</div><div><br></div><div>best,</div><div>Anil</div><div><br><div><div>On 13 Aug 2014, at 20:30, Jon Loldrup <<a href="mailto:loldrup@gmail.com" target="_blank">loldrup@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><div><div><div><div>Hi<br><br></div>I'm trying to install cohttp on Ubuntu 14.04. However it is not working so well, as can be seen from this screenshot:<br><br><a href="http://i58.tinypic.com/euk9e1.png" target="_blank">http://i58.tinypic.com/euk9e1.png</a><br>


<br></div>I started from a pretty much unaltered installation of Ubuntu 14.04. Then I executed the following commands in order. The last command led to the error.<br><br>sudo apt-get update && sudo apt-get upgrade<br>


sudo apt-get install ocaml-nox ocaml-native-compilers ocaml-doc tuareg-mode ocaml-findlib oasis libpcre-ocaml-dev<br>sudo apt-get update<br>sudo apt-get install ocaml ocaml-native-compilers camlp4-extra opam<br>opam<br>opam list<br>


opam init<br>eval `opam config env`<br>opam search cohttp<br>opam search core<br>opam update<br>opam list<br>opam install cohttp<br><br></div>So, how do I approach figuring out what went wrong? I'm an Ocaml newbie..<br>


</div>Also, where should I report errors like this if it is indeed a bug instead of a user error?<br><div><br clear="all"><div><div>regards Jon Loldrup<br></div><div>Denmark<br></div>
</div></div></div>
_______________________________________________<br>opam-devel mailing list<br><a href="mailto:opam-devel@lists.ocaml.org" target="_blank">opam-devel@lists.ocaml.org</a><br><a href="http://lists.ocaml.org/listinfo/opam-devel" target="_blank">http://lists.ocaml.org/listinfo/opam-devel</a><br>
</blockquote></div><br></div></div></div>