≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #1652

Feature request #1652: Installing Command-T with Vim 7.3 on Windows XP

Kind feature request
Product Command-T
When Created 2010-08-22T15:22:27Z, updated 2012-01-12T02:30:53Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

From a user email:

Hello Win,

I'm trying to install the command-t plugin for vim.

But I come until the command ruby extconf.rb.

The output of this command is:

checking for ruby.h ... ***extconf.rb failed ****
Could not create Make file due to some reason, probably....
[...]

What can be wrong?

What should I do to make it work?

Some info about what I have and what I've done:

  • I'm using windows XP
  • I use the gvim73.exe from the officeal vim site
  • When I open a dosbox, the command "vim --version" says ... -ruby ...

- I've downloaded ruby 191p340 from http://rubyinstaller.org/download.html and installed it in c:\ruby191

- I've downloaded the development kit from http://github.com/oneclick/rubyinstaller/downloads and extracted the files in the C;\Ruby191 I choose the version 3.4.5. Version 4.5.0 is from the same day, but I thought 3.4.5 is more stable to try it first.

  • I rebooted the pc.
  • In a dosbox I typed the command path and then it says (amongst others) c:\Ruby191\bin;
  • Go to C:\program files\vim\vimfiles\ruby\command-t
  • Typed ruby extconf.rb and got the error.

Rgds, Jeri

Comments

  1. Greg Hurrell 2010-08-22T15:28:30Z

    Hi Jeri,

    Not being able to find the ruby.h header is a problem, but it seems that your version of Vim wasn't built with Ruby support at all (indicated by the -ruby in the --version output).

    I've seen a couple of threads on the vim_use group asking about Ruby support in Vim 7.3:

    • http://groups.google.com/group/vim_use/browse_thread/thread/f908089b90f46bf1 (this one is your thread, actually)
    • http://groups.google.com/group/vim_use/browse_thread/thread/6386d0475ed34ca0 (thread by another person)

    I'm not actually sure what the problem with 7.3 is here, as under 7.2 Ruby support was definitely included in the binary download from www.vim.org.

    Perhaps one of those vim_use threads will receive an answer from somebody who knows about getting a working Ruby set-up with Vim on Windows. In the meantime, you could go back to 7.2.

    When 7.3 came out I updated the installation instructions for 7.3.

    But it looks like I may have to revert that commit and go back to recommending 7.2 and 1.8.7, at least on Windows.

  2. anonymous 2010-08-23T03:55:21Z

    Wincent wrote: ....In the meantime, you could go back to 7.2.....

    I checked my 7.2 version (offical release of aug 2008) with: vim --version and there it also says -ruby.

  3. Greg Hurrell 2010-08-23T05:42:03Z

    I'm on a Mac here, but I've got a virtual machine with Windows XP in it so will see if I can reproduce the issue and find out how to get things working.

  4. anonymous 2010-08-23T07:17:19Z

    From the vim group I got the message:

    I think you want Vim for Windows? See 'Vim without Cream' at: http://vim.wikia.com/wiki/download

    That gives you a 'huge' build which includes Ruby. The release notes include: -DDYNAMIC_RUBY_DLL="msvcrt-ruby18.dll" -DDYNAMIC_RUBY_VER=18

    I guess that specifies what version is required?

    I've installed that vim version which says when I type vim --version: ... +ruby ... However When I (in a dosbox) go to C:\program files\vim\vimfiles\ruby\command-t And type again: ruby extconf.rb I get the same error message

    Could not create Make file due to some reason, probably....
    [...]

    Is that now because this vim version is compiled with 181, and my ruby is 191?

    Rgds, Jeri

  5. Greg Hurrell 2010-08-23T07:52:27Z

    I don't know why ruby extconf.rb is failing, but even if it weren't, you do need to use the same version of Ruby for both Command-T and Vim. So if you've got a version of Vim now that links against Ruby 1.8, you'll need to build with Ruby 1.8.

    So I guess the 1.8.7 download from http://rubyinstaller.org/downloads/ would be worth a try.

  6. anonymous 2010-08-23T09:19:59Z

    Downloaded 1.8.7

    Doing "ruby extconf.rb" again

    checking for ruby.h... no
    couldn't find ruby.h (required)
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, ......
  7. Greg Hurrell 2010-08-23T09:27:34Z

    The extconf.rb failure is something to do with your Ruby installation. My guess is that you are missing the dev kit:

    • http://wiki.github.com/oneclick/rubyinstaller/development-kit
  8. Greg Hurrell 2010-08-23T09:53:37Z

    Ok, I've had a chance to test this on Windows XP. Works fine.

    Downloading

    From the page you reference, http://vim.wikia.com/wiki/Download, which directs us to http://sourceforge.net/projects/cream/files/. I picked the top download in the list, gvim-7.3.3.exe:

    issue-1652/01-downloading-vim.png

    Installing

    issue-1652/02-installing-vim.png

    Downloading the latest Command-T vimball

    issue-1652/03-downloading-command-t.png

    Opening the Command-T vimball

    issue-1652/04-opening-the-vimball-archive.png

    Extracting the vimball using :so %

    issue-1652/05-installing-the-vimball-archive.png

    Opening the command prompt

    issue-1652/06-opening-the-command-prompt.png

    Compiling

    issue-1652/07-compiling.png

    Opening Vim

    issue-1652/08-opening-vim.png

    Using Command-T

    issue-1652/09-using-command-t.png

    So I'd say if you install the dev kit (the 3.4.5 one from http://rubyinstaller.org/downloads/) you should be fine. The procedure is shown in detail in the Windows installation screencast on the Command-T product page, and also in the documentation.

  9. Greg Hurrell 2010-08-23T10:04:57Z

    I've updated the docs with the latest links etc for installation on Windows.

    Going to mark this one as closed.

  10. Greg Hurrell 2010-08-23T10:05:06Z

    Status changed:

    • From: new
    • To: closed
  11. anonymous 2010-08-23T14:31:24Z

    installing the development kit did do the trick

  12. anonymous 2010-09-28T18:24:33Z

    I followed these instructions to a T, twice, but was still getting an error from the 'ruby extconf.rb' command: checking for ruby.h... no

    Looking around in my C:\Ruby187 directory, I noticed a file called devkitvars.bat, which is used to manually configure the environment to use the DevKit for compiling native ruby extensions. So I ran that, then went back to vim\vimfiles\ruby\command-t directory and ran 'ruby extconf.rb' again and it worked.

    I assume the 'Start command prompt with Ruby' command on the Windows Start Menu should set up the environment correctly, but in my case, it didn't. (Windows XP Professional SP3)

  13. anonymous 2011-02-10T05:01:25Z

    Running devkitvars.bat did the trick.

  14. anonymous 2011-09-21T22:27:39Z

    Here (http://rfbrazier.posterous.com/installing-the-command-t-vim-plugin-on-window) is a good step-for-step instruction.

    (I had problems because my cygwin installation interacted with RubyInstaller)

    Thanks for command-T!

  15. anonymous Created 2012-01-12T02:30:53Z, edited 2012-01-14T16:45:13Z

    I too had to run 'devkitvars.bat' in a command window with ruby support, then with the window still open finish the remaining two steps:

    ruby extconf.rb
    make

    Now I have command-t working in Windows with Vim 7.3 and Ruby 193

    And yeah, thanks for Command-T!!! Love it so much at home on the mac I had to get it onto my work windows machine.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets