'Use' cmd not working....

377 views
Skip to first unread message

JimWiebe

unread,
Jan 7, 2012, 6:14:18 PM1/7/12
to pik help and suggestions
When I try to switch versions (or reset the default ruby) I get a
'Nothing Matches' error as follows. Any ideas as to what I am doing
wrong? Thanks.
----------------------------------------------------------------------
C:\Documents and Settings\User1>pik -v
pik 0.3.0.pre on Microsoft Windows XP [Version 5.1.2600]
by Gordon Thiesfeld (gthie...@gmail.com)

C:\Documents and Settings\User1>pik list -v
=> ruby-1.8.7-p302
version: ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
path: E:\Ruby187\bin

ruby-1.9.2-p180
version: ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
path: E:\Ruby192\bin

C:\Documents and Settings\User1>ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

C:\Documents and Settings\User1>pik use 1.9.2
Nothing matches:

C:\Documents and Settings\User1>pik use 1.9.2p180
Nothing matches:

C:\Documents and Settings\User1>ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

Luis Lavena

unread,
Jan 7, 2012, 6:20:42 PM1/7/12
to discu...@googlegroups.com
On Sat, Jan 7, 2012 at 8:14 PM, JimWiebe <jpwie...@gmail.com> wrote:
> When I try to switch versions (or reset the default ruby) I get a
> 'Nothing Matches' error as follows.  Any ideas as to what I am doing
> wrong?    Thanks.

Have you tried like is displayed in `pik ls`?

C:\Users\Luis>pik ls
ruby-1.8.7-p357
ruby-1.9.3-p0

C:\Users\Luis>ruby -v
'ruby' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Luis>pik use 1.9.3
Nothing matches:

C:\Users\Luis>pik use 1.9.3-p0

C:\Users\Luis>ruby -v
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

JimWiebe

unread,
Jan 8, 2012, 1:40:53 AM1/8/12
to pik help and suggestions
Luis: Tried your suggestion, and as you can see, still no joy....
Jim W.
------------------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\User1>pik ls
=> ruby-1.8.7-p302
ruby-1.9.2-p180

C:\Documents and Settings\User1>ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

C:\Documents and Settings\User1>pik use ruby-1.9.2-p180

C:\Documents and Settings\User1>ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

C:\Documents and Settings\User1>pik use ruby-1.9.2-p180 --default

C:\Documents and Settings\User1>pik ls
=> ruby-1.8.7-p302
ruby-1.9.2-p180

C:\Documents and Settings\User1>ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

C:\Documents and Settings\User1>
------------------------------------------------------------------------------

On Jan 7, 3:20 pm, Luis Lavena <luislav...@gmail.com> wrote:

Luis Lavena

unread,
Jan 8, 2012, 10:11:35 AM1/8/12
to discu...@googlegroups.com
On Sun, Jan 8, 2012 at 3:40 AM, JimWiebe <jpwie...@gmail.com> wrote:
> Luis:  Tried your suggestion, and as you can see, still no joy....
> Jim W.

Can you remove .pik\pik_run.* files?
(That should be in %HOME% or %PIK_HOME% directory)

Also, check if you have those environment variables set (either HOME
or PIK_HOME)

SET HOME
SET PIK_HOME

Pik requires at least HOME be set (totally undocumented, sorry about that)

You can use System properties to set the variable (You can use
%USERPROFILE% as value)

Reply all
Reply to author
Forward
0 new messages