From: Dirk Meijer Date: 2005-09-11T22:30:52+09:00 Subject: Re: newbie mysteries ------=_Part_1887_12464714.1126445449687 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline i've actually got the same problem, i used to be able to start ruby, irb or gems just by typing it, but that=20 doesn't work anymore (windows xp, cmd.exe) it's really weird, i'm going to try to reinstall ruby, and see if it works= =20 then.. 2005/9/11, Nicholas Van Weerdenburg :=20 >=20 > On 9/11/05, Tom Cloyd wrote: > > Good morning! > > > > I'm on a WinXP SP-2 box, and have installed Ruby, Gems, Mondrian editor= . > > > > I'm trying to use Gems to install Rails, and getting nowhere. > > > > I'm confused by the apparent lack of an interpreter in Ruby. I thought > > there was one, but passed by the reference a while back and haven't=20 > found > > it again. Can you enlighten > > me on this? > > > > I played around with the Scite editor and seemed only to execute=20 > programs. > > Mondrian, however, seems able to execute whatever's in the focused=20 > window. > > What's going on here? > > > > Now, rails, working in Mondrian... > > > > The page at http://download.rubyonrails.com/ advises executing this,=20 > after > > install of gems ... > > > > gem install rails --include-dependencies > > > > But I can't seem to pull this off. > > > > In Mondrian, still, I get this output: > > > > Executing 'ruby -C "C:/Documents and Settings/TC/My Documents/Ruby > > projects - Toms" "railsinstall.rb"' > > railsinstall.rb:1: warning: parenthesize argument(s) for future version > > railsinstall.rb:1: warning: parenthesize argument(s) for future version > > railsinstall.rb:1: undefined method `-@' for Object:Class=20 > (NoMethodError) > > Execution completed with exit code 1. > > > > As a test, I then run this: > > > > gem (install rails) #--include-dependencies > > > > And get this output: > > > > Executing 'ruby -C "C:/Documents and Settings/TC/My Documents/Ruby > > projects - Toms" "railsinstall.rb"' > > railsinstall.rb:1: undefined local variable or method `rails' for > > main:Object (NameError) > > Execution completed with exit code 1. > > > > Can someone tell me what's happening, and what I need to do to get it t= o > > work? > > > > -- t. > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > Tom Cloyd > > Bellingham, Washington, U.S.A: (360) 920-1226 > > << BestMindHealth.com / tc@bestmindhealth.com >> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > > > Using Opera's revolutionary e-mail client (program): > > http://www.opera.com/mail/ > > > > >=20 > Did you use the Window's one-click installer to install ruby? If so, > gems would have been installed with ruby. >=20 > If you open a command prompt, typing "ruby" runs the ruby interpreter. > "irb" runs an interactive ruby interpreter. If Ruby Gems is installed, > running "gem" runs Ruby gems. >=20 > So, after running the one-click installer for windows: >=20 > gem install rails --include-dependencies >=20 > should work from any command prompt. >=20 > If not, there is a path issue. Ruby is usually installed to C:\ruby by > the installer- check your path. >=20 > Never used Mondrian, but some editors allow execution of an arbitrary > buffer or code selection, and others want a saved file (the only > definition of a ruby program I can think of ), so maybe that's the > difference. >=20 > Regards, > Nick > --- > Nicholas Van Weerdenburg >=20 > ------=_Part_1887_12464714.1126445449687--