make install Sandbox.pm path issues

Bug #392996 reported by Ronald Bradford
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MySQL Sandbox
Fix Committed
Medium
Giuseppe Maxia

Bug Description

Attempting to run installed Sandbox 3.0.04 for installation with local user produces the following error.

make_sandbox
Can't locate MySQL/Sandbox.pm in @INC (@INC contains: /Users/rbradfor/usr/local/lib/perl5/site_perl/5.8.8/darwin-thread-multi-2level /Users/rbradfor/usr/local/lib/perl5/site_perl/5.8.8 /Library/Perl/Updates/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at /Users/rbradfor/usr/local/bin/make_sandbox line 27.
BEGIN failed--compilation aborted at /Users/rbradfor/usr/local/bin/make_sandbox line 27.

Environment variable settings

echo $PERL5LIB
/Users/rbradfor/usr/local/lib/perl5/site_perl/5.8.8

A look does not find any Sandbox.pm under this directory

$ du $PERL5LIB
8 /Users/rbradfor/usr/local/lib/perl5/site_perl/5.8.8/darwin-thread-multi-2level/auto/MySQL/Sandbox
8 /Users/rbradfor/usr/local/lib/perl5/site_perl/5.8.8/darwin-thread-multi-2level/auto/MySQL
8 /Users/rbradfor/usr/local/lib/perl5/site_perl/5.8.8/darwin-thread-multi-2level/auto
8 /Users/rbradfor/usr/local/lib/perl5/site_perl/5.8.8/darwin-thread-multi-2level
8 /Users/rbradfor/usr/local/lib/perl5/site_perl/5.8.8

It is actually located one directory higher.

$ find . -name Sandbox.pm
./MySQL-Sandbox-3.0.04/blib/lib/MySQL/Sandbox.pm
./MySQL-Sandbox-3.0.04/lib/MySQL/Sandbox.pm
./usr/local/lib/perl5/site_perl/MySQL/Sandbox.pm

Reseting PERL5LIB accordingly gives expected results

export PERL5LIB=~/usr/local/lib/perl5/site_perl/
make_sandbox
syntax /Users/rbradfor/usr/local/bin/make_sandbox {VERSION|tarball_full_name} [options]

The problem could be a documentation issue, however I'm curious of the empty directories under the darwin-thread-multi-2level/auto directory?

Revision history for this message
Giuseppe Maxia (giuseppe-maxia) wrote :

Thanks for reporting. This is a documentation issue. The docs must make clear that the path for PERL5LIB can be different, depending on your operating system and Perl version.

Changed in mysql-sandbox:
assignee: nobody → Giuseppe Maxia (giuseppe-maxia)
status: New → Confirmed
Changed in mysql-sandbox:
importance: Undecided → Medium
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.