Re: Installing OCaml-Top in Ubuntu fails

"Philippe Veber [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <CAOOOohS34Ft2GKzpAAarA+RJf3h21pVXhfG7y4gaDWfi6706ow@mail.gmail.com>
Hello,

The explanation is at the end of the log:

=-=-= conf-gtksourceview.2 troobleshooting =-=-=
This package requires gtksourceview 2.0 development packages installed on
your system.

which means you forgot to install a package on your system. On debian, I
think it is called libgtksourceview-3.0-dev, should be similar on Ubuntu.

Hope that helps,
  Philippe.



2014-08-19 20:09 GMT+02:00 [email protected] [ocaml_beginners] <
[email protected]>:

>
>
> HiI'm trying to install the OCaml-Top editor in Ubuntu 14.04 using the
> OPAM package available from Ubuntus repository (that is version 1.1.1).
> However, OPAM barfs at me and I have a hard time figuring out what causes
> the error. How do I approach figuring out what went wrong?
>
> This is the entire output from the installation command:
>
> jon@lemur:~$ opam install ocaml-top
> The following actions will be
> performed:
> - install typerex.1.99.6-beta [required by
> ocaml-top]
>
>  - install conf-gtksourceview.2 [required by
> ocaml-top]
> - install cmdliner.0.9.5 [required by
> ocaml-top]
> - install ocp-build.1.99.6-beta [required by
> ocaml-top]
>
>  - install lablgtk.2.16.0 [required by ocaml-top]
>  - install ocp-indent.1.4.1 [required by ocaml-top]
>  - recompile lwt.2.4.5 [use conf-gtksourceview]
>  - install ocp-index.1.0.2 [required by ocaml-top]
>  - recompile lambda-term.1.6 [use conf-gtksourceview]
>  - recompile conduit.0.5.1 [use conf-gtksourceview]
>  - install ocaml-top.1.1.2
>  - recompile utop.1.14 [use conf-gtksourceview]
>  - recompile cohttp.0.11.2 [use conf-gtksourceview]
> 8 to install | 5 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
> Do you want to continue ? [Y/n]
>
> =-=-= Removing Packages =-=-=
> Removing cohttp.0.11.2.
>   ocamlfind remove cohttp
> Removing utop.1.14.
>   ocamlfind remove utop
> Removing conduit.0.5.1.
>   ocamlfind remove conduit
> Removing lambda-term.1.6.
>   ocamlfind remove lambda-term
> Removing lwt.2.4.5.
>   ocamlfind remove lwt
>
> =-=-= Installing cmdliner.0.9.5 =-=-=
> default    Downloading
> https://opam.ocaml.org/archives/cmdliner.0.9.5+opam.tar.gz
> Downloading https://opam.ocaml.org/archives/cmdliner.0.9.5+opam.tar.gz
> Building cmdliner.0.9.5:
>   ocaml pkg/git.ml
>   ocaml pkg/build.ml native=true native-dynlink=true
> Installing cmdliner.0.9.5.
>
> =-=-= Installing conf-gtksourceview.2 =-=-=
> Building conf-gtksourceview.2:
>   pkg-config gtksourceview-2.0
> [ERROR] The compilation of conf-gtksourceview.2 failed.
> Removing conf-gtksourceview.2.
>
> =-=-= Installing typerex.1.99.6-beta =-=-=
> default    Downloading
> https://opam.ocaml.org/archives/typerex.1.99.6-beta+opam.tar.gz
> Downloading
> https://opam.ocaml.org/archives/typerex.1.99.6-beta+opam.tar.gz
> Building typerex.1.99.6-beta:
>   ./configure --prefix /home/jon/.opam/system
>   make
>   make install
> Installing typerex.1.99.6-beta.
>
> =-=-= Installing ocp-build.1.99.6-beta =-=-=
> Installing ocp-build.1.99.6-beta.
>
> =-=-= Installing ocp-indent.1.4.1 =-=-=
> default    Downloading
> https://opam.ocaml.org/archives/ocp-indent.1.4.1+opam.tar.gz
> Downloading https://opam.ocaml.org/archives/ocp-indent.1.4.1+opam.tar.gz
> Building ocp-indent.1.4.1:
>   ./configure --prefix /home/jon/.opam/system
>   make
> Installing ocp-indent.1.4.1.
>
> =-=-= Installing ocp-index.1.0.2 =-=-=
> default    Downloading
> https://opam.ocaml.org/archives/ocp-index.1.0.2+opam.tar.gz
> Downloading https://opam.ocaml.org/archives/ocp-index.1.0.2+opam.tar.gz
> Building ocp-index.1.0.2:
>   ./configure --prefix /home/jon/.opam/system
>   make
> Installing ocp-index.1.0.2.
>
> [ERROR] Due to some errors while processing conf-gtksourceview.2, the
> following actions will NOT proceed:
>  - install ocaml-top.1.1.2
>  - recompile utop.1.14
>  - recompile cohttp.0.11.2
>  - recompile lambda-term.1.6
>  - recompile conduit.0.5.1
>  - recompile lwt.2.4.5
>  - install lablgtk.2.16.0
>
> ===== ERROR while installing conf-gtksourceview.2 =====
> # opam-version 1.1.1
> # os           linux
> # command      pkg-config gtksourceview-2.0
> # path         /home/jon/.opam/system/build/conf-gtksourceview.2
> # compiler     system (4.01.0)
> # exit-code    1
> # env-file
> /home/jon/.opam/system/build/conf-gtksourceview.2/conf-gtksourceview-16900-c61e7b.env
> # stdout-file
> /home/jon/.opam/system/build/conf-gtksourceview.2/conf-gtksourceview-16900-c61e7b.out
> # stderr-file
> /home/jon/.opam/system/build/conf-gtksourceview.2/conf-gtksourceview-16900-c61e7b.err
>
>
> =-=-= ocp-indent.1.4.1 information =-=-=
> OCP-INDENT installed.
>
> To use it from emacs, add the following to your .emacs:
>   (add-to-list 'load-path (concat
>      (replace-regexp-in-string "\n$" ""
>         (shell-command-to-string "opam config var share"))
>      "/emacs/site-lisp"))
>   (require 'ocp-indent)
>
> To use it from Vim, add to your .vimrc:
>   let g:ocp_indent_vimfile = system("opam config var share")
>   let g:ocp_indent_vimfile = substitute(g:ocp_indent_vimfile, '[\r\n]*$',
> '', '')
>   let g:ocp_indent_vimfile = g:ocp_indent_vimfile .
> "/vim/syntax/ocp-indent.vim"
>
>   autocmd FileType ocaml exec ":source " . g:ocp_indent_vimfile
> .
>
> =-=-= ocp-index.1.0.2 information =-=-=
> OCP-INDEX installed.
>
> To use it from emacs, add the following to your .emacs:
>   (add-to-list 'load-path (concat
>      (replace-regexp-in-string "\n$" ""
>         (shell-command-to-string "opam config var share"))
>      "/emacs/site-lisp"))
>   (require 'ocp-index).
>
> =-=-= conf-gtksourceview.2 troobleshooting =-=-=
> This package requires gtksourceview 2.0 development packages installed on
> your system.
>
> The former state can be restored with opam switch import -f
> "/home/jon/.opam/system/backup/state-20140719170851.export"
> 'opam install ocaml-top' failed.
> jon@lemur:~$
>
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.