Tim Uckun
2007-Dec-30 03:00 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
Hello all. I am trying to install the latest version on windows and I get the following error. D:\inbox\eventmachine-0.10.0>gem install eventmachine-0.10.0.gem Building native extensions. This could take a while... ERROR: Error installing eventmachine-0.10.0.gem: ERROR: Failed to build gem native extension. d:/ruby/bin/ruby.exe extconf.rb install eventmachine-0.10.0.gem checking for windows.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --srcdir=. --curdir --ruby=d:/ruby/bin/ruby Gem files will remain installed in d:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.10.0 for inspection. Results logged to d:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.10.0/ext/gem_make.out Running the setup.rb manually also gives the same error.
Francis Cianfrocca
2007-Dec-30 09:46 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
On Dec 30, 2007 6:00 AM, Tim Uckun <timuckun at gmail.com> wrote:> Hello all. > > I am trying to install the latest version on windows and I get the > following error. > > D:\inbox\eventmachine-0.10.0>gem install eventmachine-0.10.0.gem > Building native extensions. This could take a while... > ERROR: Error installing eventmachine-0.10.0.gem: > ERROR: Failed to build gem native extension. > > d:/ruby/bin/ruby.exe extconf.rb install eventmachine-0.10.0.gem > checking for windows.h... no > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. >Have you successfully built EM on Windows before? If not, try the precompiled Win32 gem (if it''s not available for 0.10 yet, just use a back version. Unless you need the latest features, that should work fine. If you have built successfully on Windows before, then perhaps there''s a regression in 0.10 that no one caught. Please let me know. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071230/8ac2e3fc/attachment-0001.html
Tim Uckun
2007-Dec-30 18:02 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
> Have you successfully built EM on Windows before? If not, try the > precompiled Win32 gem (if it''s not available for 0.10 yet, just use a back > version. Unless you need the latest features, that should work fine.No I haven''t. I thought that the pure ruby version would not need the compiled binary. I will use an older version.
Kirk Haines
2007-Dec-30 19:40 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
On Dec 30, 2007 7:02 PM, Tim Uckun <timuckun at gmail.com> wrote:> > Have you successfully built EM on Windows before? If not, try the > > precompiled Win32 gem (if it''s not available for 0.10 yet, just use a back > > version. Unless you need the latest features, that should work fine. > > No I haven''t. I thought that the pure ruby version would not need the > compiled binary. I will use an older version.There should probably be a separate gem for installing just the pure ruby version. That would eliminate that problem. Kirk Haines
Francis Cianfrocca
2007-Dec-30 19:46 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
On Dec 30, 2007 9:02 PM, Tim Uckun <timuckun at gmail.com> wrote:> > Have you successfully built EM on Windows before? If not, try the > > precompiled Win32 gem (if it''s not available for 0.10 yet, just use a > back > > version. Unless you need the latest features, that should work fine. > > No I haven''t. I thought that the pure ruby version would not need the > compiled binary. I will use an older version. > >The pure Ruby version does NOT need the compiled binary. If you installed the gem and got a compile failure, you probably DID successfully install the code, and you probably DO have the pure Ruby version ready for use. Try it. I''ve been trying to avoid having separate install gems for pure Ruby and C++, but we''ll do that if we have to. I''m already resigned to needing a separate gem for the JRuby version, which will need to install a jar file. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071230/69cec577/attachment.html
Kirk Haines
2007-Dec-30 20:06 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
On Dec 30, 2007 8:46 PM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> On Dec 30, 2007 9:02 PM, Tim Uckun <timuckun at gmail.com> wrote: > > > > > > Have you successfully built EM on Windows before? If not, try the > > > precompiled Win32 gem (if it''s not available for 0.10 yet, just use a > back > > > version. Unless you need the latest features, that should work fine. > > > > No I haven''t. I thought that the pure ruby version would not need the > > compiled binary. I will use an older version. > > > > > > > > The pure Ruby version does NOT need the compiled binary. If you installed > the gem and got a compile failure, you probably DID successfully install the > code, and you probably DO have the pure Ruby version ready for use. > > Try it. > > I''ve been trying to avoid having separate install gems for pure Ruby and > C++, but we''ll do that if we have to. I''m already resigned to needing a > separate gem for the JRuby version, which will need to install a jar file.Is there any way to make intelligent decisions on what gets built/installed when a gem is installed? Or to catch compilation errors and return a message about "Extension compilation failed, continuing on with installation of the pure ruby EventMachine." Because when there are compilation failures while installing a gem, that is what people focus on. It gives the impression that the whole thing failed. Kirk Haines
Francis Cianfrocca
2007-Dec-30 20:30 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
> > Is there any way to make intelligent decisions on what gets > built/installed when a gem is installed? > > Or to catch compilation errors and return a message about "Extension > compilation failed, continuing on with installation of the pure ruby > EventMachine." > > Because when there are compilation failures while installing a gem, > that is what people focus on. It gives the impression that the whole > thing failed. >I''d really love to do that but I''m not knowledgeable enough about rubygem config to do it. I don''t think I''m missing something trivial, but I could be. Help, anyone? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071230/5a47b910/attachment.html
Francis Cianfrocca
2007-Dec-30 21:53 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
I guess you''re right. I gave up trying to make a gem that would be smart enough to install the JRuby EM jar file rather than run the compiler. I''ve seen something similar in the postgres libraries, where there are different gems with different naming conventions for pure-ruby and libpg-based libraries. It''s a drag because we will need to teach EM users about the platform differences just to get the install done, before they''ve had a chance to just try the product out. On Dec 30, 2007 10:40 PM, Kirk Haines <wyhaines at gmail.com> wrote:> On Dec 30, 2007 7:02 PM, Tim Uckun <timuckun at gmail.com> wrote: > > > Have you successfully built EM on Windows before? If not, try the > > > precompiled Win32 gem (if it''s not available for 0.10 yet, just use a > back > > > version. Unless you need the latest features, that should work fine. > > > > No I haven''t. I thought that the pure ruby version would not need the > > compiled binary. I will use an older version. > > There should probably be a separate gem for installing just the pure > ruby version. That would eliminate that problem. > > > Kirk Haines > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071231/c4c8b4c2/attachment.html
Roger Pack
2007-Dec-31 06:22 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
You might could just output a note ''compilation failure doesn''t mean anything'' That much is possible, I believe.
Tim Uckun
2008-Jan-01 03:53 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
On Jan 1, 2008 3:22 AM, Roger Pack <rogerpack2005 at gmail.com> wrote:> You might could just output a note ''compilation failure doesn''t mean anything'' > That much is possible, I believe.In my case it might actually mean something. The gem is in the proper place but I don''t think it''s still properly installed. This snippet gives an error. $eventmachine_library = :pure_ruby require ''eventmachine'' module EchoServer def receive_data data send_data ">>>you sent: #{data}" close_connection if data =~ /quit/i end end EventMachine::run { EventMachine::open_datagram_socket "127.0.0.100", 1111, EchoServer } Gives the following error ./eventmachine.rb:13: uninitialized constant EventMachine (NameError) from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from D:/Source/ruby/engine/test/eventmachine.rb:3 Process ruby exited with code 1 As you can see somehow the file was not included properly.
Francis Cianfrocca
2008-Jan-01 07:05 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
Try saying require ''rubygems'' first. On Jan 1, 2008 6:53 AM, Tim Uckun <timuckun at gmail.com> wrote:> On Jan 1, 2008 3:22 AM, Roger Pack <rogerpack2005 at gmail.com> wrote: > > You might could just output a note ''compilation failure doesn''t mean > anything'' > > That much is possible, I believe. > > > In my case it might actually mean something. The gem is in the proper > place but I don''t think it''s still properly installed. > > This snippet gives an error. > > $eventmachine_library = :pure_ruby > require ''eventmachine'' > > module EchoServer > def receive_data data > send_data ">>>you sent: #{data}" > close_connection if data =~ /quit/i > end > end > > EventMachine::run { > EventMachine::open_datagram_socket "127.0.0.100", 1111, EchoServer > } > > > Gives the following error > > ./eventmachine.rb:13: uninitialized constant EventMachine (NameError) > from > d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' > from D:/Source/ruby/engine/test/eventmachine.rb:3 > Process ruby exited with code 1 > > > As you can see somehow the file was not included properly. > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080101/dee7f9bb/attachment.html
Tony Arcieri
2008-Jan-03 10:10 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
On Dec 30, 2007 8:40 PM, Kirk Haines <wyhaines at gmail.com> wrote:> There should probably be a separate gem for installing just the pure > ruby version. That would eliminate that problem. >A separate gem for the pure Ruby version would be really handy. -- Tony Arcieri ClickCaster, Inc. tony at clickcaster.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080103/06385891/attachment.html
Tim Uckun
2008-Jan-03 17:36 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
On Jan 2, 2008 4:05 AM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> Try saying require ''rubygems'' first.I tried that. It still doesn''t seem to work. As I said I think the install went wrong somehow. Gem search evenmachine shows no results so obviously some index internally hasn''t been updated. Maybe something is wrong with my gems. When I attempt to run gem generate_index I get the following error gem generate_index Generating index for 0 gems in . Loaded all gems Generating master indexes (this may take a while) ERROR: While executing gem ... (Errno::EACCES) Permission denied - C:/DOCUME~1/tim/LOCALS~1/Temp/gem_generate_index_4236/quick or ./quick What an odd error message. How could I not have permissions to temp in my own profile?
Francis Cianfrocca
2008-Jan-03 18:43 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
On Jan 3, 2008 8:36 PM, Tim Uckun <timuckun at gmail.com> wrote:> On Jan 2, 2008 4:05 AM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote: > > Try saying require ''rubygems'' first. > > I tried that. It still doesn''t seem to work. As I said I think the > install went wrong somehow. Gem search evenmachine shows no results so > obviously some index internally hasn''t been updated. > > Maybe something is wrong with my gems. When I attempt to run gem > generate_index I get the following error > > gem generate_index > Generating index for 0 gems in . >Tim, are you able to use an earlier EM version that is precompiled for Win32 (I think 0.8.0 is available)? At least that way you can get started with your application. I think that as a general rule, the deployment model for Windows has to be with precompiled gems, because the build-chain problem is such a bear on Windows (requiring VC6; requiring a compiler in the first place; etc, etc). -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080103/2410284a/attachment.html
Roger Pack
2008-Jan-07 13:48 UTC
[Eventmachine-talk] Problems trying to install .10 on windows.
Try re-running it? I can send you a copy of the latest if you''d like. -Roger On Jan 3, 2008 6:36 PM, Tim Uckun <timuckun at gmail.com> wrote:> On Jan 2, 2008 4:05 AM, Francis Cianfrocca <garbagecat10 at gmail.com> wrote: > > Try saying require ''rubygems'' first. > > I tried that. It still doesn''t seem to work. As I said I think the > install went wrong somehow. Gem search evenmachine shows no results so > obviously some index internally hasn''t been updated. > > Maybe something is wrong with my gems. When I attempt to run gem > generate_index I get the following error > > gem generate_index > Generating index for 0 gems in . > > Loaded all gems > Generating master indexes (this may take a while) > ERROR: While executing gem ... (Errno::EACCES) > Permission denied - > C:/DOCUME~1/tim/LOCALS~1/Temp/gem_generate_index_4236/quick or ./quick > > What an odd error message. How could I not have permissions to temp in > my own profile? > _______________________________________________ > > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-- -Roger Pack For God hath not given us the spirit of fear; but of power, and of love, and of a sound mind" -- 2 Timothy 1:7