windows 7 - How to set path to ruby on win 7 -


i using git-bash in win7. have installed c:/ruby/bin/ruby.exe. i've added c:/ruby/bin/ path environmental variable , restarted. when do:

$ ruby /c/opscode/chef/embedded/bin/ruby  $ echo $path /c/ruby/bin:/c/st:/c/users/bill/bin:.:/usr/local/bin:/mingw/bin:/bin:/c/windows/system32:/c/windows:/c/windows/system32/wbem:/c/windows/system32/windowspowershell/v1.0/:/c/program files (x86)/quicktime/qtsystem:/c/python27:/c/python27/lib/sitepackages/django/bin:/c/python27/scripts:/c/mingw/bin:/d/opscode/chef/bin:/d/opscode/chef/embedded/bin:/d/virtualbox/vboxmanage:/d/hashicorp/vagrant/bin:/c/opscode/chef/bin:/c/opscode/chef/embedded/bin:/c/programdata/composer/bin:/c/program files (x86)/git/cmd:/c/nodejs/:/c/users/bill/appdata/roaming/npm:/c/ruby193/bin 

how change "c:/ruby/bin/" ?

add following line /c/users/your-username/.bashrc file make /c/ruby/bin placed before other directory in path:

export path=/c/ruby/bin:$path 

or, start git bash, , issue following command:

echo 'export path=/c/ruby/bin:$path' >> ~/.bashrc 

update

if above still not work, check whether directory /c/ruby exists. if does, check whethere ruby.exe file in directory /c/ruby/bin.

if directory not exist, replace /c/ruby/... 1 exists.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -