This forum is no longer active. Please post your questions to our new community site

can't use the new "powershell v2" of windows 7 to run rubystack ??!!

Subscribe to can't use the new "powershell v2" of windows 7 to run rubystack ??!! 9 post(s), 4 voice(s)

 
Avatar ahmad.ramadan 12 post(s)

i just wan’t to use powershell over cmd in all my working with ruby from the command line ….. but it seems that i can’t
i think if i use it it will be the same way as in linux or osx , right ?

and if any one could help me could help me to replace cmd.exe with powershell …....
regards,

 
Avatar antonio 621 post(s)

Hi,

I don’t know if it is possible, we haven’t tried Windows 7 yet.

Cheers

 
Avatar ahmad.ramadan 12 post(s)

i think powershell is already coming with vista or at least with vista sp1 .
or you can install it on vista and tell me ….. please , if you can :)
i think many many people will use it if they know it works ….

 
Avatar antonio 621 post(s)

We mostly (if not all) develop on Linux, and test in Virtual Machines. Currently I don’t recall having a Vista SP1, tough. Is there any user out there with Vista SP1 who is willing to give a helping hand? Thanks in advance.

 
Avatar MySchizoBuddy 22 post(s)

i saw powershell under windows update for Vista SP1.
so i can confirm that powershell is available for vista sp1 users

I can help you out.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Great thanks, could you run the “use_ruby.bat” file from this new powershell console? If there is any issue, could you post the issues?

Cheers.

 
Avatar ahmad.ramadan 12 post(s)

i’m waiting for you “MySchizoBuddy” , hope you find a way :)

 
Avatar MySchizoBuddy 22 post(s)

Ok as per this document, http://www.microsoft.com/technet/scriptcenter/topics/winpsh/manual/run.mspx
you first have to assign it an execution policy by typing this

Set-ExecutionPolicy Unrestricted

Then change your scripts/setenv.bat file to this
setx PATH "C:\RubyStack\git\bin;C:\RubyStack\sqlite;C:\RubyStack\imagemagick;C:\RubyStack\php;C:\RubyStack\mysql\bin;C:\RubyStack\subversion\bin;C:\RubyStack\ruby\bin;%PATH%" 
setx MAGICK_CODER_MODULE_PATH "C:\RubyStack\imagemagick\modules\coders" 
setx RUBYOPT "rubygems" 

make sure the folder names are correct. I installed it under C:\RubyStack
then you have to give it a complete path regardless of where you are in the directory structure
& "C:\RubyStack\use_ruby.bat"

btw Powershell is available for Windows Xp sp2 as well
http://www.microsoft.com/downloads/details.aspx?FamilyID=c913aeab-d7b4-4bb1-a958-ee6d7fe307bc&displaylang=en

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for posting the solution :)