parseb
parseb

Reputation: 137

'x64_mingw' is not a valid platform

When I run rails new app command the process stops at bundle giving me the above error. I have ruby 2.0.0p195, rails 4.2.0.beta4. I m trying to follow on Michael Hartl's tutorial. The command worked fine I think until I installed this version of rails... I tried to uninstall it but it looks like gem uninstall does not want to work. What should I do?

Upvotes: 5

Views: 5728

Answers (2)

codeepic
codeepic

Reputation: 4102

I assume you are on Windows machine, right? I had the same problems, tried a lot of things only to be defeated by the same error that brought you here.

My fix: 1. Uninstall both Ruby and Rails and Rails Installer and anything related to RoR you have installed so far on your machine. Go to Control Panel to do so. 2. Visit http://railsftw.bryanbibat.net/ and download Ruby on Rails installer. 3. Use Ruby on Rails.

Upvotes: 1

Sunil Thakur
Sunil Thakur

Reputation: 146

check your gemfile you will see there like this gem 'tzinfo-data', platforms: [:mingw, :mswin] OR gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

if you have gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] then replace this with gem 'tzinfo-data', platforms: [:mingw, :mswin]

and after that save file and fire bundle update command .

Upvotes: 12

Related Questions