[opam-devel] Error installing ocamlfind using Ubuntu's OPAM package
Jon Loldrup
loldrup at gmail.com
Wed Aug 13 23:32:23 BST 2014
Thank you for your help :)
It almost worked. However, it's missing 'libssl', which has no installation
candidate either through apt-get nor through OPAM:
jon at lemur:~/Auchitect/code$ opam install libssl
[ERROR] libssl is not a valid versioned package name
'opam install libssl' failed.
jon at lemur:~/Auchitect/code$ sudo apt-get install libssl
[sudo] password for jon:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl' has no installation candidate
jon at lemur:~/Auchitect/code$
this is the error from OPAM when running 'opam install cohttp ssl async':
=-=-= Installing async.111.25.00 =-=-=
default Downloadinghttps
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>://
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>opam.ocaml.org
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>/archives/
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>async
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>.111.25.00+
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>opam.tar.gz
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>
Downloadinghttps
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>://
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>opam.ocaml.org
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>/archives/
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>async
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>.111.25.00+
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>opam.tar.gz
<https://opam.ocaml.org/archives/async.111.25.00+opam.tar.gz>
Building async.111.25.00:
make
make install
Installing async.111.25.00.
[ERROR] Due to some errors while processing ssl.0.4.7, the following
actions will NOT proceed:
- install cohttp.0.11.2
- install conduit.0.5.1
===== ERROR while installing ssl.0.4.7 =====
# opam-version 1.1.1
# os linux
# command ./configure --prefix /home/jon/.opam/system
# path /home/jon/.opam/system/build/ssl.0.4.7
# compiler system (4.01.0)
# exit-code 1
# env-file /home/jon/.opam/system/build/ssl.0.4.7/ssl-5767-c743ac.env
# stdout-file /home/jon/.opam/system/build/ssl.0.4.7/ssl-5767-c743ac.out
# stderr-file /home/jon/.opam/system/build/ssl.0.4.7/ssl-5767-c743ac.err
### stdout ###
# ...[truncated]
# checking for ocamldep... /usr/bin/ocamldep
# checking for ocamllex... /usr/bin/ocamllex
# checking for ocamlyacc... /usr/bin/ocamlyacc
# checking for ocamldoc... /usr/bin/ocamldoc
# checking for ocamlmktop... /usr/bin/ocamlmktop
# checking for gcc... (cached) gcc
# checking whether we are using the GNU C compiler... (cached) yes
# checking whether gcc accepts -g... (cached) yes
# checking for gcc option to accept ISO C89... (cached) none needed
# checking for SSL_new in -lssl... no
### stderr ###
# configure: error: Cannot find libssl.
The former state can be restored with opam switch import -f
"/home/jon/.opam/system/backup/state-20140713220132.export"
'opam install cohttp ssl async' failed.
Is SSL mandatory for running cohttp? The stuff I need to transfer via json
to my Ocaml-program isn't privacy sensitive at all.
/Jon
Hi Jon,
You're missing just one system package required to build ocamlfind called
'm4'. Just add
sudo apt-get install m4
to your command set below and you should be fine. For installing Cohttp
with the Core backend, do:
opam install cohttp ssl async
Let us know if this doesn't work out.
best,
Anil
On 13 Aug 2014, at 20:30, Jon Loldrup <loldrup at gmail.com> wrote:
Hi
I'm trying to install cohttp on Ubuntu 14.04. However it is not working so
well, as can be seen from this screenshot:
http://i58.tinypic.com/euk9e1.png
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.
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ocaml-nox ocaml-native-compilers ocaml-doc tuareg-mode
ocaml-findlib oasis libpcre-ocaml-dev
sudo apt-get update
sudo apt-get install ocaml ocaml-native-compilers camlp4-extra opam
opam
opam list
opam init
eval `opam config env`
opam search cohttp
opam search core
opam update
opam list
opam install cohttp
So, how do I approach figuring out what went wrong? I'm an Ocaml newbie..
Also, where should I report errors like this if it is indeed a bug instead
of a user error?
regards Jon Loldrup
Denmark
_______________________________________________
opam-devel mailing list
opam-devel at lists.ocaml.org
http://lists.ocaml.org/listinfo/opam-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20140814/77164923/attachment.html>
More information about the opam-devel
mailing list