Bug #22741 | cflags and libs reported to cpan fail to allow DBD::mysql to compile on MacPro | ||
---|---|---|---|
Submitted: | 27 Sep 2006 14:54 | Modified: | 5 Nov 2006 9:15 |
Reporter: | Dennis Wurster | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | Connectors: DBD::mysql ( Perl ) | Severity: | S1 (Critical) |
Version: | 4.1.13a-log | OS: | MacOS (Mac OS X 10.4 Server) |
Assigned to: | CPU Architecture: | Any | |
Tags: | OSXServer DBD::mysql cpan 10.4.7 |
[27 Sep 2006 14:54]
Dennis Wurster
[27 Sep 2006 15:17]
Dennis Wurster
Sorry, Mac Pro is 2 64-bit Dual-Core Intel Xeon "Woodcrest" processor, not Core 2 Duo.
[27 Sep 2006 15:35]
Dennis Wurster
admin$ mysql_config --cflags -I/usr/include/mysql -fno-omit-frame-pointer -arch ppc64 -arch x86_64 -pipe admin$ mysql_config --libs -arch ppc64 -arch x86_64 -pipe -L/usr/lib/mysql -lmysqlclient -lz -lm
[27 Sep 2006 15:38]
Dennis Wurster
admin$ which mysql /usr/bin/mysql ...which is the installation of the stock mysql included with the default install of OS X Server, and possibly OS X (non-server) too. non-bundled versions of mysql that you just download and install manually tend to install to /usr/local/mysql/ instead.
[5 Oct 2006 9:15]
Domas Mituzas
We do not support directly OSX Server MacOSX package, the proper point of contact should be Apple. Do you have same troubles if you use our packages? If you specify path to mysql_config to /usr/local/mysql/bin/mysql_config ?
[6 Nov 2006 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[23 Aug 2007 18:10]
yanlin peng
Hi, I successfully installed DBD::mysql perl module on my MacPro, using the package provided by mysql.com. My machine: MacPro with Mac OS X Server 10.4.7 My perl modules: DBI-1.58, DBD-mysql-4.005 My mysql distribution: mysql-5.0.45-osx10.4-i686.dmg My procedure: 0. Stop the default mysql server coming with Mac OS X server, if it is running. 1. Install DBI-1.58 2. Install mysql-5.0.45-osx10.4-i686.dmg, using the default configuration. 3. Start mysql server. Login as root to make sure accessibility. Set password and then logout. 4. Edit /etc/bashrc file, add PATH=/usr/local/mysql/bin:$PATH to make sure the new version of mysql is invoked by default. If you are using a shell other than bash, this step may be slightly different. 5. Enter into the folder for the source code of DBD-mysql-4.005, type $ sudo perl Makefile.PL --testuser=root --testpassword='my_password' $ sudo make $ sudo make test (failed, just ignore) $ sudo make install 6. Make a 'mysql' folder in /usr/local/mysql/lib/ and copy lib files into it. Otherwise, you get errors when running a perl program like this: install_driver(mysql) failed: Can't load '/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle, 1): Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib $ mkdir /usr/local/mysql/lib/mysql $ cp /usr/local/mysql/lib/lib* /usr/local/mysql/lib/mysql/
[23 Aug 2007 18:15]
yanlin peng
Output of mysql_config: $ mysql_config --cflags -I/usr/local/mysql/include -Os -arch i386 -fno-common $ mysql_config --include -I/usr/local/mysql/include $ mysql_config --libs (there is a bug. no lib files in folder /usr/local/mysql/lib/mysql) -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm $ mysql_config --libs_r -L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm $ mysql_config --socket /tmp/mysql.sock $ mysql_config --port 3306 $ mysql_config --version 5.0.45 $ mysql_config --libmysqld-libs -L/usr/local/mysql/lib/mysql -lmysqld -lz -lm