hh / windows-fromscratch

Windows Vagrant VM from scratch
97 stars 21 forks source link

Error running bundle install #5

Open kalifg opened 11 years ago

kalifg commented 11 years ago

I just wanted to document and error I received running bundle install on Ubuntu 12.10, and the work around that fixed it for me. This isn't a bug in your software at all but maybe this could go in the README?

The error occurs when trying to compile eventmachine:

An error occured while installing eventmachine (1.0.0.beta.3), and Bundler cannot continue.

It is preceded by some C compiler errors. Some searching led me to https://github.com/gitlabhq/gitlabhq/issues/1051#issuecomment-9176547 which led me to use this command:

bundle config build.eventmachine --with-cflags=\"-O2 -pipe -march=native -w\"

After that bundle install completed without error.

Thanks again for this great software!