[Rubyinstaller-devel] rubyinline mingw

Luis Lavena luislavena at gmail.com
Mon Jul 20 10:58:48 EDT 2009

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
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

More information about the Rubyinstaller-devel mailing list