Since my patches to rubyinline seem to be mostly ignored [well, can''t blame them since they don''t have a mingw compiler to test them on], I''ve published a gem that does. http://github.com/rogerdpack/rubyinline/tree/master gem uninstall RubyInline gem install rogerdpack-RubyInline If it''s useful to anyone. Enjoy. =r
On Mon, Jul 20, 2009 at 11:12 AM, Roger Pack<rogerdpack at gmail.com> wrote:> Since my patches to rubyinline seem to be mostly ignored [well, can''t > blame them since they don''t have a mingw compiler to test them on], > I''ve published a gem that does. > > http://github.com/rogerdpack/rubyinline/tree/master > > gem uninstall RubyInline > gem install rogerdpack-RubyInline > > If it''s useful to anyone. > Enjoy.Hello Roger. RubyInline works with MinGW. I''ve used it several times and released updates for ParseTree. Gems like ParseTree needs to bundle the extension binaries, something that can be done with rake gem INLINE=1 -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry
> RubyInline works with MinGW. I''ve used it several times and released > updates for ParseTree.Hmm. Here''s my experience with it: C:\dev\ruby\downloads\RubyInline-3.8.2\demo>gem install RubyInline Successfully installed RubyInline-3.8.2 1 gem installed C:\dev\ruby\downloads\RubyInline-3.8.2\demo>ruby -v hello.rb ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32] gcc.exe: no input files c:/ruby18/lib/ruby/gems/1.8/gems/RubyInline-3.8.2/lib/inline.rb:589:in `build'': error executing "gcc -shared -s -g -O2 -I c:/ruby18/lib/ruby/1.8/i386-mingw32 -I c:/ruby18/include -Lc:/ruby18/lib -o \"C:\\\\Documents and Settings\\\\packrd/.ruby_inline/Inline_Hello_5d41.so\" \"C:/Documents and Settings/packrd/.ruby_inline/Inline_Hello_5d41.c\" -Wl,--enable-auto-import -Lc:/ruby18/lib -lmsvcrt-ruby18": 256 (CompilationError) Renamed C:\Documents and Settings\packrd/.ruby_inline/Inline_Hello_5d41.c to C:\Documents and Settings\packrd/.ruby_inline/Inline_Hello_5d41.c.bad from c:/ruby18/lib/ruby/gems/1.8/gems/RubyInline-3.8.2/lib/inline.rb:819:in `inline'' from hello.rb:7 C:\dev\ruby\downloads\RubyInline-3.8.2\demo>gem uninstall RubyInline ... Successfully uninstalled RubyInline-3.8.2 C:\dev\ruby\downloads\RubyInline-3.8.2\demo>gem install rogerdpack-RubyInline Successfully installed rogerdpack-RubyInline-3.8.2.1 1 gem installed C:\dev\ruby\downloads\RubyInline-3.8.2\demo>ruby -v hello.rb ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32] hello world Thanks. =r
On Mon, Jul 20, 2009 at 11:55 AM, Roger Pack<rogerdpack at gmail.com> wrote:>> RubyInline works with MinGW. I''ve used it several times and released >> updates for ParseTree. > > Hmm. > > Here''s my experience with it: > > C:\dev\ruby\downloads\RubyInline-3.8.2\demo>gem install RubyInline > Successfully installed RubyInline-3.8.2 > 1 gem installed > > C:\dev\ruby\downloads\RubyInline-3.8.2\demo>ruby -v hello.rb > ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32] > gcc.exe: no input files > c:/ruby18/lib/ruby/gems/1.8/gems/RubyInline-3.8.2/lib/inline.rb:589:in > `build'': error executing "gcc -shared -s ? -g -O2 ?-I > c:/ruby18/lib/ruby/1.8/i386-mingw32 ?-I c:/ruby18/include > -Lc:/ruby18/lib -o \"C:\\\\Documents and > Settings\\\\packrd/.ruby_inline/Inline_Hello_5d41.so\" \"C:/Documents > and Settings/packrd/.ruby_inline/Inline_Hello_5d41.c\" > -Wl,--enable-auto-import -Lc:/ruby18/lib -lmsvcrt-ruby18": 256 > (CompilationError) > Renamed C:\Documents and > Settings\packrd/.ruby_inline/Inline_Hello_5d41.c to C:\Documents and > Settings\packrd/.ruby_inline/Inline_Hello_5d41.c.bad > ? ? ? ?from c:/ruby18/lib/ruby/gems/1.8/gems/RubyInline-3.8.2/lib/inline.rb:819:in > `inline'' > ? ? ? ?from hello.rb:7 >The problem clearly resides on path with spaces and escaping. Since I never had a environment with spaces due networked profile (roaming), and now on Windows 7 as "C:\Users" folder... Will take a look and send my patches to Ryan, he is now more willing to commit those. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry