Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![victorosornio](https://secure.gravatar.com/avatar/cacaf6574fea4a338533139fa6307c54?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
victorosornio
1,689 Pointsjson gem error
E:>cd Html-Css\Ruby\Ruby22-x64\bin
E:\Html-Css\Ruby\Ruby22-x64\bin>gem install rails Successfully installed rails-4.2.3 Parsing documentation for rails-4.2.3 Done installing documentation for rails after 6 seconds 1 gem installed
E:\Html-Css\Ruby\Ruby22-x64\bin>rails new testapp create create README.rdoc create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/javascripts/application.js create app/assets/stylesheets/application.css create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/views/layouts/application.html.erb create app/assets/images/.keep create app/mailers/.keep create app/models/.keep create app/controllers/concerns/.keep create app/models/concerns/.keep create bin create bin/bundle create bin/rails create bin/rake create bin/setup create config create config/routes.rb create config/application.rb create config/environment.rb create config/secrets.yml create config/environments create config/environments/development.rb create config/environments/production.rb create config/environments/test.rb create config/initializers create config/initializers/assets.rb create config/initializers/backtrace_silencers.rb create config/initializers/cookies_serializer.rb create config/initializers/filter_parameter_logging.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/session_store.rb create config/initializers/wrap_parameters.rb create config/locales create config/locales/en.yml create config/boot.rb create config/database.yml create db create db/seeds.rb create lib create lib/tasks create lib/tasks/.keep create lib/assets create lib/assets/.keep create log create log/.keep create public create public/404.html create public/422.html create public/500.html create public/favicon.ico create public/robots.txt create test/fixtures create test/fixtures/.keep create test/controllers create test/controllers/.keep create test/mailers create test/mailers/.keep create test/models create test/models/.keep create test/helpers create test/helpers/.keep create test/integration create test/integration/.keep create test/test_helper.rb create tmp/cache create tmp/cache/assets create vendor/assets/javascripts create vendor/assets/javascripts/.keep create vendor/assets/stylesheets create vendor/assets/stylesheets/.keep run bundle install Fetching gem metadata from https://rubygems.org/............ Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Resolving dependencies............. Using rake 10.4.2 Using i18n 0.7.0 Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
E:/Html-Css/Ruby/Ruby22-x64/bin/ruby.exe -r ./siteconf20150729-11172-y1e25o.
rb extconf.rb creating Makefile
make "DESTDIR=" clean 'make' is not recognized as an internal or external command, operable program or batch file.
make "DESTDIR=" 'make' is not recognized as an internal or external command, operable program or batch file.
make failed, exit code 1
Gem files will remain installed in E:/Html-Css/Ruby/Ruby22-x64/lib/ruby/gems/2.2
.0/gems/json-1.8.3 for inspection.
Results logged to E:/Html-Css/Ruby/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64
-mingw32/2.2.0/json-1.8.3/gem_make.out
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.
This is my cmd screen and when I launch the testapp, it then sent me this. i don't know what to do next thanks for the help.
1 Answer
![Dustin McVay](https://secure.gravatar.com/avatar/24929a7e74feed7addfcfdab21d7dc7d?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Dustin McVay
3,334 PointsI had the same issue and found a solution on stackoverflow. You should install json_pure instead of json using the command:
gem install json_pure
There appears to be some sort of conflict with json and Windows that doesn't exist in json_pure. They are supposed to be the same, except json is written in C while json_pure is written in Ruby. Using json is generally recommend, as code written in C is faster, but everything seems to work fine so far using json_pure.