我应该在 windows 64 位 sass 上使用哪个 ruby 版本
which ruby version should i use with sass on windows 64-bit
首先我只想安装ruby以使用sass。
我的 os 是 Windows 7 64 位。
喜欢 Sass website 上的推荐:
The fastest way to get Ruby on your Windows computer is to use Ruby
Installer
但是这里不清楚使用哪个版本。引自 Ruby 网站:
If you don’t know what version to install and you’re getting started
with Ruby, we recommend you use Ruby 2.1.X installers.
[...]
The 64-bit versions of Ruby are relatively new on the Windows
area and not all the packages have been updated to be compatible with
it. To use this version you will require some knowledge about
compilers and solving dependency issues, which might be too
complicated if you just want to play with the language."
所以通常我会安装版本 Ruby 2.2.3 (x64)(这是现在最新的)但是在阅读网站后我倾向于 Ruby 2.1.7(甚至 Ruby 2.1.7 (x64))
我真的用google搜索了很多关于这个主题的东西,但没有得到任何深刻的信息。
第一题:x86_64还是32位
根据我的经验,您应该专注于要使用的 gem。也许某些带有 C 代码的 gem 还没有准备好在 x86_64 OS.
上成为 used/compiled
sass 写在 ruby 中,它取决于 yard 和 maruku(来源:https://github.com/sass/sass/blob/stable/sass.gemspec)
maruku好像没有任何依赖(https://github.com/bhollis/maruku/blob/master/maruku.gemspec),写在ruby.
我找过yard,好像是完整的ruby gem,没有任何依赖。
也就是说你使用的ruby版本OS应该是没有问题的(没有编译C代码要做...)。
另一个问题是 ruby 版本。
问题可能来自 Ruby 2.2.3 版本(32 位或 64 位)
这个版本相对较新,有一些变化需要对 gems 进行一些调整。
所以使用 32 位你可以使用所有你想要的 gems,并且不要尝试使用最新版本的 ruby 除非你想尝试最新的功能已实施。
TL;DR: 按照他们的说法使用 Ruby 2.1X 安装程序。
首先我只想安装ruby以使用sass。 我的 os 是 Windows 7 64 位。
喜欢 Sass website 上的推荐:
The fastest way to get Ruby on your Windows computer is to use Ruby Installer
但是这里不清楚使用哪个版本。引自 Ruby 网站:
If you don’t know what version to install and you’re getting started with Ruby, we recommend you use Ruby 2.1.X installers.
[...]
The 64-bit versions of Ruby are relatively new on the Windows area and not all the packages have been updated to be compatible with it. To use this version you will require some knowledge about compilers and solving dependency issues, which might be too complicated if you just want to play with the language."
所以通常我会安装版本 Ruby 2.2.3 (x64)(这是现在最新的)但是在阅读网站后我倾向于 Ruby 2.1.7(甚至 Ruby 2.1.7 (x64))
我真的用google搜索了很多关于这个主题的东西,但没有得到任何深刻的信息。
第一题:x86_64还是32位
根据我的经验,您应该专注于要使用的 gem。也许某些带有 C 代码的 gem 还没有准备好在 x86_64 OS.
上成为 used/compiledsass 写在 ruby 中,它取决于 yard 和 maruku(来源:https://github.com/sass/sass/blob/stable/sass.gemspec)
maruku好像没有任何依赖(https://github.com/bhollis/maruku/blob/master/maruku.gemspec),写在ruby.
我找过yard,好像是完整的ruby gem,没有任何依赖。
也就是说你使用的ruby版本OS应该是没有问题的(没有编译C代码要做...)。
另一个问题是 ruby 版本。
问题可能来自 Ruby 2.2.3 版本(32 位或 64 位)
这个版本相对较新,有一些变化需要对 gems 进行一些调整。
所以使用 32 位你可以使用所有你想要的 gems,并且不要尝试使用最新版本的 ruby 除非你想尝试最新的功能已实施。
TL;DR: 按照他们的说法使用 Ruby 2.1X 安装程序。