Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'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?

like image 234
user3260475 Avatar asked Nov 24 '14 01:11

user3260475


2 Answers

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 .

like image 107
Sunil Thakur Avatar answered Nov 10 '22 07:11

Sunil Thakur


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.

like image 38
codeepic Avatar answered Nov 10 '22 07:11

codeepic