To run Ruby on Windows, you have to install Ruby and several developer tools. The following instructions have been tested with Windows 8 and 8.1. Go to Ruby Installer in your web browser. Click the big red Download button. A list of RubyInstallers appears. Click Ruby 2.2.2 near the top of the RubyInstallers list. On Windows machines, you can use RubyInstaller. See the Installation page for details on using package management systems or third-party tools. Of course, you can also install Ruby from source on all major platforms. Compiling Ruby — Source Code. Let’s get it installed so we can use it to install Ruby. The quickest way to install Ruby with RVM is to run the installation script hosted on the RVM web site. First, use the gpg command to contact a public key server and request the RVM project’s key which is used to sign each RVM release. This lets you verify the legitimacy of the RVM release you’ll download.
This question already has an answer here:
Install Ruby On Windows 10 Update
- Installing Ruby on Rails on Windows 7 - quick and easy [closed] 2 answers
I have a normal machine running Windows 10. What's the simplest way to install Ruby on Rails on it? I've found a few different guides online but they all give different instructions. I'm looking for the 'official' way, if there is one.
marked as duplicate by bahrep, Yu Hao, ArtOfCode, user6263819, Infinite RecursionNov 23 '16 at 11:52
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1 Answer
Historically it's been pretty complicated, but on Windows 10 it's actually really simple. Just go here, and download your preferred edition of Ruby. It's a really straightforward installation process. At the end just check your Ruby and Rails versions to make sure everything's properly installed. I'm not sure if this is the 'official' way, but it works and it's really simple.
Joe MoranoJoe MoranoFirst off, sorry for my bad English.
I'm trying to install Ruby 2.3.0 on my system with rbenv via Windows Subsystem for Linux aka Ubuntu on Windows 10. I followed this instruction (but not 100% exactly). but every time I try, It fails to build Ruby with this log.
and this is my installed package list
As you see, I installed X11, tcl, tk but my system can't detect them. Have I done wrong? or it is just a bug?
Any help would be appreciated. Thank you for reading.
2 Answers
1. Install Ruby
First some dependencies for Ruby:
Now for Ruby: there are 3 ways to install, each way conflict with each other, so choose one you think fit yours most or my suggestion: rbenv
Using rbenv (recommend)
Using rvm
From the source
After install Ruby, install Bundler
2. Install Rails
First you need NodeJS:
Then install rails:
If you're using rbenv
, you'll need to run the following command to make the rails executable available:
Now that you've installed Rails, you can run the rails -v command to make sure you have everything installed correctly:
3. Install DB
MySQL:
You can install MySQL server and client from the packages in the Ubuntu repository. As part of the installation process, you'll set the password for the root user. This information will go into your Rails app's database.yml file in the future.
PostgreSQL:
Currently, some bug prevents you from installing Postgres correctly, so I recommend you MySQL for now.
The Postgres installation doesn't setup a user for you, so you'll need to follow these steps to create a user with permission to create databases. Feel free to replace chris with your username.
Install Ruby On Windows 10 64
Final Steps
Now make sure things go right not left
My installation follow this great tutorial: link here.
kenorbMake sure you have updated your Windows installation - run 'Windows 10 Upgrade Assistant' and install the Windows 10 Creators Update. Anything before this is riddled with bugs and my rbenv
Rails install wouldn't work. If it still won't work after updating Windows to CU then you can always just use rvm
instead. You may need to reinstall everything anyway, as its recommended to reinstall/upgrade Ubuntu if you are using WSL.