Re: Install a module on a remote Apache Server without Admin Rights

From: James Willmore (jwillmore_at_remove.adelphia.net)
Date: 03/06/04


Date: Sat, 06 Mar 2004 10:13:41 -0500

On Fri, 05 Mar 2004 20:26:59 +0100, Alexander Seidl wrote:

> James Willmore wrote:
>> On Fri, 05 Mar 2004 11:53:21 +0100, Alexander Seidl wrote:
>>> [...]
>>
>> `perldoc perlmodinstall`
>> search the document for 'PREFIX'
>> read it over :-)
>>
>> This *should* work for you.
>>
>> HTH
>
> Hi James,
> thank you for your answer. Very good hint. I tested the suggested
> installing steps and got a "semi good" result. "perl Makefile.PL
> PREFIX=." provided a warning: "prerequisite File::Spec 0.82 not found at
> (eval 1) line 220." and a good message: "Writing Makefile for
> HTML::Template". For the first few milliseconds "make install" promised
> to be a "good command" and it produced some folders - Great! :) ... But
> then some further errormessages occured. For instance: "Warning: You do
> not have permissions to install into /opt/local/man/man3 at /opt". Very
> odd. I wasnt going to install my module in this folder. Why did he think
> that?
> Do you think the module will work nevertheless?
>
> "[112] % perl Makefile.PL PREFIX=.
> Checking if your kit is complete...
> Looks good
> Warning: prerequisite File::Spec 0.82 not found at (eval 1) line 220.
> Writing Makefile for HTML::Template
> [113] % make install

[ ...]

> Warning: You do not have permissions to install into /opt/local/man/man3
> at /opt
> /local/perl5/lib/5.00503/ExtUtils/Install.pm line 61. Installing
> lib/perl5/site_perl/5.005/HTML/Template.pm Installing
> /opt/local/man/man3/HTML::Template.3 Writing
> ./lib/perl5/site_perl/5.005/PA-RISC2.0/auto/HTML/Template/.packlist sh:
> ./lib/perl5/5.00503/PA-RISC2.0/perllocal.pod: Cannot create the
> specified fi
> le.
> *** Error exit code 1 (ignored)
> Appending installation info to
> ./lib/perl5/5.00503/PA-RISC2.0/perllocal.pod"

First, you should use a full path instead of a '.' to specify the PREFIX.
Just just a peeve I have to make 100% sure the module will install where
it's suppose to.

The warning about File::Spec is really an error. Once you get past the
'make' portion, the 'make test' portion will usually crap. If not, then
latter you *may* experience strange behavior with the module you just
installed.

It's usually an indication that you're using an outdated version of Perl.
So, you'll either need to upgrade or forget about using this module. I
have the same issue where I work. The admin gives me some bull about not
being able to upgrade (we're using 5.005); since he's the admin and I'm
not, I just gave up and started finding other ways to do things ;-)

Lastly, you *will* get some messages during 'make install' (if you get
that far :-) ) about not being able to install the man pages in the proper
place. These messages are okay and are to be expected (because the whole
point of this exercise is to install a module without root permission :-)
). So, you don't get man pages, but you can still use 'perldoc' to get
the module's documentation.

Good luck and HTH

-- 
Jim
Copyright notice: all code written by the author in this post is
 released under the GPL. http://www.gnu.org/licenses/gpl.txt 
for more information.
a fortune quote ...
With a gentleman I try to be a gentleman and a half, and with a
fraud I try to be a fraud and a half.   -- Otto von Bismark 


Relevant Pages

  • Re: /usr/ports/www/phpbb --? Makefile query
    ... >> producing attempts to install files with problematic paths such as ... when installing to virtual webs to install to a file list ... >Installation outside prefix is not supported. ... >Making phpbb capable of being a slave port and making local ports for each ...
    (freebsd-questions)
  • RE: [PHP] Question before upgrading to 5
    ... I don't want 2 instances of apache running, ... Is prefix the only option I need ... I was going to install ... If you use make install on the second one, it will add the libphp5 ...
    (php.general)
  • Fwd: Re: /usr/ports/www/phpbb --? Makefile query
    ... >> producing attempts to install files with problematic paths such as ... when installing to virtual webs to install to a file list ... >Installation outside prefix is not supported. ... >Making phpbb capable of being a slave port and making local ports for each ...
    (freebsd-hackers)
  • Re: /usr/ports/www/phpbb --? Makefile query
    ... >>Installation outside prefix is not supported. ... >>you want to install it more than once, ... >>Making phpbb capable of being a slave port and making local ports for each ... That would be breaking the Makefile, ...
    (freebsd-questions)
  • Re: Cannot connect to localhost - (local) OK
    ... > firewall configuration is not right, try to switch off the firewall for a ... > HTH, Jens Süßmeyer. ... >> I am attempting to install the ASP.NET Commerce Database from the MS ...
    (microsoft.public.sqlserver.connect)