简体   繁体   中英

Install twitter gem on windows7

Trying to setup a windows development machine for a Rails project that has a dependency on the twitter gem.

I get an error when I try and do gem install twitter.

It needs to build native extensions and using --platform=mswin32 didn't work like for other GEMs

Using ubuntu is really not an option. I need the computer I am using for too many other windows things.

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.

That being said, if all you need is to compile, head over to http://rubyinstaller.org and install your ruby through the provided installer. After that is done, hit "Add Ons" off of the main page, and download the dev kit. Extract that in your ruby directory, and you should now be able to build native extensions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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