Search code examples
ruby-on-railsrubydrupal-7cygwindrush

Can't run Bundle install in Cygwin?


I'm kind of new to omega 4 and i'm working on windows 8 and Cygwin . when i go to my sub-theme with drush or cygwin and run bundle install i get error like this :

An error occurred while installing eventmachine (1.0.3), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.

and version of ruby is : ruby 1.9.3p547 (2014-05-14 revision 45962) [i386-cygwin] any idea ? THx


Solution

  • To see more detail of the gem install process (including compile output) run the command directly with verbose -V

    gem install eventmachine -V -v '1.0.3'
    

    You will need the c++ build tools and a couple of other packages installed in Cygwin to build the eventmachine native extension

    Add these packages to cygwin via setup or apt-cyg

    gcc-core gcc-g++ make binutils w32api openssl openssl-devel zlib zlib-devel
    

    Then try the gem install again, with -V if you still have failures.

    gem install eventmachine -v '1.0.3'