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

Mirage tutorial errors



Thanks Anil for the suggestions. I followed the instructions from
http://www.openmirage.org/wiki/install and have successfully run the UNIX
binary of mirage-www. I then cloned the tutorial from
git://github.com/mirage/mirage-tutorial and roll it back to last year (# git
reset b8efbd; # git checkout -f HEAD), but when I 'cd slides && make', the
following errors happened. What's the problem?

*******************************************
root@debian:~/old/mirage-tutorial/slides# make
./scripts/build_socket_crunch.sh
+ BIN=crunch_server
++ which mir-run
+ MIR_RUN=
make: *** [run-socket_crunch] Error 1
*******************************************

I also noted that there are two mirage-tutorials as well as mirage-wwws,
respectively in git://github.com/mirage/XXX and git://github.com/avsm/XXX.
To my understanding, the latter is for the monolithic version, right? 

Thank you for your help!
Yiming



-----邮件原件-----
发件人: Anil Madhavapeddy [mailto:anil@xxxxxxxxxx] 
发送时间: 2012年10月3日 19:06
收件人: Yiming Zhang
抄送: cl-mirage@xxxxxxxxxxxxxxx
主题: Re: About Mirage Implementation

Hi Yiming,

The best way to learn about this stuff is just to get stuck in, hit bugs,
fix them along the way, and ask questions along the way. Documentation will
take some time to get up to the level where a casual user can pick this up,
and actually learning all the components is a very useful way to get up to
speed.  Having said that, we've made great progress on making all of this
usable recently, thanks to Thomas' hard work on OPAM and the packaging
infrastructure.

So I'd suggest you get mirage/mirage-www or mirage/mirage-tutorial compiling
for you and make sure you can get the website up and running locally on your
computer.  The instructions on:
http://www.openmirage.org/wiki/install

should be correct for this already. Just follow them to get an environment
and then clone the mirage-www repository, type in 'make', and run the
resulting UNIX binary.

With the Xen backend, you will get a microkernel that can run under Xen as a
normal VM.  Have you got a working Xen installation available?

-anil


On 1 Oct 2012, at 12:58, Yiming Zhang <sdiris@xxxxxxxxx> wrote:

> Anil,
> 
> My ultimate goal is to do some deep research on Mirage, and I think 
> the development of a Mirage library for persistent RAM-based KV should 
> be a good start point. Since I know not much about Mirage, the 
> preliminary plan is to achieve this by modifying an existing Mirage 
> library, which would also help me understand the inside of Mirage. Now 
> that you will port hello world examples next week, I prefer to wait 
> and work on the modular version. I think I can also help in completing the
Mirage documents, if necessary.
> 
> I might have some questions on how/what to do. I noticed you mentioned 
> Balraj and Raphael. Do they know much about Mirage? Or you can suggest 
> other people in Cambridge who can help me?
> 
> Thank you for your help!
> 
> Regards,
> Yiming
> 
> -----邮件原件-----
> 发件人: Anil Madhavapeddy [mailto:anil@xxxxxxxxxx]
> 发送时间: 2012年9月29日 20:08
> 收件人: Yiming Zhang
> 抄送: cl-mirage@xxxxxxxxxxxxxxx
> 主题: Re: About Mirage Implementation
> 
> Hi Yiming,
> 
> The tutorial is indeed down (apparently due to an EC2 power cut that 
> took out the VM).  However, the build tools are indeed quite different 
> now, due to us switching Mirage to a (significantly simpler and more 
> robust) package manager.  This package manager works with normal OCaml 
> libraries, and so is generally a more sustainable long-term solution.
> 
> So there are two options:
> 
> - you can use the old monolithic repository, and clone 
> mirage/mirage-tutorial (but roll it back to last year by reverting the 
> last commit).  This will give you a local copy of the tutorial, which 
> you can access on port 80.
> 
> - I'm planning to port the hello world examples on mirage-www next 
> week.  In the meanwhile, you can follow the OPAM instructions for 
> mirage-www to get it up and running, as the website uses the latest
interfaces.
> 
> You can also make a lot of progress without needing Mirage at all.  
> I'd suggest using Lwt, the Lwt_bytes module, and the cstruct library 
> to build a UNIX userspace version quickly.  You can recompile this 
> pretty easily to a Mirage kernel if you keep the core logic fairly 
> pure and functional.  Happy to advise about how that works (or you 
> might want to find someone locally in Cambridge this month until I 
> return in November, such as Balraj or Raphael who know who this works).
> 
> -anil
> 
> On 28 Sep 2012, at 02:37, "Yiming Zhang" <sdiris@xxxxxxxxx> wrote:
> 
>> I want to contribute to the Mirage project by implementing a 
>> RAM-based KV
> library (like a better memcached) for it. However, it seems that it is 
> very difficult to start. For the new modular version, the documents 
> (in
> http://www.openmirage.org/wiki/hello-world) seem obsolete; for the old 
> monolithic version, even the webpage 
> (http://tutorial.openmirage.org/#1)
> cannot be opened! Can anybody help me figure out what to do in the 
> first step?
>> 
>> Regards,
>> Yiming
> 
> 




 


Rackspace

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