On Jul 14, 2004, at 10:28 AM, Adam wrote:
I kicked off the MakeFile.PL with the following parameters:
perl Makefile.PL \ --testdb='tempdb' \ --cflags='-I/usr/local/mysql/include -O3 -fno-omit-frame-pointer' \ --libs='-Lgusr/local/mysql/lib -lmysqlclient -lz -lm' \ --testuser='tmp' \ --testpassword='XXXXXX' \ --testhost='localhost'
Is that copy-n-pasted? If so, there's a typo in the --libs option - it should be '-L/usr...', not '-Lgusr...'.
Note (probably harmless): No library found for -lmysqlclient
The typo would explain this message.
Using DBI 1.43 (for perl 5.008001 on darwin-thread-multi-2level)
This shows that DBI is correctly installed.
(!) How do I know definitively when a module is installed?
This should print the version number of the module:
perl -MModule::Name -e 'print $Module::Name::VERSION'
(2) I'm not familiar with how UNIX software is built. Can someone direct me
to a site that overviews it? Even better, can someone can briefly explain
it?
There is no "one true recipe" - it varies. The most common variant is for packages that use the GNU autoconf/automake tools:
tar xzvf package-version.tar.gz cd package ./configure make sudo make install
But that's not used for Perl modules - for those, you usually want to use the CPAN shell, or for modules like DBD::mysql that need a little extra hand-holding, the manual recipe you quoted in your post.
(3) Do I need to execute the statement `sudo install` as root (using sudo)?
Most of the time, yes, but it's 'sudo make install', not 'sudo install' or 'make sudo install'. If you're installing to your home directory however, or some other directory that doesn't need admin access for writing, you could simply use 'make install'.
sherm--