You are not logged in.

#1 2011-06-04 21:29:51

manouchk
Member
Registered: 2008-07-29
Posts: 306

pod2man not found and perl bin path

Hi,

I was compiling ffmpeg-git and it failed because pod2man command was not found because aparently perl bin are in /usr/bin/core_perl/pod2man which is not in PATH.

Is it normal? Do we have to do this manually or should it be included automatically (like I think)?

Offline

#2 2011-06-04 21:40:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pod2man not found and perl bin path

I have /usr/bin/core_perl/ in my $PATH but I thnk the default one is just

[karol@black ~]$ grep -e ^PATH /etc/profile
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"

https://wiki.archlinux.org/index.php/Perl_Policy
https://wiki.archlinux.org/index.php/Pe … Guidelines

Last edited by karol (2011-06-04 21:43:13)

Offline

#3 2011-06-04 21:52:40

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: pod2man not found and perl bin path

It looks like there is a small bug in perl 5.12.3-1 the package binary path should be included in PATH from https://wiki.archlinux.org/index.php/Perl_Policy and it looks like it is not.

In order to prevent file collisions, it's important to keep binaries generated by core, vendor, and site installs separate. It's also important that the default PATH environment variable set in each users profile to search for binaries in the same order as perl's @INC path. In order to accomplish this, binaries should be installed into the following directories:

    Core 
    Binaries and scripts for all core packages should be installed into /usr/bin/core_perl. 
    Vendor 
    Binaries and scripts for all vendor packages should be installed into /usr/bin/vendor_perl. 
    Site 
    Binaries and scripts for all site should default to be installed into /usr/bin/site_perl. 

The perl package should include a mechanism to adjust end-users PATH entries accordingly so that perl binaries are searched for in the following order: site, vendor, core. 

Last edited by manouchk (2011-06-04 22:00:50)

Offline

#4 2011-06-04 22:43:41

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: pod2man not found and perl bin path

If I use lxterminal, I get this PATH:

PATH=/bin:/usr/bin:/usr/local/bin:/home/manu/bin:

In a virtual console, I get much more which binary perl path.

Why don't I get all those PATH in a lxterminal?

Why?

My default shell in bash. In lxterminal I'm in a bash shell.

Last edited by manouchk (2011-06-04 22:46:55)

Offline

#5 2011-06-05 00:15:10

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: pod2man not found and perl bin path

I understood that I have a uncomplete environment because I had to desactivate the desktop of pcmanfm and I lost some stuff like aditionnal directory in the variable PATH....

Offline

#6 2011-06-05 00:49:55

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: pod2man not found and perl bin path

/etc/profile sources files from /etc/profile.d, such as /etc/profile.d/perlbin.sh. This file adds the directory to the path if it exists.

You have your own bin directory in your path, how do you add it? I was accidentally overriding /etc/profile.d settings before without realizing it.

Offline

Board footer

Powered by FluxBB