Comments (6)
Sorry, looks this is due to my shell env variables, the problem is solved once I did following:
[mzhao@mzhao bin]$ unset PERL5LIB PERL_LOCAL_LIB_ROOT PERL_MB_OPT PERL_MM_OPT
from plenv.
A better way to unset those properly is to deactivate your local::lib (eval $(perl -Mlocal::lib=--deactivate-all)
) and ensure your shell profile is not activating one. user-wide local::lib is not compatible with plenv, you must use https://github.com/miyagawa/plenv-contrib to manage local::lib within a perl.
On redhat the local::lib may be activated by the presence of the package perl-homedir
. You can remove this package or disable it for your user.
from plenv.
Hi @Grinnz Thanks for the information. I am a newbie on Perl, not quite understand the effect of local::lib. I need to use the system Perl from time to time on my workstation to do some old stuff (the Perl variables was set up for it), but at the same time, I want to use plenv for my new project. I guess I will just set/unset perl variables when working on different projects?
from plenv.
You can create a plenv compatible local::lib for the system perl with plenv-contrib, though it doesn't work quite right and you have to plenv shell system
before plenv use system@locallibname
works correctly - this spawns a subshell with this local::lib active.
from plenv.
Otherwise you can use local::lib itself to activate and deactivate as shown in the local::lib docs rather than manually setting vars. But be careful to only activate it when plenv is set to system perl.
from plenv.
@Grinnz Thanks for the explanation. I like your last comment, it becomes simple to use my plenv or system Perl. Thanks!
from plenv.
Related Issues (20)
- Can't locate cpanfile: (cpanfile) HOT 1
- "man perl" shows system Perl manual under local Perl dir (.perl-version) HOT 3
- homebrew plenv v2.3.0 is claiming it is 2.2.0 HOT 1
- Homebrew shows incorrect plenv versioning HOT 1
- no backend configured for scheme https HOT 7
- Plenv to control additional Perl lib paths (PERL5LIB env var?) HOT 7
- Complain about active local::lib in ~/perl5
- plenv install fails with "newer" Perls HOT 3
- failure when attempting to install any Perl version on macOS Big Sur HOT 8
- Separate GitHub Organization for plenv
- Use plenv-rehash to install the hooks from plugins
- How to use with wayland? HOT 2
- Respect .perl-version through symlinks?
- Thank you - seems to work in ksh93 HOT 1
- plenv should update MANPATH so that man pages installed in a plenv-managed Perl are found HOT 5
- install-cpanm Fails: ERROR: Cannot find the tarball for perl-cpanm HOT 2
- mxcl. in link
- plenv: no such command `shell'
- To support environments except bash/zsh( such as csh)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plenv.