monicelli icon indicating copy to clipboard operation
monicelli copied to clipboard

Vagrant support

Open simonelai opened this issue 9 years ago • 4 comments

To prevent problems with installation and compilation (on Mac OS X and Windows, for example), I added a simple vagrant configuration that compile mcc and mcrt in a clean ubuntu virtual machine. The provisioning script provides all required libraries.

"Only" Virtualbox and Vagrant required :)

Instructions to compile with vagrant:

~$ cd [monicelli folder path]
~$ vagrant up  # to start, configure virtual machine and compile monicelli - only first execution requires internet connection and a few minutes to complete
[...]
~$ vagrant ssh  # to enter virtual machine
[...]
vagrant[...]$ cd /opt/monicelli/examples
vagrant[...]$ mcc mandelbrot.mc
vagrant[...]$ llc-3.5 mandelbrot.bc
vagrant[...]$ cc mandelbrot.s /usr/local/lib/libmcrt.a -o mandelbrot
vagrant[...]$ ./mandelbrot  # ENJOY
[...]
vagrant[...]$ exit  # to exit virtual machine
[...]
~$ vagrant halt  # to halt virtual machine

simonelai avatar Mar 25 '15 11:03 simonelai

Cool, I will review this asap :)

Although Moniceli compiles smoothly on Mac OS X and Windows thanks to some CMake magic, this could be nice for experimenting anyway.

esseks avatar Mar 26 '15 14:03 esseks

Thank you. Unfortunately I had a bit 'of trouble building monicelli on my Mac with XCode 6.2 and Homebrew. Maybe this can help less experienced users (like me) :)

simonelai avatar Mar 26 '15 14:03 simonelai

Thanks for this! I had trouble compiling mcc as I reported in the issue section, I tried the Vagrant image and it worked! Since this is really useful I would suggest to the maintainers to merge this pull request.

GTP95 avatar Feb 01 '16 15:02 GTP95

Great! Thank you!

simonelai avatar Feb 10 '16 14:02 simonelai