简体   繁体   English

在Windows7上安装Twitter Gem

[英]Install twitter gem on windows7

Trying to setup a windows development machine for a Rails project that has a dependency on the twitter gem. 尝试为依赖于twitter gem的Rails项目设置Windows开发机器。

I get an error when I try and do gem install twitter. 当我尝试执行gem install twitter时出现错误。

It needs to build native extensions and using --platform=mswin32 didn't work like for other GEMs 它需要构建本机扩展,并且使用--platform = mswin32不能像其他GEM一样工作

Using ubuntu is really not an option. 使用ubuntu确实不是一种选择。 I need the computer I am using for too many other windows things. 我需要用于其他Windows的计算机。

You have probably heard this before, but as you get more seriously into ruby stuff, you are going to run into more and more issues running ruby on windows. 您以前可能已经听说过,但是随着您对红宝石材料的日益重视,您将在Windows上运行红宝石的问题越来越多。

That being said, if all you need is to compile, head over to http://rubyinstaller.org and install your ruby through the provided installer. 话虽如此,如果您只需要编译,请转至http://rubyinstaller.org并通过提供的安装程序安装ruby。 After that is done, hit "Add Ons" off of the main page, and download the dev kit. 完成之后,点击主页上的“ Add Ons”,然后下载开发套件。 Extract that in your ruby directory, and you should now be able to build native extensions. 将其解压缩到ruby目录中,您现在应该能够构建本机扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM