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

Re: Building mirage-www



hi phiho;

On 5 Aug 2013, at 11:54, Phiho Hoang wrote:

> ...This 'make unix-socket-build' failed because of conflicts (please find the 
> console output appended below)
> 
> Please advise what need be done to resolve the conflicts.

the different targets for the mirage libraries conflict and can't be installed 
simultaneously in the same opam compiler switch.

the way that i deal with this is to have multiple compiler switches with the 
different mirage packages installed. i tried to explain this at the end of 
<http://openmirage.org/wiki/install> but now realise that it doesn't flow into 
<http://openmirage.org/wiki/mirage-www> as neatly as it might. i'll try and fix 
the install instructions so that it does!

basically-- the current compiler switch you're using has the mirage-xen package 
installed which conflicts with the mirage-unix packages (mirage-net-socket in 
this case). just "opam remove" the conflicting packages. in your case probably

$ opam remove mirage-xen

then 

$ make unix-socket-build
$ make unix-socket-run

...should work, giving you a running instance of the openmirage website at 
localhost:80 (or whatever port number is currently specified in ./src/www.conf).

using multiple compiler switches to manage this is pretty straightforward: to 
build using the mirage network stack:

$ opam switch 4.00.1+mirage -a 4.00.1
$ eval $(opam config env)
$ make clean
$ make unix-direct-build
$ make unix-direct-run

...which should give you a running instance of openmirage website at 
10.0.0.2:80 (or specified port number as above).

then finally to build a xen vm:

$ opam switch 4.00.1+xen -a 4.00.1
$ eval $(opam config env)
$ make clean
$ make xen-build
$ make xen-run ## if appropriate :)

...which should result in openmirage website in a running vm.

> BTW, I am interested in learning SDN under Mirage, where can I find the play 
> ground.

there are a couple of ocaml openflow bindings

<https://github.com/mirage/ocaml-openflow>
        developed with mirage, for the ICC paper

<https://github.com/frenetic-lang/ocaml-openflow>
        possibly more complete and actively developed, not checked

haris or anil probably know more about current status of these...

-- 
Cheers,

R.




This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you 
are advised to perform your own checks. Email communications with the 
University of Nottingham may be monitored as permitted by UK legislation.







 


Rackspace

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