Note that there are some explanatory texts on larger screens.

plurals
  1. POCorrect path for pik, ruby libraries and git bash
    primarykey
    data
    text
    <p>In order to push my local SQLite3 database to Heroku, I have installed pik so that I can use ruby -v 192. (I was getting a timezone error, and other posts suggested that it may be due to using ruby version 193).</p> <p>I followed the directions on github: <a href="http://rubyonwindowsguides.github.com/book/ch02-03.html" rel="nofollow">http://rubyonwindowsguides.github.com/book/ch02-03.html</a></p> <p>I am now able to switch between v 193 and v192, and have bundle installed the necessary gems I'm aware of, including pg (0.12.2 x86-mingw32) and taps (0.3.24).</p> <p>Everything is fine when I'm in v193.</p> <p>However, in v192, when I try to run:</p> <pre><code>Heroku run rake db:migrate </code></pre> <p>or </p> <pre><code>Heroku db:push </code></pre> <p>...I get an error page that reads:</p> <pre><code>Running 'rake db:migrate' attached to terminal... up, run.1 bash: bin/bundle: c:/Users/umezo/.pik/rubies/Ruby-192-p290/bin/ruby.exe: bad interpreter: No such file or directory </code></pre> <p>This seems like a path problem, as my Ruby libraries are in c:/, and not c:/Users/Umezo/.pik. I think I may have installed the initial path to v192 in the .pik folder instead of in c:/. What can I do to fix this problem?</p> <p>My relevant files are saved as recommended in the github instructions: </p> <pre><code>c:/Ruby192 c:/Ruby193 c:/tools/pik.bat c:/tools/pik.ps1 c:/tools/pik_runner.exe c:/Users/umezo/.bashrc c:/Users/umezo/.pik/.pikrc c:/Users/umezo/.pik/config.yml </code></pre> <p>respectively, and the file contents are:</p> <p>.pikrc</p> <pre><code>#!/bin/sh pik_path=/c/tools function pik { $pik_path/pik_runner.exe pik.sh $@ [[ -s $USERPROFILE/.pik/pik.sh ]] &amp;&amp; source $USERPROFILE/.pik/pik.sh unset GEM_HOME unset GEM_PATH } </code></pre> <p>config.yml</p> <pre><code>--- "192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]": :path: !ruby/object:Pathname path: C:/Ruby192/bin "193: ruby 1.9.3p0 (2011-10-30) [i386-mingw32]": :path: !ruby/object:Pathname path: C:/Ruby193/bin --- {} </code></pre> <p>.bashrc</p> <pre><code>[[ -s $USERPROFILE/.pik/.pikrc ]] &amp;&amp; source $USERPROFILE/.pik/.pikrc unset GEM_HOME unset GEM_PATH </code></pre> <p>I'm still not sure how all of these files are interconnected, or what exactly each of them does, so am not sure which files to change or move.</p> <p>Thanks in advance for your help!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload