Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant support #25

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Vagrant support #25

wants to merge 4 commits into from

Conversation

simonelai
Copy link

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
Copy link
Owner

esseks commented Mar 26, 2015

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
Copy link
Author

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
Copy link

GTP95 commented Feb 1, 2016

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
Copy link
Author

Great! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants