On 22 August 2010 16:50, Tony Mechelynck <[email protected]> wrote:
> On 22/08/10 16:23, Jon wrote:
>>
>> I successfully build gvim with dynamic ruby support on a Win7 32-bit
>> system using the mingw ruby and gcc 4.5.0 from
>> http://rubyinstaller.org/downloads and the following simple Make_mingw.mak
>> mods:
>>
>> -#RUBY=c:/ruby
>> +RUBY=c:/ruby192
>>  ifdef RUBY
>>  ifndef DYNAMIC_RUBY
>>  DYNAMIC_RUBY=yes
>>  endif
>>  #  Set default value
>>  ifndef RUBY_VER
>> -RUBY_VER = 16
>> +RUBY_VER = 191
>>  endif
>>  ifndef RUBY_VER_LONG
>> -RUBY_VER_LONG = 1.6
>> +RUBY_VER_LONG = 1.9.1
>>  endif
>>
>> However, ":echo has('ruby')" returns 0 and ":ruby puts 'Hello'" returns
>>
>> E448: Could not load library function rb_str2cstr
>> E266: Sorry, this commands is disabled, the Ruby library could not be
>> loaded.
>>
>> Running ":version" shows "+ruby/dyn" and
>> -DDYNAMIC_RUBY_DLL="msvcrt-ruby191.dll" and PATH has C:\ruby192\bin
>> containing msvcrt-ruby191.dll
>>
>> Any ideas on what's going wrong?
>>
>> Jon
>>
>
> Ruby 1.9.1 or Ruby 1.9.2? Or did you compile with the *.h include files of
> 1.9.2 (from C:\ruby192\include or wherever) and try to run with the 1.9.1
> DLL?

1.9.2 is library-compatible with 1.9.1, so internal version of 192 is
191, it names libraries with 191, and stuff is installed under 1.9.1

Cheers,
Leo

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui