Closed luckypoem closed 10 years ago
You need opam-lib 1.1.1, but it looks like you have an earlier release installed. Running
opam update
opam upgrade opam-lib
should upgrade your system to the latest version.
hi. under ~/opam2web/opamfu/,i run : opam update opam upgrade make (this time "make" succeeded)
as3:~/opam2web/opamfu# cd ..
as3:~/opam2web# ls
CHANGES content ext LICENSE Makefile opamfu README.md src
as3:~/opam2web# make
cd src && make
make[1]: Entering directory `/root/opam2web/src'
sed s/%%COMMIT%%/48d978d16bffd21e3e717e1a2afdf31a28a9db05/ < version.ml.in \
| sed s/%%GIT_DESCR%%/1.2.0-180-g48d978d/ \
| sed s/%%DIRTY%%/0/ > version.ml
ocamlbuild -classic-display -I apalog -use-ocamlfind -cflags "-bin-annot" -no-links -tags
"debug" -tags "syntax(camlp4o)" -pkgs cow,cow.syntax,opam.client,opamfu.cli,cmdliner
opam2web.native
ocamlfind ocamldep -package cmdliner -package opamfu.cli -package opam.client -package
cow.syntax -package cow -syntax camlp4o -modules opam2web.ml > opam2web.ml.depends
+ ocamlfind ocamldep -package cmdliner -package opamfu.cli -package opam.client -package
cow.syntax -package cow -syntax camlp4o -modules opam2web.ml > opam2web.ml.depends
ocamlfind: Package `opamfu.cli' not found
Command exited with code 2.
make[1]: *** [opam2web.native] Error 10
make[1]: Leaving directory `/root/opam2web/src'
make: *** [build] Error 2
as3:~/opam2web#
i still didn't install opam2web successfully.how to do? opam2web site: https://github.com/ocaml/opam2web
You will also need to install cmdliner for opam2web. You can install opam2web and opamfu with the command opam install opam2web
.
hi.
still failed.
as3:~/opam2web# opam install opam2web
The following actions will be performed:
- install opamfu.0.1.1 [required by opam2web]
- downgrade cow.0.9.1 to 0.9.0 [required by opam2web]
- install opam2web.1.3.0
2 to install | 0 to reinstall | 0 to upgrade | 1 to downgrade | 0 to remove
Do you want to continue ? [Y/n] y
=-=-= Removing Packages =-=-=
Removing cow.0.9.1.
ocamlfind remove cow
=-=-= Installing cow.0.9.0 =-=-=
cow.0.9.0 Downloading https://github.com/mirage/ocaml-cow/archive/v0.9.0.tar.gz
Building cow.0.9.0:
make all
make install
Installing cow.0.9.0.
=-=-= Installing opamfu.0.1.1 =-=-=
opamfu.0.1.1 Downloading https://github.com/ocamllabs/opamfu/archive/0.1.1.tar.gz
Building opamfu.0.1.1:
make build
make install
Installing opamfu.0.1.1.
=-=-= Installing opam2web.1.3.0 =-=-=
opam2web.1.3.0 Downloading https://github.com/ocaml/opam2web/archive/1.3.0.tar.gz
Building opam2web.1.3.0:
make
make install PREFIX=/root/.opam/4.01.0
[ERROR] The compilation of opam2web.1.3.0 failed.
Removing opam2web.1.3.0.
===== ERROR while installing opam2web.1.3.0 =====
# opam-version 1.1.0
# os linux
# command make
# path /root/.opam/4.01.0/build/opam2web.1.3.0
# compiler 4.01.0
# exit-code 2
# env-file /root/.opam/4.01.0/build/opam2web.1.3.0/opam2web-8822-d8a4ae.env
# stdout-file /root/.opam/4.01.0/build/opam2web.1.3.0/opam2web-8822-d8a4ae.out
# stderr-file /root/.opam/4.01.0/build/opam2web.1.3.0/opam2web-8822-d8a4ae.err
### stdout ###
# ...[truncated]
# ocamlfind ocamlc -c -bin-annot -g -package cmdliner -package opamfu.cli -package opam.client -package cow.syntax -package cow -syntax camlp4o -I apalog -o o2wTemplate.cmi o2wTemplate.mli
# ocamlfind ocamlc -c -bin-annot -g -package cmdliner -package opamfu.cli -package opam.client -package cow.syntax -package cow -syntax camlp4o -I apalog -o o2wUniverse.cmi o2wUniverse.mli
# ocamlfind ocamlc -c -bin-annot -g -package cmdliner -package opamfu.cli -package opam.client -package cow.syntax -package cow -syntax camlp4o -I apalog -o template.cmi template.mli
# ocamlfind ocamlc -c -bin-annot -g -package cmdliner -package opamfu.cli -package opam.client -package cow.syntax -package cow -syntax camlp4o -I apalog -o version.cmo version.ml
# ocamlfind ocamlc -c -bin-annot -g -package cmdliner -package opamfu.cli -package opam.client -package cow.syntax -package cow -syntax camlp4o -I apalog -o opam2web.cmo opam2web.ml
# + ocamlfind ocamlc -c -bin-annot -g -package cmdliner -package opamfu.cli -package opam.client -package cow.syntax -package cow -syntax camlp4o -I apalog -o opam2web.cmo opam2web.ml
# File "opam2web.ml", line 95, characters 21-50:
# Error: Unbound module Cow.Markdown_github
# Command exited with code 2.
# make[1]: Leaving directory `/root/.opam/4.01.0/build/opam2web.1.3.0/src'
### stderr ###
# fatal: Not a git repository (or any of the parent directories): .git
# fatal: Not a git repository (or any of the parent directories): .git
# fatal: Not a git repository (or any of the parent directories): .git
# make[1]: *** [opam2web.native] Error 10
# make: *** [build] Error 2
The former state can be restored with opam switch import -f "/root/.opam/4.01.0/backup/state-20140208153121.export"
'opam install opam2web' failed.
as3:~/opam2web#
This last issue was a bug in the opam constraints which has now been fixed by ocaml/opam-repository#1762. Please try opam update && opam install opam2web
again.
Thanks for your patience and your report! I'm keeping this issue open until your build failure is resolved and we have addressed the several documentation issues you have discovered.
I've now updated the documentation in both opam2web and opamfu to make clear the specific dependency requirements and availability via opam. I am closing this issue. If you have further troubles related this issue, please leave a comment here. Thanks, again, for your report!
hi. this time i succeeded:
as3:~# cd opam2web
as3:~/opam2web# ls
CHANGES content ext LICENSE Makefile opamfu README.md src
as3:~/opam2web# opam update
[NOTE] /root/.opam/packages.dev/cmdliner.0.9.2 exists although cmdliner.0.9.2 is not installed. Removing it.
[NOTE] /root/.opam/packages.dev/cow.0.9.1 exists although cow.0.9.1 is not installed. Removing it.
[NOTE] /root/.opam/packages.dev/omd.0.9.4 exists although omd.0.9.4 is not installed. Removing it.
[NOTE] /root/.opam/packages.dev/opam-lib.1.1.0 exists although opam-lib.1.1.0 is not installed. Removing it.
[NOTE] /root/.opam/packages.dev/sexplib.109.60.00 exists although sexplib.109.60.00 is not installed. Removing it.
[NOTE] /root/.opam/packages.dev/stog.0.9.0 exists although stog.0.9.0 is not installed. Removing it.
[NOTE] /root/.opam/packages.dev/type_conv.109.60.00 exists although type_conv.109.60.00 is not installed. Removing it.
[NOTE] /root/.opam/packages.dev/uri.1.3.13 exists although uri.1.3.13 is not installed. Removing it.
[NOTE] /root/.opam/packages.dev/xtmpl.0.7 exists although xtmpl.0.7 is not installed. Removing it.
default Downloading https://opam.ocaml.org/urls.txt
default Downloading https://opam.ocaml.org/index.tar.gz
Updating ~/.opam/repo/compiler-index ...
Updating ~/.opam/compilers/ ...
Updating ~/.opam/repo/package-index ...
Updating ~/.opam/packages/ ...
The following packages have been UPDATED upstream:
- cmdliner.0.9.4
- cow.0.9.0
- omd.0.9.7
- opam-lib.1.1.1
- opamfu.0.1.1
- sexplib.111.03.00
- stog.0.10.0
- type_conv.109.60.01
- uri.1.4.0
- xtmpl.0.8
Updating the cache of metadata (~/.opam/state.cache) ...
0 to install | 0 to reinstall | 1 to upgrade | 0 to downgrade | 0 to remove
You can now run 'opam upgrade' to upgrade your system.
as3:~/opam2web# opam upgrade
The following actions will be performed:
- upgrade cow.0.9.0 to 0.9.1
0 to install | 0 to reinstall | 1 to upgrade | 0 to downgrade | 0 to remove
=-=-= Removing Packages =-=-=
Removing cow.0.9.0.
ocamlfind remove cow
=-=-= Installing cow.0.9.1 =-=-=
cow.0.9.1 Downloading https://github.com/mirage/ocaml-cow/archive/v0.9.1.tar.gz
Building cow.0.9.1:
make all
make install
Installing cow.0.9.1.
as3:~/opam2web# opam install opam2web
The following actions will be performed:
- downgrade cow.0.9.1 to 0.8.1 [required by opam2web]
- install opam2web.1.3.0
1 to install | 0 to reinstall | 0 to upgrade | 1 to downgrade | 0 to remove
Do you want to continue ? [Y/n] y
=-=-= Removing Packages =-=-=
Removing cow.0.9.1.
ocamlfind remove cow
=-=-= Installing cow.0.8.1 =-=-=
cow.0.8.1 Downloading https://github.com/mirage/ocaml-cow/archive/v0.8.1.tar.gz
Building cow.0.8.1:
make all
make install
Installing cow.0.8.1.
=-=-= Installing opam2web.1.3.0 =-=-=
opam2web.1.3.0 Downloading https://github.com/ocaml/opam2web/archive/1.3.0.tar.gz
Building opam2web.1.3.0:
make
make install PREFIX=/root/.opam/4.01.0
Installing opam2web.1.3.0.
as3:~/opam2web#
hi.
how to fix it?