Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Cant get a clean 5.34 Perl built...

by misterperl (Pilgrim)
on May 13, 2022 at 13:09 UTC ( [id://11143874]=perlquestion: print w/replies, xml ) Need Help??

misterperl has asked for the wisdom of the Perl Monks concerning the following question:

I'm on attempt like 4 now. Problem is, wherever I build it (.) , @INC ends up with a bunch of ./.cpan/build/ entries. But the README , etc, doesn't state to build in any certain location so its perplexing. After the build, I do:
DBG> x @INC
and about half the entries are .cpan . And worse- I read these are built into the binaries so they can't be adjusted out.

I'm not doing anything odd - just the steps in the README.

Help please!

Replies are listed 'Best First'.
Re: Cant get a clean 5.34 Perl built...
by Corion (Patriarch) on May 13, 2022 at 14:05 UTC

    My guess is that you have PERL5LIB set to some value in your environment and that is getting picked up.

    If that's not it, please show us the exact steps you are running, and the exact output you get from perl -V, and also the OS you are using.

    Nowadays, at least if you build Perl with a "relocatable" include directory, the build directory doesn't matter, you can move the Perl binary and its other directories around. To do that, use Duserelocatableinc when running Configure.

    You can check if a Perl is built with a relocatable include directory by running

    perl -V:userelocatableinc
      I'm on rocky linux , I will check PERL5LIB (and perhaps PERLLIB?) to see how its defined.

      Your wisdom is most appreciated sir definitely a ++ vote! I'm on it!

        Yes - ideally, while building Perl, you have no variables with the name PERL in them set.

        Once you've built (and installed) Perl, you can set those variables again, but they will change what is contained in @INC.

        You are not installing over the Perl binary supplied by your vendor, are you?!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11143874]
Approved by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-19 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found