# Pik 0.2.1 Released

**URL:** <https://www.ruby-forum.com/t/pik-0-2-1-released/177554>\
**Category:** Ruby\
**Created:** [October 20, 2009, 5:16am UTC](https://www.ruby-forum.com/t/pik-0-2-1-released/177554 "2009-10-20T05:16:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordon321](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/d2c977/32.png) [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Post date:** [October 20, 2009, 5:16am UTC](https://www.ruby-forum.com/t/pik-0-2-1-released/177554/1 "2009-10-20T05:16:05Z")

</div>

pik version 0.2.1 has been released!

- [http://github.com/vertiginous/pik](http://github.com/vertiginous/pik)
- [http://rubyforge.org/projects/pik/](http://rubyforge.org/projects/pik/)
- 

Pik is a tool to switch between multiple versions of ruby on Windows.

Or to put it another way

doskey rvm=pik $\* # (sort of)

You have to tell it where your different ruby versions live using ‘pik  
add’. Then you can change to one by using ‘pik switch’. You can also  
get new versions with ‘pik install’.

It also supports running commands/code with all versions configured.

pik run # Runs commands on the command line  
pik ruby # Runs using the ruby interpreter for each version  
(ruby.exe, jruby.bat, ir.exe)  
pik gem # Runs using the gem command for each version (gem.bat,  
igem.bat)

Synopsis:

> pik help commands

add Adds another ruby location to pik.  
checkup|cu Checks your environment for current Ruby best  
practices.  
config Adds/modifies configuration options.  
default Switches back to the default settings.  
gem Runs the gem command with all versions that pik is  
aware of.  
gemsync Duplicates gems from the current version to the one  
specified.  
help Displays help information.  
implode Removes your pik configuration.  
install|in Downloads and installs different ruby versions.  
list|ls Lists ruby versions that pik is aware of.  
remove|rm Removes a ruby location from pik.  
ruby|rb Runs ruby with all versions that pik is aware of.  
run Runs command with all versions of ruby that pik is  
aware of.  
switch|sw|use Switches ruby versions based on patterns.  
tag Adds the given tag to the current version.  
tags Runs the pik command against the given tags.

For help on a particular command, use ‘pik help COMMAND’.

Requirements:

Windows, more than one version of Ruby (otherwise, what’s the point?)  
and Rubygems

Install:

1. If you’ve used a version previous to this one, you’ll need to  
uninstall them.  
Don’t worry, this will leave your pik config intact.

2. Install the pik gem

3. You need to install pik to a location that’s in your path, but  
someplace other than your ruby\bin dir

4. Add all the versions of ruby that you want to use with pik

Changes:

### 0.2.1 / 2009-10-19

- bugfix - path to pik could have spaces - thanks, Dominic S.
- update install instructions

### 0.2.0 / 2009-10-18

- pik is now an exerb compiled executable, and must be installed to a  
location that is in the system path, but is seperate from ruby
- added pik\_install command
- added support for IronRuby and Jruby
- added install command to install new Ruby versions
- added tag and tags command
- added cucumber functional tests
- updated gem post-install message
- changed pik run to run in ruby instead of in a batch file.
- Added pik ruby and pik gem commands.

---

<div class="post-metadata">

**Author:** ![gordon321](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/d2c977/32.png) [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Post date:** [October 20, 2009, 6:50am UTC](https://www.ruby-forum.com/t/pik-0-2-1-released/177554/2 "2009-10-20T06:50:19Z")

</div>

Thanks GordonC:\Documents and Settings\dominic e sisneros\>pik install  
jruby  
\*\* Downloading:  
[http://dist.codehaus.org/jruby/1.4.0RC1/jruby-bin-1.4.0RC1.zip](http://dist.codehaus.org/jruby/1.4.0RC1/jruby-bin-1.4.0RC1.zip)  
to: C:\Documents and Settings\dominic e sisneros\My  
Documents.pik\downloads\jruby-bin-1.4.0RC1.zip

\*\* Extracting: C:\Documents and Settings\dominic e sisneros\My  
Documents.pik\downloads\jruby-bin-1.4.0RC1.zip  
to: C:\Documents and Settings\dominic e sisneros\My  
Documents\bin\pik\jruby\_140RC1  
done

‘C:\Documents’ is not recognized as an internal or external command,  
operable program or batch file.

There was an error  
Error: private method `gsub’ called for nil:NilClass

in: pik/commands/command.rb:123:in `get_version' in: pik/commands/add_command.rb:23:in `add’  
in: pik/commands/add\_command.rb:13:in `execute' in: pik/commands/install_command.rb:104:in `add’  
in: pik/commands/install\_command.rb:55:in `execute’  
in: pik:35

One other problem when installing jruby I get the following output:

---

<div class="post-metadata">

**Author:** ![gordon321](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/d2c977/32.png) [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Post date:** [October 20, 2009, 9:04am UTC](https://www.ruby-forum.com/t/pik-0-2-1-released/177554/3 "2009-10-20T09:04:24Z")

</div>

On 20/10/09 06:49 , Dominic S. wrote:

> Documents\bin\pik\jruby\_140RC1  
> done
> 
> ‘C:\Documents’ is not recognized as an internal or external command,  
> operable program or batch file.

OK, this is a typical problem in the Windows world 🙂  
You need to put the path containing spaces in “” so that it is  
interpreted as a single command line parameter (and with you I guess I  
mean Rob since this seems to be a pik internal hitch).  
It’s a good idea to always wrap paths in windows in “” - you never know  
when somebody is going to use “My Documents” 🙂  
Cheers,  
V.-
