For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > May 2004 > Problem with PREFIX option of Tk module install









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem with PREFIX option of Tk module install
John Warren

2004-05-12, 7:20 pm

I am having a problem attempting to use the PREFIX option to install
Tk 800.024 in a directory of my choice, which is necessary because I
do not have the root privilege required to install in the system
directories. I am not sure whether this is a problem with the Tk
distribution or a problem with installing perl modules in general.
Here's what happens. I unpack the distribution file,
Tk-800.024.tar.gz, and run

perl Makefile.PL PREFIX=/my/directory
make

So far, so good. But then when I run

make install

ExtUtils::Install attempts to install files into the system
directories (despite my use of PREFIX, above), where I do not have
permission to write. So far as I can tell, it looks like Install is
attempting to copy the lib, arch, bin, script, man1, and man3
directories. Of the six directories, it appears to be attempting to
copy bin and script to my directory as specified in the initial
Makefile.PL step, but it attempts to copy the other four to the system
directory, resulting in a "Permission denied" error.

My environment: Sun sparc, Solaris 8, perl 5.00503, Gnu make.

Any advice would be sincerely appreciated.
John Warren

2004-05-12, 7:20 pm

I found a post in comp.lang.perl.modules dated 2001-05-18 from Randy
Kobes, subject: "Re: MakeMaker: no PREFIX on INSTALLMAN.DIR vars"
which explained how to override the installation directories, e.g.

perl Makefile.PL PREFIX=/home/me/perl \
INSTALLMAN1DIR=/home/me/man/man1 \
INSTALLMAN3DIR=/home/me/man/man3

and I was able to get this to work. I had to add 2 or 3 more
directories to the list in my case. No clue as to why just plain
PREFIX doesn't work for me, though. (I really did search before
posting, but not with the correct keywords, apparently. Sorry if I
wasted your bandwidth.)

-John

jwwarrenva@yahoo.com (John Warren) wrote in message news:<3d9033be.0405070619.22127de3@posting.google.com>...
> I am having a problem attempting to use the PREFIX option to install
> Tk 800.024 in a directory of my choice, which is necessary because I
> do not have the root privilege required to install in the system
> directories. I am not sure whether this is a problem with the Tk
> distribution or a problem with installing perl modules in general.
> Here's what happens. I unpack the distribution file,
> Tk-800.024.tar.gz, and run
>
> perl Makefile.PL PREFIX=/my/directory
> make
>
> So far, so good. But then when I run
>
> make install
>
> ExtUtils::Install attempts to install files into the system
> directories (despite my use of PREFIX, above), where I do not have
> permission to write. So far as I can tell, it looks like Install is
> attempting to copy the lib, arch, bin, script, man1, and man3
> directories. Of the six directories, it appears to be attempting to
> copy bin and script to my directory as specified in the initial
> Makefile.PL step, but it attempts to copy the other four to the system
> directory, resulting in a "Permission denied" error.
>
> My environment: Sun sparc, Solaris 8, perl 5.00503, Gnu make.
>
> Any advice would be sincerely appreciated.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com