in reply to Windows set PERL5LIB environment variable
Windows doesn't have export so I'm not sure what you're doing. Are you using the perl with Git for Windows and Git bash?
I use Strawberry Perl and set my PERL5LIB in Control Panel => System => Advanced System Settings => Advanced => Environment Variables => User Variables. It is:
C:\Users\Vinsworldcom\perl5\lib\perl
If you want to set it only temporarily in a PowerShell (no one uses CMD.exe anymore these days):
PS VinsWorldcom ~ > $env:PERL5LIB="C:\Users\VinsWorldcom\perl5\lib\per +l5" PS VinsWorldcom ~ > $env:PERL5LIB C:\Users\VinsWorldcom\perl5\lib\perl5
I think you may be messing up syntax. Windows uses colon (:) for drive letters and semicolon (;) for path separators. Bash uses colon (:) for path separators and uses semicolon (;) as command separators. Seems you're trying to use Windows syntax in Bash paths. To set PERL5LIB it in Git bash, don't worry about the drive:
export PERL5LIB=/Users/VinsWorldcom/perl5/lib/perl5
or if you really need the drive letter, I think the following syntax works:
export PERL5LIB=/C/Users/VinsWorldcom/perl5/lib/perl5
Cheers.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Windows set PERL5LIB environment variable
by vinoth.ree (Monsignor) on May 06, 2021 at 13:06 UTC | |
by VinsWorldcom (Prior) on May 06, 2021 at 14:07 UTC |