Previous Encounter
Previously, I use InstantRails for Windows installment but, correct me if I am wrong, this method is long gone supported and isn't used anymore.So what I'm after right now is to use something similar to RVM (rbenv) which is easy to install on Windows and here is where PIK comes in.
Current Specifications and Requirements
As mentioned, operating system is Windows 10 (64-bit).For my RoR, what I'll be needing are versions Rails 3.2 and 4.2.
Both uses MySQL 5.5.x. Though I won't be discussing as to how to set this up. I usually just use a WAMP for this matter.
Installation Steps
- Download first at least one of the Ruby interpreter environment in RubyInstallers.org. Usually I pick both the version I need which is this writing is 1.9.3 (for Rails 3.2) and 2.2.3 (for Rails 4.2)
Steps on installing should be pretty straightforward with its installation wizard.
- Next is to download Pik from github. As of this writing, the latest version is Pik-0.3.0.
NOTE: Pik, as of 2012, is no longer maintained but as of my test this should still work and so far the easiest, from what I have tried, to install.
- [OPTIONAL] Add on the PATH environments the installation folder of Pik so you can easily use pik command without going through the folder location. The usual process goes as follows:
- Open This PC, Right-click and select Properties
- Select the Advanced System Settings (on the left side)
- Click the Environment Variables button
- Under System Variables, select Path, then click Edit.
- After installing, next should be adding the bin folders by adding
>pik add [BIN FOLDER OF RUBY]
where the bin folder shold be similar to this: C:\Ruby[version]\bin
- To verify if the ruby versions are installed, you can simply type:
>pik list
- To change version, type:
>pik default
>pik use [RUBY VERSION]
- That's it! Use ruby -v to check the version.
No comments :
Post a Comment