Welcome to Xerver Help Online!
I have installed Perl. But my scripts won't run anyway. Why?
This has actually nothing to do with Xerver.
The problem is that your system's path to Perl is incorrect.
The path to Perl is set in a environment variable called PATH.
An valid PATH variable can for example be:
C:\WINNT\system32;C:\WINNT\;C:\Perl\bin\;D:\Something\Else\ (Windows users)
...or...
/usr/openwin/bin:/opt/local/bin:/opt/pd/bin:/opt/gnu/bin:/opt/local/java/jdk/bin:. (UNIX users)
You can add the path to Perl to your PATH variable if you follow these steps:
Windows NT/2000/XP users:
- Go to Contol Panel/System.
- Advanced tab
- Press Environment Variable
- Check the PATH variable under "System Variables".
- Press Edit...
- Don't erase what you see here, but add the path to perl to the beginning of this line and press OK. (For example: If the PATH variable is C:\WINNT\system32;C:\WINNT\ and perl.exe is located at C:\Perl\bin\, change the PATH to C:\Perl\bin\;C:\WINNT\system32;C:\WINNT\)
- Press OK again.
- Press OK again.
- Restart your computer.
Windows 95/98/ME users:
- Open c:\autoexec.bat with notepad (or another text editor).
- Scroll down to the last line.
- Add this line to the bottom of the autoexec.bat file: set PATH=pathToPerl;%PATH% where pathToPerl is the folder where perl.exe is located. (For example: If perl.exe is located at C:\Perl\bin\, this line shall be added to the bottom of autoexec.bat: set PATH=C:\Perl\bin\;%PATH%)
- Save your settings to c:\autoexec.bat.
- Restart your computer.
Xerver Homepage
|