2potatocakes / muto

Switch Ruby versions and Windows environment variables from the command line
MIT License
1 stars 0 forks source link

Doesn't change Ruby environment #1

Open ghost opened 12 years ago

ghost commented 12 years ago

It's already installed as a User environment variable, as the script told me to. Still doesn't changes anything.

Maybe I need some prerequesites not mentioned in the ReadMe? I'm was using a "Windows XP Professional x64 Edition Build 5.2.3790 Service Pack 2" inside VMWare Workstation 8.

Thanks mate!

C:\Documents and Settings\Administrator>muto

Expected format: muto [ruby_version]

Available Versions are: 187 - ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32] 193 - ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

Currently using: ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

C:\Documents and Settings\Administrator>muto 187

System updated. Now using: ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

C:\Documents and Settings\Administrator>set ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\Administrator\Application Data APR_ICONV_PATH=C:\Program Files (x86)\Subversion\iconv CLIENTNAME=Console CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files COMPUTERNAME=XP64 ComSpec=C:\WINDOWS\system32\cmd.exe FP_NO_HOST_CHECK=NO HOME=C:\Documents and Settings\Administrator HOMEDRIVE=C: HOMEPATH=\Documents and Settings\Administrator LOGONSERVER=\XP64 NUMBER_OF_PROCESSORS=2 OS=Windows_NT Path=C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32\;C:\WINDOWS\System32\Wbem\;C:\MinGW\bin;C:\MinGW\bin\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;;;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32\;C:\WINDOWS\System32\Wbem \;C:\MinGW\bin;C:\MinGW\bin\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Muto;C:\Ruby193\bin;C:\Muto;C:\Ruby193\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.RB;.RBW;.PSC1 PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=EM64T Family 6 Model 42 Stepping 7, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=2a07 ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) PROMPT=$P$G PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\ SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Documents and Settings\Administrator\Local Settings\Temp TMP=C:\Documents and Settings\Administrator\Local Settings\Temp USERDOMAIN=XP64 USERNAME=Administrator USERPROFILE=C:\Documents and Settings\Administrator VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\ windir=C:\WINDOWS

C:\Documents and Settings\Administrator>

2potatocakes commented 12 years ago

hi lenzcom... It's not really emphasized on the readme properly, but muto works by regexing out the old version of ruby based on what's in your ruby_versions.yml and right now it's actually case sensitive, I need to fix that.. sorry. Just copy and paste your ruby path from your USER environment variables into your ruby_versions.yml file and it should work fine though.

Also, I noticed in your environment settings that you output above, in your PATH environment variable you have C:\Ruby193\bin defined twice.. It might also have been added to your system PATH environment variable when ruby193 was installed. Make sure it's removed from there and just have it in your user environment PATH variable.

Anyways, I'm certain it works on XP, I use it on 2 separate XP VM's at work and my Win7 machine at home. Hope you have some better luck with it.

All the best

Lucas

ghost commented 12 years ago

ahh.. that's the clue! fine, I'm going to try this when there is time...