Giter Club home page Giter Club logo

Comments (6)

yong9900 avatar yong9900 commented on June 24, 2024

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.

Grinnz avatar Grinnz commented on June 24, 2024

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.

yong9900 avatar yong9900 commented on June 24, 2024

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.

Grinnz avatar Grinnz commented on June 24, 2024

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.

Grinnz avatar Grinnz commented on June 24, 2024

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.

yong9900 avatar yong9900 commented on June 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.