esseks / monicelli

An esoteric programming language, come se fosse antani.
GNU General Public License v3.0
1.32k stars 52 forks source link

Vagrant support #25

Open simonelai opened 9 years ago

simonelai commented 9 years ago

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
esseks commented 9 years ago

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.

simonelai commented 9 years ago

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) :)

GTP95 commented 8 years ago

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.

simonelai commented 8 years ago

Great! Thank you!