On Jun 18, 2007, at 5:22 PM, Lola J. Lee Beno wrote:
Sherm Pendley wrote:
So you can run the above command without the trailing backslashes
in the first two lines above. That's what you'd do if you'd prefer
to type it all on one line instead of three separate lines.
Ahh . . makes sense - thanks! So, I ended up by downloading the
module directly from search.cpan.org (I didn't quite trust the
download via cpan, specially with the weird characters appended at
the end) and ran Makefile.PL and make manually. Here's the results
I got:
[05:10 PM] ~/.cpan/build/DBD-mysql-4.005 19 $ sudo perl Makefile.PL
--cflags="-I/usr/local/mysql/include -Os -arch ppc -fno-common" --
libs="-L/usr/local/mysql/lib -lmysqlclient -lz -lm"
Password:
I will use the following settings for compiling and testing:
cflags (User's choice) = -I/usr/local/mysql/include -Os -
arch ppc -fno-common
embedded (mysql_config ) =
libs (User's choice) = -L/usr/local/mysql/lib -
lmysqlclient -lz -lm
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Checking if your kit is complete...
Looks good
Using DBI 1.56 (for perl 5.008006 on darwin-thread-multi-2level)
installed in /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/
Writing Makefile for DBD::mysql
[05:11 PM] ~/.cpan/build/DBD-mysql-4.005 20 $ sudo make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI -I/
usr/local/mysql/include -Os -arch ppc -fno-common -
DDBD_MYSQL_INSERT_ID_IS_GOOD -g -g -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -
DVERSION=\"4.005\" -DXS_VERSION=\"4.005\" "-I/System/Library/Perl/
5.8.6/darwin-thread-multi-2level/CORE" dbdimp.c
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /Library/Perl/5.8.6/darwin-
thread-multi-2level/auto/DBI/Driver.xst > mysql.xsi
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp -typemap /
System/Library/Perl/5.8.6/ExtUtils/typemap mysql.xs > mysql.xsc &&
mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs,
line 225
Warning: duplicate function definition 'rows' detected in mysql.xs,
line 612
cc -c -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI -I/
usr/local/mysql/include -Os -arch ppc -fno-common -
DDBD_MYSQL_INSERT_ID_IS_GOOD -g -g -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -
DVERSION=\"4.005\" -DXS_VERSION=\"4.005\" "-I/System/Library/Perl/
5.8.6/darwin-thread-multi-2level/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
LD_RUN_PATH="/usr/local/mysql/lib" /usr/bin/perl myld env
MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup
-L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/
mysql.bundle -L/usr/local/mysql/lib -lmysqlclient -lz -lm chmod
755 blib/arch/auto/DBD/mysql/mysql.bundle
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
Manifying blib/man3/DBD::mysql.3pm
Manifying blib/man3/DBD::mysql::INSTALL.3pm
Manifying blib/man3/Bundle::DBD::mysql.3pm
Does this seem right to you?
It looks fine so far, but you've only done the first step. Does the
user account you're using to run the tests have access to the "test"
database? If not, you'll need to specify the database user name and
password to use by passing the --testuser=foo and --testpassword=bar
options to Makefile.PL.
If testing this produces errors that indicate a failure to log in to
MySQL, do a "sudo make distclean" to start over from scratch. Rerun
"Makefile.PL", being sure to include the database user and password
options.
Also, only the final step needs to be run with "sudo", and that only
if you're installing in the default location, which you are here. As
an exception, the first "sudo perl Makefile.PL ..." may have created
some root-owned files, so if you start over for any reason it'd be
best to use "sudo make distclean" to make sure distclean has the
permissions to delete those. Or just nuke the folder from orbit and
unzip a new copy... :-)
It didn't seem to have gone through the testing portion.
You didn't run the other steps; the full recipe is:
perl Makefile.PL --with-whatever-args
make
make test
sudo make install
Sorry if this sounds obvious, but you shouldn't continue with the
next step until you're happy with the last one. If you have any
doubts, don't hesitate to do as you've done here - post your input,
the output, and your question.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net