OCamlPro / ocaml-top

A simple cross-platform OCaml code editor built for top-level evaluation.
http://typerex.org/ocaml-top.html
GNU General Public License v3.0
64 stars 8 forks source link

Doesn't install through opam #35

Closed letrec closed 11 years ago

letrec commented 11 years ago

It fails with:

~ % opam install ocamltop-gtk                                                                                                      [0]
The following actions will be performed:
 - install lablgtk-extras.1.3 [required by ocamltop-gtk]
 - install gtktop.2.0 [required by ocamltop-gtk]
 - install ocamltop-gtk.2.1.1
3 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n] 

=-=-= Installing lablgtk-extras.1.3 =-=-=
The archive for lablgtk-extras.1.3 is in the local cache.
Extracting /home/user/.opam/archives/lablgtk-extras.1.3+opam.tar.gz.
Building lablgtk-extras.1.3:
  ./configure --prefix /home/user/.opam/4.00.1
  make all
  make install
The compilation of lablgtk-extras.1.3 failed.
Uninstalling lablgtk-extras.1.3:
  make uninstall

Due to some errors while processing lablgtk-extras.1.3, the following actions will NOT be proceeded:
 - install ocamltop-gtk.2.1.1
 - install gtktop.2.0

==== ERROR [while installing lablgtk-extras.1.3] ====
# opam-version    0.9.6 (latest-103-g955b7ca)
# os              linux
# command         ./configure --prefix /home/user/.opam/4.00.1
# path            /home/user/.opam/4.00.1/build/lablgtk-extras.1.3
# exit-code       1
# env-file        /home/user/.opam/4.00.1/build/lablgtk-extras.1.3/lablgtk-extras-5f1023.env
# stdout-file     /home/user/.opam/4.00.1/build/lablgtk-extras.1.3/lablgtk-extras-5f1023.out
# stderr-file     /home/user/.opam/4.00.1/build/lablgtk-extras.1.3/lablgtk-extras-5f1023.err
### stdout ###
...[truncated]
library builder:            /home/user/.opam/4.00.1/bin/ocamlmklib
toplevel builder:           /home/user/.opam/4.00.1/bin/ocamlmktop
profiler:                   /home/user/.opam/4.00.1/bin/ocamlprof
camlp4:                     /home/user/.opam/4.00.1/bin/camlp4
ocamlfind:                  /home/user/.opam/4.00.1/bin/ocamlfind

### checking required tools and libraries ###
checking for config-file... ok
checking for lablgtk2... ok
checking for lablgtk2.sourceview2... 
### stderr ###
ocamlfind: Package `lablgtk2.sourceview2' not found
Package lablgtk2.sourceview2 not found

You way have a look at config_check.log for details.

'opam install ocamltop-gtk' failed.
AltGr commented 11 years ago

You were mistaken: ocaml-top is a completely different package from ocamltop-gtk, and it doesn't rely on lablgtk-extras (which is broken, but that is an issue in repo opam-repository that I am going to fix)

letrec commented 11 years ago

Yes, i tried to install it before the package was pushed to opam and confused it with the other one. Now I'm getting:

% opam install ocaml-top                                                                                                         [0]
The following actions will be performed:
 - install ocaml-top.1.0.0
1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove

=-=-= Installing ocaml-top.1.0.0 =-=-=
The archive for ocaml-top.1.0.0 is in the local cache.
Extracting /home/user/.opam/archives/ocaml-top.1.0.0+opam.tar.gz.
Building ocaml-top.1.0.0:
  ./configure -install-bin /home/user/.opam/4.00.1/bin -install-lib /home/user/.opam/4.00.1/lib -install-doc /home/user/.opam/4.00.1/doc/ocaml-top -install-data /home/user/.opam/4.00.1/share/ocaml-top
  make
  make install
The compilation of ocaml-top.1.0.0 failed.
Uninstalling ocaml-top.1.0.0:
  ./configure -install-bin /home/user/.opam/4.00.1/bin -install-lib /home/user/.opam/4.00.1/lib -install-doc /home/user/.opam/4.00.1/doc/ocaml-top -install-data /home/user/.opam/4.00.1/share/ocaml-top
  make uninstall

==== ERROR [while installing ocaml-top.1.0.0] ====
# opam-version    0.9.6 (latest-103-g955b7ca)
# os              linux
# command         make
# path            /home/user/.opam/4.00.1/build/ocaml-top.1.0.0
# exit-code       2
# env-file        /home/user/.opam/4.00.1/build/ocaml-top.1.0.0/ocaml-top-ffb3fd.env
# stdout-file     /home/user/.opam/4.00.1/build/ocaml-top.1.0.0/ocaml-top-ffb3fd.out
# stderr-file     /home/user/.opam/4.00.1/build/ocaml-top.1.0.0/ocaml-top-ffb3fd.err
### stdout ###
ocp-build -asm ocaml-top
### stderr ###
...[truncated]
  Hidden: 3 incomplete packages in META files (use -print-incomplete-meta).
Warning: 2 needed packages are missing !
   ABSENT package "ocp-index-lib" missed by 1 packages
   ocaml-top (program,ocp)
     in /home/user/.opam/4.00.1/build/ocaml-top.1.0.0/src
   ABSENT package "ocp-indent-lib" missed by 1 packages
   ocaml-top (program,ocp)
     in /home/user/.opam/4.00.1/build/ocaml-top.1.0.0/src
Error: Could not find target project ocaml-top
make: *** [_obuild/ocaml-top/ocaml-top.asm] Ошибка 2

'opam install ocaml-top' failed.
AltGr commented 11 years ago

Oops, right, I forgot some dependencies, thanks for noticing so quickly ! This should now be fixed, please try to update / install again.

letrec commented 11 years ago

It works now. Thanks for the help.