--enable-rubyinterp -- Ruby 1.9 < 1.6???

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

--enable-rubyinterp -- Ruby 1.9 < 1.6???

Matthew Huggett
Hi,

I'm just trying out VIM for the first time.  I'd like to compile it
myself because I want it configured with --enable-rubyinterp.  However,
even though "/usr/local/bin/ruby --version" reports "ruby 1.9.0
(2005-05-01)" the VIM configure script tells me my version of Ruby is
too old and must be greater than 1.6.0!  Is there a way to force
configure to go with my version of Ruby?

Details:
VIM 6.3
Ruby 1.9.0 (from CVS)
Slackware 10.0

Thanks for any help

Matt
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: --enable-rubyinterp -- Ruby 1.9 < 1.6???

Hendrik Mangels
Matthew Huggett (2005-06-03, 17:41):
> I'm just trying out VIM for the first time.  I'd like to
> compile it myself because I want it configured with
> --enable-rubyinterp.  However, even though
> "/usr/local/bin/ruby --version" reports "ruby 1.9.0
> (2005-05-01)" the VIM configure script tells me my version of
> Ruby is too old and must be greater than 1.6.0!  Is there a
> way to force configure to go with my version of Ruby?

Is ruby 1.9.0 really used by default? Try:

,----
| (which ruby; ruby --version) | xargs
`----

Hendrik
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: --enable-rubyinterp -- Ruby 1.9 < 1.6???

Matthew Huggett
Hendrik,

Thanks for your answer, but when the configure script checks the Ruby
version, it checks /usr/local/bin/ruby, which is the same as with your
suggestion.  Also, there is no other version of Ruby on my system.
 > ,----
 > | (which ruby; ruby --version) | xargs
 > `----

The output from the above command is
"/usr/local/bin/ruby ruby 1.9.0 (2005-05-01) [i686-linux]"

Regards,

Matt

Hendrik Mangels wrote:

> Matthew Huggett (2005-06-03, 17:41):
>
>>I'm just trying out VIM for the first time.  I'd like to
>>compile it myself because I want it configured with
>>--enable-rubyinterp.  However, even though
>>"/usr/local/bin/ruby --version" reports "ruby 1.9.0
>>(2005-05-01)" the VIM configure script tells me my version of
>>Ruby is too old and must be greater than 1.6.0!  Is there a
>>way to force configure to go with my version of Ruby?
>
>
> Is ruby 1.9.0 really used by default? Try:
>
> ,----
> | (which ruby; ruby --version) | xargs
> `----
>
> Hendrik
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: --enable-rubyinterp -- Ruby 1.9 < 1.6???

Matthew Huggett
In reply to this post by Matthew Huggett
Just to follow up my own query here:

When checking the Ruby version, the VIM configure script actually runs a
   bit of Ruby, not just "ruby --version".  Line 2241 of
vim63/src/auto/configure has
,----
| if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1'
`----
but in Ruby 1.9.0, RUBY_VERSION is used instead of VERSION.  VERSION is
undefined.  Changing the above line to
,----
| if $vi_cv_path_ruby -e 'RUBY_VERSION >= "1.6.0" or exit 1'
`----
allows configuration with --enable-rubyinterp and Ruby 1.9.0

(Guess I should have been more adventurous and checked the configure
script myself before posting-- sorry.)

Matt


Matthew Huggett wrote:

> Hi,
>
> I'm just trying out VIM for the first time.  I'd like to compile it
> myself because I want it configured with --enable-rubyinterp.  However,
> even though "/usr/local/bin/ruby --version" reports "ruby 1.9.0
> (2005-05-01)" the VIM configure script tells me my version of Ruby is
> too old and must be greater than 1.6.0!  Is there a way to force
> configure to go with my version of Ruby?
>
> Details:
> VIM 6.3
> Ruby 1.9.0 (from CVS)
> Slackware 10.0
>
> Thanks for any help
>
> Matt
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: --enable-rubyinterp -- Ruby 1.9 < 1.6???

Bram Moolenaar

Matthew Huggett wrote:

> Just to follow up my own query here:
>
> When checking the Ruby version, the VIM configure script actually runs a
>    bit of Ruby, not just "ruby --version".  Line 2241 of
> vim63/src/auto/configure has
> ,----
> | if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1'
> `----
> but in Ruby 1.9.0, RUBY_VERSION is used instead of VERSION.  VERSION is
> undefined.  Changing the above line to
> ,----
> | if $vi_cv_path_ruby -e 'RUBY_VERSION >= "1.6.0" or exit 1'
> `----
> allows configuration with --enable-rubyinterp and Ruby 1.9.0
>
> (Guess I should have been more adventurous and checked the configure
> script myself before posting-- sorry.)

In the Vim 7 configure script this is used (should work for all Ruby
versions):

        if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then


--
The History of every major Galactic Civilization tends to pass through
three distinct and recognizable phases, those of Survival, Inquiry and
Sophistication, otherwise known as the How, Why and Where phases.
For instance, the first phase is characterized by the question 'How can
we eat?' the second by the question 'Why do we eat?' and the third by
the question 'Where shall we have lunch?'
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
Loading...