CPAN shell problem on MacOS X

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default CPAN shell problem on MacOS X

    Hi.

    I am running MacOS X 10.3.1 (Panther) on a G4 iMac. I am installing
    some Perl modules using the CPAN shell, i.e., I issue the command
    # perl -MCPAN -e shell
    and then type commands to the cpan> prompt.

    When I have done this on a Linux box, the .cpan directory is placed in
    root's home directory /root, and the manified documentation goes
    into /usr/share/man/man3. To me, this seems pretty reasonable.

    However, when I do this on the Panther box, the .cpan directory is
    placed in my personal home directory (~agw), and the manified
    documentation goes into /man/man3. I find this somewhat odd, to say
    the least.

    Note that this happens when I am logged in as root, i.e., I have done
    "su - root" or "login root" in the Terminal window where I'm working.

    Any ideas as to why this is happening? More importantly, what can I
    do to get the "more reasonable" behavior of putting .cpan in /root and
    manpages in /usr/share/man/man3?

    Thanks.

    --
    Art Werschulz (agw@comcast.net)
    207 Stoughton Ave Cranford NJ 07016
    (908) 272-1146
    Art Werschulz Guest

  2. Similar Questions and Discussions

    1. CPAN shell says "Out of memory!"
      I'm trying to use the CPAN shell to do installation of some modules on a web hosting account. It is not, however, going quite as smoothly as I...
    2. CPAN Shell on Mac OS X (10.3) Not Installing Modules
      I recently installed Perl 5.8.4 on Mac OS X 10.3. It successfully installed under /usr/local/bin, and I have had no problem running Perl scripts...
    3. [QT] movie problem MacOS X
      Hello, I have a problem with QuickTime movie under MacOS X: they are blurry! If I create a movie file (sorenson or sorenson3 codec) or MPEG1, I...
    4. Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)
      I'm using the CPAN module to build my modules and have hung up just trying install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc:...
    5. CanoScan problem with MacOS X
      Each time I reboot my Mac, I have to de-install and re-install the driver for my CanoScan 9900. Otherwise, I can perform the scan but when I close...
  3. #2

    Default Re: CPAN shell problem on MacOS X

    In article <m21xrl5jcp.fsf@pcp02469339pcs.union01.nj.comcast. net>, Art
    Werschulz <agw@comcast.net> wrote:
    >
    > Any ideas as to why this is happening? More importantly, what can I
    > do to get the "more reasonable" behavior of putting .cpan in /root and
    > manpages in /usr/share/man/man3?
    I'm not sure why you find it more 'reasonable'. Perhaps, for you,
    coming from Linux, you find it more familiar? Since I don't log to my
    Mac as the true root user (I'm not sure why you'd want to in the first
    place) I find it perfectly reasonable that my .cpan directory is in
    $HOME/.cpan

    If you're so hot to change it, use the CPAN shell.
    >sudo perl -MCPAN -e 'shell'
    cpan> o conf

    That will give you a list of configuration options. See perldoc CPAN
    for instructions.

    I'm not sure why the manpage directory is an issue either. If your not
    finding your man pages, set $MANPATH in you ~/.tcshrc file. Or see man
    manpath.

    If you want to rebuild Perl with the more familiar *NIX paths, see this
    article:

    [url]http://developer.apple.com/internet/macosx/perl.html[/url]

    --
    cp
    cp Guest

  4. #3

    Default Re: CPAN shell problem on MacOS X

    cp wrote:
    > In article <m21xrl5jcp.fsf@pcp02469339pcs.union01.nj.comcast. net>, Art
    > Werschulz <agw@comcast.net> wrote:
    >
    >
    >>Any ideas as to why this is happening? More importantly, what can I
    >>do to get the "more reasonable" behavior of putting .cpan in /root and
    >>manpages in /usr/share/man/man3?
    >
    >
    > I'm not sure why you find it more 'reasonable'. Perhaps, for you,
    > coming from Linux, you find it more familiar? Since I don't log to my
    > Mac as the true root user (I'm not sure why you'd want to in the first
    > place) I find it perfectly reasonable that my .cpan directory is in
    > $HOME/.cpan
    It is more reasonable because CPAN is the only program in the entire Mac OS X
    that uses that directory. Indeed it has to create it because by default it
    does not exists. It would be 'resonable' for perl to use one of the existing
    directories that the OS knows about, such as...

    /opt/local/man
    /usr/local/man
    /usr/local/share/man
    /usr/share/man
    /usr/X11R6/man

    Seems resonable to me.

    Peter Hickman Guest

  5. #4

    Default Re: CPAN shell problem on MacOS X

    Hi.

    First of all, I think I understand why the cpan_home (etc.) is not a
    subdirectory of root's home directory. Since the root user isn't
    enabled by default, there would be no place to put same.

    However, I'm missing something with the manpage directories.
    Following the directions in the CPAN manpage, I did
    o conf makepl_arg="INSTALLMAN1DIR=/usr/share/man/man1\
    INSTALLMAN3DIR=/usr/share/man/man3"
    and I committed my change. Doing "o conf" verifies that this is
    indeed set properly.

    However, CPAN still insists on installing manpages in /man, rather
    than in /usr/share/man.

    What am I missing here? Many thanks.

    --
    Art Werschulz (agw@comcast.net)
    207 Stoughton Ave Cranford NJ 07016
    (908) 272-1146
    Art Werschulz Guest

  6. #5

    Default Re: CPAN shell problem on MacOS X

    Art Werschulz wrote:
    > Hi.
    >
    > First of all, I think I understand why the cpan_home (etc.) is not a
    > subdirectory of root's home directory. Since the root user isn't
    > enabled by default, there would be no place to put same.
    >
    > However, I'm missing something with the manpage directories.
    > Following the directions in the CPAN manpage, I did
    > o conf makepl_arg="INSTALLMAN1DIR=/usr/share/man/man1\
    > INSTALLMAN3DIR=/usr/share/man/man3"
    > and I committed my change. Doing "o conf" verifies that this is
    > indeed set properly.
    >
    > However, CPAN still insists on installing manpages in /man, rather
    > than in /usr/share/man.
    >
    > What am I missing here? Many thanks.
    >
    I will try and see what is happening this weekend.

    Peter Hickman Guest

  7. #6

    Default Re: CPAN shell problem on MacOS X

    In article <m2brqne0sy.fsf@pcp02469339pcs.union01.nj.comcast. net>, Art
    Werschulz <agw@comcast.net> wrote:
    > However, CPAN still insists on installing manpages in /man, rather
    > than in /usr/share/man.
    >
    > What am I missing here? Many thank
    not knowing how you compiled Perl in the first place, I can't be much
    help. All of my man pages are installed in /usr/share/man (on both home
    and work machines). I note that that /usr/share is owned by root, so
    you must be the super user to install directories under that path.

    Is it possible that you have not invoked Super-User rights before doing
    the install? i.e.:

    :~> sudo perl -MCPAN -e 'install module_name'

    I often find it easier, if I am doing a number of installs to become
    the super user with:

    :~> sudo /bin/sh

    or which ever shell you prefer. Now, if you install modules by hand,
    you can run perl Makefile.PL and not have to worry that the man path is
    not writable.

    --
    cp
    cp Guest

  8. #7

    Default Re: CPAN shell problem on MacOS X

    Hi.

    cp <cpryce@nospam.pryce.net> writes:
    > In article <m2brqne0sy.fsf@pcp02469339pcs.union01.nj.comcast. net>, Art
    > Werschulz <agw@comcast.net> wrote:
    >
    > > However, CPAN still insists on installing manpages in /man, rather
    > > than in /usr/share/man.
    > >
    > > What am I missing here? Many thank
    >
    > not knowing how you compiled Perl in the first place, I can't be much
    > help.
    I'm using the version of Perl that comes with MacOS X 10.3.
    > Is it possible that you have not invoked Super-User rights before doing
    > the install?
    No, I did "su - root" before starting the install.

    --
    Art Werschulz (agw@comcast.net)
    207 Stoughton Ave Cranford NJ 07016
    (908) 272-1146
    Art Werschulz Guest

  9. #8

    Default Re: CPAN shell problem on MacOS X

    Peter Hickman wrote:
    > Art Werschulz wrote:
    >
    >> Hi.
    >>
    >> First of all, I think I understand why the cpan_home (etc.) is not a
    >> subdirectory of root's home directory. Since the root user isn't
    >> enabled by default, there would be no place to put same.
    >>
    >> However, I'm missing something with the manpage directories.
    >> Following the directions in the CPAN manpage, I did
    >> o conf makepl_arg="INSTALLMAN1DIR=/usr/share/man/man1\
    >> INSTALLMAN3DIR=/usr/share/man/man3"
    >> and I committed my change. Doing "o conf" verifies that this is
    >> indeed set properly.
    >>
    >> However, CPAN still insists on installing manpages in /man, rather
    >> than in /usr/share/man.
    >>
    >> What am I missing here? Many thanks.
    >>
    >
    > I will try and see what is happening this weekend.
    >
    Well I put the makepl_arg stuff in the the config file and that didn't work. I
    even tried adding the INSTALLMAN1DIR=/usr/share/man/man1
    INSTALLMAN3DIR=/usr/share/man/man3 stuff to a command line install

    perl Makefile.PL INSTA....etc

    Didn't work either, still writes to /man

    Any other ideas

    Peter Hickman Guest

  10. #9

    Default Re: CPAN shell problem on MacOS X

    In article <m2wu96g441.fsf@pcp02469339pcs.union01.nj.comcast. net>, Art
    Werschulz <agw@comcast.net> wrote:
    > > not knowing how you compiled Perl in the first place, I can't be much
    > > help.
    >
    > I'm using the version of Perl that comes with MacOS X 10.3.
    >
    > > Is it possible that you have not invoked Super-User rights before doing
    > > the install?
    >
    > No, I did "su - root" before starting the install.
    I thought you mentioned that you did not have root access turned on. If
    so, su - root will fail.

    To invoke super user rights, preceed a command with sudo, as in

    :~> sudo perl Makefile.PL

    If you have root user access turned out (yikes), then ignore the above,
    and my next step would be to reinstall Perl with a directory structure
    more like the *Nix flavors that you are used to. The article referenced
    in an earlier post gives excellent step-by-step instructions on how to
    do just that.

    --
    cp
    cp Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139