Your problem is that bundle is trying to install EventMachine with it's 
C-bindings and it's not finding the libraries that EventMachine needs to be 
built.  That's what that first line in the error message is telling you

Since you're on Windows, this complicates things somewhat, but they have a 
good guide on installing EventMachine on 
Windows:  
https://github.com/eventmachine/eventmachine/wiki/Building-EventMachine-with-SSL-on-Windows

You'll probably need a few other components installed, but look at the 
guides from EventMachine wiki and just Google around for what other people 
did.

Best,

Misha

On Wednesday, August 29, 2018 at 5:14:03 AM UTC+1, mandeep saini wrote:
>
> Hi Ben,
> I have attached my gemfile here and I will create a gist as well.
>
> Thankyou everyone. I really appreciate the time you guys are taking to 
> reply. i have been stuck on this for long now. Really need help!
>
> On Tue, Aug 28, 2018 at 9:08 PM Ben Wanicur <[email protected] 
> <javascript:>> wrote:
>
>> Hi Mandeep
>>
>> Can you include your Gemfile also ?  I'd recommend creating a Gist: 
>> https://help.github.com/articles/creating-gists/
>>
>> Then you can include the stack trace and relevant files in one place 
>> (without having a really long email).
>>
>> On Tue, Aug 28, 2018 at 9:00 PM mandeep saini <[email protected] 
>> <javascript:>> wrote:
>>
>>> yes that throws this error: 
>>> Unable to load the EventMachine C extension; To use the pure-ruby 
>>> reactor, require 'em/pure_ruby'
>>> rake aborted!
>>> LoadError: cannot load such file -- 2.4/rubyeventmachine
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7-x64-mingw32/lib/rubyeventmachine.rb:2:in
>>>  
>>> `require'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7-x64-mingw32/lib/rubyeventmachine.rb:2:in
>>>  
>>> `<top (required)>'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:8:in
>>>  
>>> `require'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:8:in
>>>  
>>> `<top (required)>'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.4/lib/bundler/runtime.rb:81:in
>>>  
>>> `require'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.4/lib/bundler/runtime.rb:81:in
>>>  
>>> `block (2 levels) in require'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.4/lib/bundler/runtime.rb:76:in
>>>  
>>> `each'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.4/lib/bundler/runtime.rb:76:in
>>>  
>>> `block in require'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.4/lib/bundler/runtime.rb:65:in
>>>  
>>> `each'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.4/lib/bundler/runtime.rb:65:in
>>>  
>>> `require'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.4/lib/bundler.rb:114:in 
>>> `require'
>>> C:/promotracks-rails/config/application.rb:7:in `<top (required)>'
>>> C:/promotracks-rails/Rakefile:4:in `require'
>>> C:/promotracks-rails/Rakefile:4:in `<top (required)>'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in
>>>  
>>> `load'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in
>>>  
>>> `load_rakefile'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:703:in
>>>  
>>> `raw_load_rakefile'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:104:in
>>>  
>>> `block in load_rakefile'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:186:in
>>>  
>>> `standard_exception_handling'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:103:in
>>>  
>>> `load_rakefile'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:82:in
>>>  
>>> `block in run'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:186:in
>>>  
>>> `standard_exception_handling'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:80:in
>>>  
>>> `run'
>>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top 
>>> (required)>'
>>> C:/Ruby24-x64/bin/rake:23:in `load'
>>> C:/Ruby24-x64/bin/rake:23:in `<main>'
>>>
>>>
>>> On Tue, Aug 28, 2018 at 8:58 PM Jason King <[email protected] <javascript:>> 
>>> wrote:
>>>
>>>> Did you try `bundle exec rake db:migrate`?
>>>>
>>>> On Tue, Aug 28, 2018 at 9:15 PM mandeep saini <[email protected] 
>>>> <javascript:>> wrote:
>>>>
>>>>> I am trying to run the existing rails app on local server. But somehow 
>>>>> it fails when i am trying to migrate the db . 
>>>>>
>>>>>
>>>>> Error message : rake aborted! LoadError: cannot load such file -- 
>>>>> eventmachine C:/promotracks-rails/config/application.rb:7:in <top 
>>>>> (required)>' C:/promotracks-rails/Rakefile:4:in'
>>>>>
>>>>> ( I have ruby,rails,gem,bundler installed)
>>>>>
>>>>> -- 
>>>>> -- 
>>>>> SD Ruby mailing list
>>>>> [email protected] <javascript:>
>>>>> http://groups.google.com/group/sdruby
>>>>> --- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "SD Ruby" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected] <javascript:>.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> -- 
>>>> -- 
>>>> SD Ruby mailing list
>>>> [email protected] <javascript:>
>>>> http://groups.google.com/group/sdruby
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "SD Ruby" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected] <javascript:>.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>>> -- 
>>> SD Ruby mailing list
>>> [email protected] <javascript:>
>>> http://groups.google.com/group/sdruby
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "SD Ruby" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> -- 
>> SD Ruby mailing list
>> [email protected] <javascript:>
>> http://groups.google.com/group/sdruby
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "SD Ruby" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to