Questions tagged [pik]

Pik is a Ruby version manager for Windows

pik is a tool to manage multiple versions of ruby on Windows. It can be used from the Windows command line (cmd.exe), Windows PowerShell, or Git Bash.

39 questions
20
votes
7 answers

'Failed to build gem native extension' on Windows 7 (The system cannot find the path specified)

The problem in short I'm on Windows and am getting the following error when running gem install json —platform=ruby: The system cannot find the path specified. Temporarily enhancing PATH to include DevKit... Building native extensions. This could…
dannysmith
  • 391
  • 1
  • 3
  • 11
7
votes
3 answers

How can I use Pik for Ruby in Git Bash on Windows?

I'm running multiple versions of Ruby (and Rails) on Windows and use Pik to switch between them. At the command line, I'm able to call > pik list 186: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] 192: ruby 1.9.2p0 (2010-08-18)…
y0mbo
  • 4,582
  • 6
  • 41
  • 45
6
votes
2 answers

Pik on Windows 7 doesn't remember the selection

I am using pik on Windows 7. I am unable to make pik to remember the ruby version selection. Example: Command Window 1 > pik list * 187: ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] 192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32] 193:…
Harish Shetty
  • 64,083
  • 21
  • 152
  • 198
5
votes
1 answer

Install devkit for pik-installed Rubies

I've installed two rubies using pik, but I haven't installed any rubies outside of pik. When I choose a Ruby using pik, and then try to set up devkit, no binaries are added to the generated config.yml file: # This configuration file contains the…
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
4
votes
2 answers

Why won't Pik install Ruby?

After a failure trying to install Ruby on Rails from here: http://railsinstaller.org/, I am now trying to install things manually. I thought I would install Pik first and then hit "pik install ruby" from the command prompt. Seemingly, nothing could…
user1971506
  • 2,267
  • 4
  • 19
  • 19
4
votes
1 answer

pik Error: private method `gsub' called for nil:NilClass

I´m getting an error when adding JRuby 1.3.1 to pik. Error: Error: private method `gsub' called for nil:NilClass this is my path environment variable: C:\Users\Owner>echo %path% C:\Program…
M.Octavio
  • 1,780
  • 2
  • 25
  • 39
3
votes
1 answer

Receive: "ERROR: Failed to build gem native extension" when trying to install rails gem on ruby 1.9.2 using pik

I was trying to push my local database to Heroku and received this error: ...Taps Server Error: PGError: ERROR: time zone displacement out of range:... Some googling later I discovered that this error doesn't occur with ruby 1.9.2 and that (because…
Liam McCabe
  • 53
  • 2
  • 8
2
votes
1 answer

can't get ruby 1.8.7 to work after installing 1.9.2

I installed ruby 1.9.2 via one click installer on windows 7. Now I have a gem that only runs on 1.8.7 So I installed Pik and am trying to get 1.8.7 working. irb runs fine, but require does not. For example if I do a gem list it lists the gem in…
Mitch VanDuyn
  • 2,838
  • 1
  • 22
  • 29
2
votes
1 answer

Error when attempting to install ruby 1.9 with pik

I am attempting to install ruby 1.9 using pik. Here is the error pik install ruby 1.9 -d There was an error. Error: private method `gsub' called for nil:NilClass in: pik/commands/install_command.rb:24:in `execute' in: pik_runner:33 The…
Btuman
  • 881
  • 2
  • 9
  • 37
2
votes
0 answers

Error: private method `gsub' called for nil:NilClass installing Ruby 2.0 on Windows 8

I installed Ruby 1.9 with the RubyInstaller. Then installed pik with the gem command. devkit was also installed. When trying to install Ruby 2.0 I get this error. C:\var>pik install ruby 2.0.0 There was an error. …
Dave
  • 21
  • 3
2
votes
1 answer

gem list does not display local gems after using pik

using pik on windows7 machine, how do i download gems for use by other versions of ruby? i am using 2 versions of ruby: 1.9.3 and 1.9.2. 1.9.3 is the one that came with the windows installer. after i ran the commands below, i noticed that local gems…
user571099
  • 1,491
  • 6
  • 24
  • 42
2
votes
1 answer

pik not listing ruby 1.9.3

I'm running win 7 and just installed pik via the installer. I listed the ruby versions and the most recent version is 1.9.2[-1.3.6]. I saw a post where someone mentioned to use "pik list -r" but pik tells me it's deprecated and then uses "list…
Patrick
  • 3,624
  • 7
  • 31
  • 28
2
votes
1 answer

Error: private method `gsub' called for nil:NilClass with pik install ruby 1.9.3

On Windows 7 machine, I have installed jruby 1.6.7 and then installed pik with 'gem install pik'. I then ran pik_install C:\bin which installed pik properly. I can run "pik ls" command properly. C:\Users\nir>pik ls * 167: jruby 1.6.7…
user571807
  • 31
  • 1
  • 1
  • 3
1
vote
2 answers

How to set webrick server to use ruby 1.9.3?

Can rails server be specified for the particular ruby version? I'm on windows using gitbash and pik. I have ruby 192 and 193 installed via rubyinstaller. Pik is setup after much adding of .bashrc .pikrc and editing config.yml files. I can switch…
sf2k
  • 592
  • 2
  • 6
  • 25
1
vote
1 answer

installing pik in system path in windows

I just installed pik (ruby version control) on my windows machine at work ( to C:\bin ), but it said that it's not installed in the system path, that I'll have to add it. I don't often use a windows machine. Can anyone show me how to do this?
Leahcim
  • 40,649
  • 59
  • 195
  • 334
1
2 3