[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OPAM+Ubuntu test PPA



That's currently broken due to a bug in obuild.  You need to downgrade to cow.0.5.5 (just "opam install cow.0.5.5").

I'll be removing the dependency on obuild soon, but it's pending a switch to OCaml 4.1.

-anil

On 16 Jul 2013, at 01:21, Phiho Hoang <hohoangphi@xxxxxxxxx> wrote:

Hi,

You need to install the native version of the OCaml compilers (the ocaml-native-compilers package).

Thanks for the tip. I've been trying to install ocamlopt package.

I also installed 'camlp4-extra' package and now I got this error  (while Installing cow.0.6.1):

Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not found in path")

Where can I get this "xmlm.cma", where should it be found?

Please find appended below the full error:

Thanks for your help.

Regards,

PhiHo

=-=-= Installing cow.0.6.1 =-=-=
Extracting /home/phiho/.opam/archives/cow.0.6.1+opam.tar.gz.
Building cow.0.6.1:
  make all
  make install
Installing cow.0.6.1.
[mirari] Creating ./filesystem_static.ml.
[mirari] + Executing: mir-crunch -o ./filesystem_static.ml -name "static" ./../files
[mirari] Creating ./filesystem_templates.ml.
[mirari] + Executing: mir-crunch -o ./filesystem_templates.ml -name "templates" ./../tmpl
[mirari] + Executing: obuild configure
Configuring www-0.0.0...
warning: obuild META search paths and ocaml config mismatch

  The ocamlfind configuration file used doesn't list the ocaml standard library
  as part of his search paths. something fishy is going on
  You can solve the issue by:
  * pointing OCAMLFIND_CONF environment to the right configuration file
  * making sure that the ocamlfind program in your path is the right one (ocamlfind printconf)

  this is likely to cause various compilation problems
cd src && mirari build www.conf
[mirari] Using specified config file www.conf
[mirari] + Executing: obuild build
Building executable mir-www
warning: obuild META search paths and ocaml config mismatch

  The ocamlfind configuration file used doesn't list the ocaml standard library
  as part of his search paths. something fishy is going on
  You can solve the issue by:
  * pointing OCAMLFIND_CONF environment to the right configuration file
  * making sure that the ocamlfind program in your path is the right one (ocamlfind printconf)

  this is likely to cause various compilation problems

Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not found in path")

Preprocessing error on file main.ml
Error while running external preprocessor
Command line: camlp4 -parser o -parser op -printer p -I /usr/lib/ocaml/camlp4 -parser o -parser op -printer p -I /home/phiho/.opam/system/lib/ulex pa_ulex.cma -I /home/phiho/.opam/system/lib/type_conv pa_type_conv.cma -I /home/phiho/.opam/system/lib/dyntype pa_dyntype.cma -I /home/phiho/.opam/system/lib/cow xmlm.cma str.cma pa_cow.cma -I /home/phiho/.opam/system/lib/optcomp optcomp.cma -I /home/phiho/.opam/system/lib/lwt lwt-syntax-options.cma -I /home/phiho/.opam/system/lib/lwt lwt-syntax.cma -I /home/phiho/.opam/system/lib/cstruct cstruct-syntax.cma 'main.ml' > /tmp/ocamlpp540bdf

[mirari] ERROR: The command "obuild build" exited with code 8.
make: *** [build] Error 1
phiho@mirage:~/mirage-www$





On Mon, Jul 15, 2013 at 4:54 PM, Anil Madhavapeddy <anil@xxxxxxxxxx> wrote:
Read the output:
### stderr ###
./bootstrap: line 23: ocamlopt.opt: command not found

You need to install the native version of the OCaml compilers (the ocaml-native-compilers package).

-anil

On 15 Jul 2013, at 20:20, Phiho Hoang <hohoangphi@xxxxxxxxx> wrote:

Greetings,

Does any one have any idea what is missing in my environment?

I got OCaml-4.00 and OPAM-1.0 "stable" from repo at:

Thanks for your help.

Regards,

PhiHo



On Sun, Jul 14, 2013 at 6:21 PM, Phiho Hoang <hohoangphi@xxxxxxxxx> wrote:
Hi,

Thank you for the information.

I got an error while doing:

$ opam install mirari

This following also failed:

$ sudo apt-get install  ocamlopt

Please find appended the console output.

Regards,

PhiHo

$ opam install mirari
...
...

==== ERROR [while installing obuild.0.0.2] ====
# opam-version    1.0.0
# os              linux
# command         ./bootstrap
# path            /home/phiho/.opam/system/build/obuild.0.0.2
# exit-code       127
# env-file        /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env
# stdout-file     /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out
# stderr-file     /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err
### stdout ###
COMPILING fugue
### stderr ###
./bootstrap: line 23: ocamlopt.opt: command not found

'opam install mirari' failed.


$ sudo apt-get install  ocamlopt
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ocamlopt

$ opam install ocamlopt
ocamlopt is not a valid versioned package name
'opam install ocamlopt' failed.



On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <pgj@xxxxxxx> wrote:
On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:
> How can I start to learn about 'mirage' using a Ubuntu VM, what do I need
> to install?

That should be simply just:

$ opam init
$ opam remote add mirage-dev git://github.com/mirage/opam-repo-dev
$ eval `opam config -env`
$ opam install mirari
$ git clone git://github.com/mirage/mirage-www
$ cd mirage-www
$ make
$ make run

> It is much appreciated if someone can share a link.

This information is from the web site: http://openmirage.org/wiki/install






 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.