Thufir
November 9, 2007, 1:12am
1
I notice this alert when installing Ruby:
Please review the ReadMe and License below.
You must install as administrator on Windows NT,
2000, and XP in order for path and environment
variable settings to take effect.
I’m in XP and would like gems, but do not have Administrator
privileges. I can run ruby programs by typing the filename, foo.rb,
at the command prompt but, of course, I don’t have a ruby command and
so no gems
-Thufir
Thufir
November 9, 2007, 2:12am
2
On Nov 8, 8:53 pm, Thufir [email protected] wrote:
at the command prompt but, of course, I don’t have a ruby command and
so no gems
The admin priviliges are required to change environment variable PATH
and also include RUBYOPT=rubygems that autoamtically load RubyGems for
you.
You can manually include the path doing:
SET PATH=%PATH%;C:\Ruby\bin
IN a command prompt. After that you should have ‘gem’, ‘rake’ and even
ruby commands available.
You can wrap that sentence in a batch file, but I don’t have a Windows
machine handy right now to give you the exact details
Maybe we should add a “Ruby Command Prompt” Icon in the Ruby programs
folder that do this for you.
Please, feel free to add this as Feature Request in the Tracker:
http://rubyforge.org/tracker/?atid=718&group_id=167&func=browse
Thufir
November 9, 2007, 5:03am
3
On Nov 8, 5:10 pm, Luis L. [email protected] wrote:
[…]
You can manually include the path doing:
SET PATH=%PATH%;C:\Ruby\bin
My results:
C:\ruby\bin>
C:\ruby\bin>
C:\ruby\bin>ruby --version
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
C:\ruby\bin>
C:\ruby\bin>cd c:\
C:>
C:>ruby
‘ruby’ is not recognized as an internal or external command,
operable program or batch file.
C:>
C:>SET PATH=%PATH%;C:\ruby\bin
C:>
C:>ruby
‘ruby’ is not recognized as an internal or external command,
operable program or batch file.
C:>
C:>
IN a command prompt. After that you should have ‘gem’, ‘rake’ and even
ruby commands available.
You can wrap that sentence in a batch file, but I don’t have a Windows
machine handy right now to give you the exact details
Bah!
Maybe we should add a “Ruby Command Prompt” Icon in the Ruby programs
folder that do this for you.
Yes, pls. I’m often moving from computer to computer and may have to
install ruby from the get go.
Please, feel free to add this as Feature Request in the Tracker:http://rubyforge.org/tracker/?atid=718&group_id=167&func=browse
Will do
thanks,
Thufir
Thufir
November 9, 2007, 1:26pm
4
On Nov 9, 1:00 am, Thufir [email protected] wrote:
[…]
Ok, Adding Ruby to your PATH without administrative privileges:
Control Panel, System.
Go to Advanced and locate Environment Variables button lower in the
tab.
Under “User variables for …” click New and fill with this
information:
Variable name: PATH
Variable value: C:\Ruby\bin
Click OK. Then OK again for Environment Variables dialog.
In a new Command Prompt window PATH should include now C:\Ruby\bin at
the end of the string.
Maybe we should add a “Ruby Command Prompt” Icon in the Ruby programs
folder that do this for you.
Yes, pls. I’m often moving from computer to computer and may have to
install ruby from the get go.
Oh, ruby on a stick! (RubyToGo! – USB Ruby)
HTH,
Luis
Thufir
November 9, 2007, 12:55pm
5
On Nov 9, 1:00 am, Thufir [email protected] wrote:
‘ruby’ is not recognized as an internal or external command,
operable program or batch file.
Weird that setting PATH manually didn’t work…
Tried reproduce that locally and worked without problems…
Please don’t tell me that you’re using Windows Vista?
Thufir
November 13, 2007, 7:07am
6
OCI==OP?
Haha, I’ll have to try ruby on Vista, that’d be “interesting”…
Creating a new variable from the System Properties tab did the
trick
-Thufir
Thufir
November 13, 2007, 7:15am
7
On Nov 12, 10:05 pm, Thufir [email protected] wrote:
OCI==OP?
[…]
One Click Installer, ok.
-Thufir
Thufir
November 9, 2007, 9:24pm
8
C:>SET PATH=%PATH%;C:\ruby\bin
C:>
C:>ruby
‘ruby’ is not recognized as an internal or external command,
operable program or batch file.
Looks like this happens if path isn’t already set to something (i.e. if
it ends up looking like
set
path=%path%;c:\ruby\bin
Also maybe adding ‘non administrator’ path setting might be an
interesting option for the OCI some time.
-Roger