开发者

Error: Error installing spork: The 'spork' native gem requires installed build tools

I started work with Ruby on Rails in about two weeks ago and now im having a problem with SPORK. i can´t start the server because its sayin that The 'spork' native gem requires installed build tools and saying to u开发者_JAVA技巧pdate your PATH to include buil, tools od donwload the DevKit.

I dont know how to fixed that, im using ruby 1.8.7 on rails 2.3.9.


You need to compile ruby from source. This is really not as scary as it seems.

The easiest method for doing this is using RVM. RVM will download the desired ruby source and compile automatically. Unfortunately RVM is *NIX dependent. For windows look at Building Ruby on Windows XP.

The rvm command would be something like:

rvm install 1.8.7

http://rvm.beginrescueend.com/rvm/install/

Note: You will have to reinstall any gems your app is dependent on once you get ruby installed through RVM. However, you can swtich between your rvm ruby, and your system ruby at any time.

EDIT: RVM is not platform independent, my bad.


As the error says, you need build tools (the ability to compile) to install gems with native extensions. For more info, please tell us what platform you are on.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜