Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install DBD::MySQL on Mac OS X Snow Leopard
12-03-2011, 09:48 AM
Post: #11
RE: Install DBD::MySQL on Mac OS X Snow Leopard
(10-21-2011 05:04 PM)scottmccracken Wrote:  Daz,

Thanks so much for your suggestions! I'm learning a bit about Perl as I go but must admit this stuff still confuses me to no end. Everything you mentioned made sense, so I fired up cpan plus and tried reinstalling the modules. Unfortunately I ran into the following error when running i DBI:

Code:
Installing DBI (1.616)
Running [/usr/bin/perl /usr/bin/cpanp-run-perl /Users/username/.cpanplus/5.12.3/build/DBI-1.616/Makefile.PL]...

*** Your LANG environment variable is set to 'en_US.UTF-8'
*** This may cause problems for some perl installations.
*** If you get test failures, please try again with LANG unset.
*** If that then works, please email dbi-dev@perl.org with details
*** including the output of 'perl -V'


*** You are using a perl configured with threading enabled.
*** You should be aware that using multiple threads is
*** not recommended for production environments.

Your perl was compiled with gcc (version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)), okay.
Creating test wrappers for DBD::Gofer:

[skip this long part]
.
.
.
Checking if your kit is complete...
Looks good

    I see you're using perl 5.012003 on darwin-thread-multi-2level, okay.
    Remember to actually *read* the README file!
    Use  'make' to build the software (dmake or nmake on Windows).
    Then 'make test' to execute self tests.
    Then 'make install' to install the DBI and then delete this working
    directory before unpacking and building any DBD::* drivers.

Writing Makefile for DBI
[ERROR] MAKE failed: No such file or directory open3: exec of /usr/bin/make failed at /System/Library/Perl/5.12/IPC/Cmd.pm line 1010

[ERROR] Unable to create a new distribution object for 'DBI' -- cannot continue

Error installing 'DBI'
Problem installing one or more modules
*** You can view the complete error buffer by pressing 'p' ***

I honestly can't tell if it's a permissions issue or if I'm missing a makefile? I was hoping it was going to be easy, but I guess that was asking too much. Any further suggestions you have for me would be much appreciated.

Thanks,
Scott

Hi Scott,

I've just tried this on my mac (after an upgrade to Lion) and it all worked ok... Undecided

The only thing that I can think of that may be different is that the Lion upgrade did wipe out my Xcode install (Apple's developer tools), so just installed the GCC for Mac package instead of the whole 4GB of Xcode (https://github.com/kennethreitz/osx-gcc-installer).

Your error did look like a compilation thing... Try installing GCC and having another bash.

Daz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)