You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/guide/perllib.mdx
+32-1Lines changed: 32 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ This is ideal for environments where you cannot modify system Perl without root
28
28
29
29
You can substitute this path to any location you want (`~` or even `$SCRATCH`) .
30
30
31
+
31
32
2.**Set up the environment to install Perl modules locally:**
32
33
33
34
```bash frame="none"
@@ -50,9 +51,17 @@ This is ideal for environments where you cannot modify system Perl without root
50
51
source /depot/gcore/localperl/env.sh
51
52
```
52
53
54
+
<Asidetype="note">
55
+
You can check which Perl is in use and where it looks for libraries by running `which perl` and `perl -V` commands
56
+
Make sure it points to `/usr/bin/perl` and includes `/depot/gcore/localperl/lib/perl5` in `@INC` after activating your environment.
57
+
</Aside>
53
58
54
59
3.**Install `cpanm` (Perl module installer) into the custom location:**
55
60
61
+
<Asidetype="caution">
62
+
Make sure you've already run `source /depot/gcore/localperl/env.sh` before installing modules with `cpanm`, or they will be installed in the wrong location.
0 commit comments