jlund / spotify-export

A simple Ruby utility that uses Spotify's Web API to export a playlist as plain text
MIT License
293 stars 42 forks source link

Missing requirement for devkit #9

Closed LemADEC closed 7 years ago

LemADEC commented 8 years ago

While trying to use on Windows, bundle install fails on json due to missing devkit.

Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Installing i18n 0.7.0
Installing json 1.8.3 with native extensions

Gem::InstallError: The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
Installing minitest 5.8.4
Installing thread_safe 0.3.5
Installing builder 3.2.2
Installing arel 6.0.3
Installing diff-lcs 1.2.5
Installing rspec-support 3.4.1
Installing ruby-progressbar 1.7.5
Installing sqlite3 1.3.11
Using bundler 1.12.4
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
jlund commented 7 years ago

I haven't ever run this on Windows or used RubyInstaller, but it looks like there are some additional steps in order to enable support for certain gems (like the json gem upon which spotify-export relies). Following the instructions from the URL in the RubyInstaller error you pasted above should work. This doesn't appear to be a bug in the utility itself.