
When I changed my machine (Windows 7), I was forced to used bundle install again and found out an issue on installing one of the gems, specifically json.
Entering
install gem json, still creates an error.'make' is not recognized as internal or external command
Reading the logs, I was informed thatmake is an unavailable command. Actually, windows does not support the make command at all.In this case, we would need to install a devkit for the said command. You may need to download the devkit files and install it.
The devkit files
- Extract the zip files inside a directory
- Add the
[devkit-directory]/binin your %PATH% in the environment variables
- Add also your ruby directory (in my case is within the Instant Rails directory) in the said %PATH%
This is required to configure your devkit, else the system would look for other missing commands such as gcc.exe

- Now re-run all your consoles (cli)
- Re-run your
bundle installcommand
That should do the trick.
Troubleshoot -- make: gcc: Command not found
During the installation of the devkit, I encoutered the error regarding gcc. I was able to fixed it by configuring the devkit properly.- Go to the
[devkit-directory]/bin
- Run the following:
ruby dk.rb init
This will generate config.yml
- Open config.yml and add your ruby directory.
- Run the following command:
ruby dk.rb install
- Restart all CLI
Categories
installing Rails and other gems on Windows platform, IMO is nightmare.
ReplyDeleteIMHO,better to switch to Linux based platform if you want to run a Rails app.
If you need a Windows , you can have it on virtual box or as dual-OS on your box.
Kevin
yeah I know.. windows and rails is such a painful combination.. but sometimes you just have to deal with the available resources right ;)
ReplyDeleteyeah , and that's what I mean with "nightmare"
ReplyDelete