Installing native Ruby extensions on Windows for Jekyll

后端 未结 2 1854
旧时难觅i
旧时难觅i 2021-02-05 23:15

I\'m about to go crazy here so I\'ll just ask:

How the hell do you install the Ruby Gem Jekyll on Windows.

Jekyll depends on fast-stemmer-1.0.0 and that has to b

相关标签:
2条回答
  • 2021-02-05 23:31

    There is a confusion with the instructions you're following. The instructions at RubyInstaller DevKit were created to support installation of extensions using RubyInstaller compiled versions of Ruby.

    It is clear, from your current directory (visual studio) and the output of the gem installation you're using mswin32 based Ruby, which will not work with RubyInstaller or the DevKit we documented.

    Please install Ruby and the DevKit from RubyInstaller website and follow the instructions there and avoid mixing with Visual Studio

    0 讨论(0)
  • 2021-02-05 23:41

    Where does that mswin32 come from? Are you using the DevKit with the mswin32 port of MRI? The DevKit is only for the current MinGW port of MRI and YARV, it does not work with the mswin32 port (which, BTW, has been obsolete for quite some time now).

    If you use the mswin32 port, you are more or less on your own. In particular, you must use Microsoft Visual C++ 6.0, because that's what the mswin32 port is compiled with, and later versions of Visual C++ are not guaranteed to be binary compatible. Visual C++ 10.0 (which is what you seem to be using) does not work. Try forcing the platform by explicitly calling gem install --platform=mswin32 fast-stemmer or even gem install --platform=x86-mswin32-60 fast-stemmer. That way, if the maintainer has provided a pre-compiled version, you don't need to compile it yourself.

    If you do not use the mswin32 port but rather the MinGW port, try explicitly calling gem install --platform=ruby fast-stemmer. And if that doesn't help, try gem install --platform=x86-mingw32 fast-stemmer

    0 讨论(0)
提交回复
热议问题