Subject: | Error in compiling DBD::mysql |
Date: | Thu, 23 Apr 2015 23:20:50 -0400 |
To: | bug-DBD-mysql [...] rt.cpan.org |
From: | Arthur Goldstein <arthur.goldstein [...] gmail.com> |
Please let me know how I can install DBD::mysql. I get an error, relevant
cpan output at end of message, when trying to install DBD::mysql version
4.031 on my mac (OS X Yosemite Version 10.10.3).
Some research suggests that this is because of a gcc flag option that does
not apply to Apple's c compiler. There was a work around for similar
errors that may no longer work, setting the environment variable
ARCHFLAGS=Wno-error=unused-command-line-argument-hard-error-in-future
easy_install (
http://bruteforce.gr/bypassing-clang-error-unknown-argument.html )
Thanks,
Arthur
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
cc -c
-I/Applications/AMPPS/perl/lib/site_perl/5.20.1/darwin-2level/auto/DBI
-I/Applications/AMPPS/mysql/include -g -fabi-version=2
-fno-omit-frame-pointer -fno-strict-aliasing -DDBD_MYSQL_INSERT_ID_IS_GOOD
-g -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -O3 -DVERSION=\"4.031\" -DXS_VERSION=\"4.031\"
"-I/Applications/AMPPS/perl/lib/5.20.1/darwin-2level/CORE" dbdimp.c
clang: error: unknown argument: '-fabi-version=2'
make: *** [dbdimp.o] Error 1
CAPTTOFU/DBD-mysql-4.031.tar.gz
make -- NOT OK
Failed during this command:
CAPTTOFU/DBD-mysql-4.031.tar.gz : make NO