简体   繁体   English

如何在Windows上同时使用ActiveState和Strawberry perl

[英]How can I use both ActiveState and Strawberry perl on windows

I have ActiveState installed already. 我已经安装了ActiveState。 Due to the ease in installing LibXML, I installed Strawberry. 由于安装LibXML很容易,我安装了Strawberry。 So at current, I have 2 perl programs, ActiveState and Strawberry. 所以目前,我有2个perl程序,ActiveState和Strawberry。 To use Strawberry, I need to remove ActiveState as it is the default of Perl. 要使用Strawberry,我需要删除ActiveState,因为它是Perl的默认值。 How could I keep both programs and set Strawberry as default in the classpath? 我如何保留两个程序并将草莓设置为类路径中的默认值?

  1. Right-click on "My Computer". 右键单击“我的电脑”。
  2. Click on "Properties". 单击“属性”。
  3. Click on "Advanced system settings". 单击“高级系统设置”。
  4. Click on "Environment Variables...". 单击“环境变量...”。
  5. Select "Path". 选择“路径”。
  6. Click on the nearest "Edit". 单击最近的“编辑”。
  7. Remove ActivePerl's bin directory from the "Variable value". 从“变量值”中删除ActivePerl的bin目录。
  8. Add Strawberry Perl's bin directory to the "Variable value". 将Strawberry Perl的bin目录添加到“Variable value”。
  9. Click "OK". 单击“确定”。

You may need to reopen existing programs and consoles for them to see the change. 您可能需要重新打开现有程序和控制台才能看到更改。

Or simply don't use the default and use the full path to perl.exe . 或者只是不使用默认值并使用perl.exe的完整路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM