[cgiapp] OT? How do I install Perl modules if /bin/pwd is broken?

Mark Rajcok mrajcok at gmail.com
Sun Nov 16 22:37:24 EST 2008


I created a SourceForge.net project (perlmvccgiapp) and I'm trying to use
SF's "Project Web" to set up a demo.  I could not get Perl modules to
install on this "shared environment (all web pages and CGI scripts are
served using a single user account on the project web servers)."

I traced the problem down to a bug in /bin/pwd -- can you believe that!  (So
much of my life seems wasted by broken/bad software -- can anyone relate?)
I added "2>&1" to the "make install" command and I saw this error:

/bin/pwd: cannot open directory `../../..': Permission denied
Couldn't chdir to : at -e line 1
make: *** [pure_site_install] Error 1

After some Internet searching, I found the bug, which manifests itself if a
parent directory is not readable (which is certainly the case in this shared
hosting environment):
https://bugzilla.redhat.com/show_bug.cgi?id=448446

Apparently, 'pwd' does not have the problem because it uses the shell
defined alias.  So I was hoping I could change something in the Makefile,
but I didn't find '/bin/pwd' anywhere in the Makefile.

All I manged to discover was that /bin/pwd is being called somewhere during
this line from the Makefile:
   /usr/bin/perl -MExtUtils::Install -e 'install({@ARGV}, '\''0'\'', 0,
'\''0'\'');' \
make install output:

Manifying blib/man3/CGI::Application::Mailform.3pm
Manifying blib/man3/CGI::Application.3pm
/usr/bin/perl -MExtUtils::Install -e 'install({@ARGV}, '\''0'\'', 0,
'\''0'\'');' \
read
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/CGI/Application/.packlist
\
write
/home/persistent/p/pe/perlmvccgiapp/app1_private//lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/CGI/Application/.packlist
\
blib/lib
/home/persistent/p/pe/perlmvccgiapp/app1_private//lib/perl5/site_perl/5.8.8
\
blib/arch
/home/persistent/p/pe/perlmvccgiapp/app1_private//lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
\
blib/bin /home/persistent/p/pe/perlmvccgiapp/app1_private//bin \
blib/script /home/persistent/p/pe/perlmvccgiapp/app1_private//bin \
blib/man1 /home/persistent/p/pe/perlmvccgiapp/app1_private//share/man/man1 \
blib/man3 /home/persistent/p/pe/perlmvccgiapp/app1_private//share/man/man3

/bin/pwd: cannot open directory `../../..': Permission denied
Couldn't chdir to : at -e line 1
make: *** [pure_site_install] Error 1


I'm about to give up (and resort to manually copying files from the untared
directories into the desired install location), but thought I'd ask if
anyone else has run into this, and/or anyone has any clever ideas regarding
how to work around this bug.

Sorry if this is too off-topic, but I encountered the problem trying to
install CGI-Application :-)  and the project is about how to use
CGI-Application to jumpstart a web project :-))

-- Mark


More information about the cgiapp mailing list