Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / April 2008



Tip: Looking for answers? Try searching our database.

Installing DBD::mysql on leopard server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Palmer - 18 Feb 2008 12:23 GMT
Hi

I see that people are having trouble installing DBD::mysql on Leopard.
Following the hints on this forum I successfully installed it on my
laptop but can't do the same on X Server on our server.

Has anyone made the breakthrough on Leopard X Server - the include
directory etc that were deplaced on the home version of Leopard are
not even there (or I can;t find them) on X Server 5.1

I've installed XCode etc. I want to use the built in Mysql and Perl if
possible but if not then any suggestions welcome.

On going through perl Makefile.PL etc I get the following:

sh-3.2# perl Makefile.PL
I will use the following settings for compiling and testing:

 cflags        (mysql_config) = -I/usr/include -fno-omit-frame-
pointer     -pipe
 embedded      (mysql_config) =
 libs          (mysql_config) = -pipe -L/usr/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
Unrecognized argument in LIBS ignored: '-pipe'
Note (probably harmless): No library found for -lmysqlclient
Using DBI 1.52 (for perl 5.008008 on darwin-thread-multi-2level)
installed in /System/Library/Perl/Extras/5.8.8/darwin-thread-
multi-2level/auto/DBI/
Writing Makefile for DBD::mysql

sh-3.2# 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/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level/
auto/DBI -I/usr/include -fno-omit-frame-pointer     -pipe -
DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -arch i386 -arch ppc -g -pipe -fno-
common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -
Wdeclaration-after-statement -I/usr/local/include -O3   -DVERSION=
\"4.006\" -DXS_VERSION=\"4.006\"  "-I/System/Library/Perl/5.8.8/darwin-
thread-multi-2level/CORE"   dbdimp.c
In file included from dbdimp.c:20In file included from dbdimp.c:20:

dbdimp.h:22:49:dbdimp.h:22:49:  error: error: mysql.h: No such file or
directorymysql.h: No such file or directory

dbdimp.h:23:45:dbdimp.h:23:45:  error: error: mysqld_error.h: No such
file or directorymysqld_error.h: No such file or directory

dbdimp.h:25:49: dbdimp.h:25:49:error:  errmsg.h: No such file or
directoryerror:
errmsg.h: No such file or directory
In file included from dbdimp.c:20:
dbdimp.h:144: error: syntax error before 'MYSQL'In file included from
dbdimp.c:20:
dbdimp.h:144: error: syntax error before 'MYSQL'

dbdimp.h:144: warning: no semicolon at end of struct or uniondbdimp.h:
144: warning: no semicolon at end of struct or union

dbdimp.h:165: error: syntax error before '}' token
dbdimp.h:165: error: syntax error before '}' token
dbdimp.h:237: error: syntax error before 'MYSQL_RES'
dbdimp.h:237: warning: no semicolon at end of struct or union
dbdimp.h:237: error: syntax error before 'MYSQL_RES'
dbdimp.h:237: warning: no semicolon at end of struct or union
dbdimp.h:240: error: syntax error before 'row_num'
dbdimp.h:240: error: syntax error before 'row_num'
dbdimp.h:240: warning: data definition has no type or storage class
dbdimp.h:240: warning: data definition has no type or storage class
dbdimp.h:245: error: syntax error before 'insertid'dbdimp.h:245:
error: syntax error before 'insertid'

etc etc hundreds of errors
Enrique Terrazas - 18 Feb 2008 21:06 GMT
You probably need to install the MySQL client libraries and headers  
first on Leopard server:

<http://docs.info.apple.com/article.html?artnum=306782>

Enrique

On Feb 18, 2008, at 4:23 AM, <bill.palmer@interragate.com> <bill.palmer@interragate.com
> wrote:

> Hi
>
[quoted text clipped - 87 lines]
>
> etc etc hundreds of errors

--

Enrique Terrazas, MD, MS
Director, Laboratory Medicine Residency Program
Director, NCPL Laboratories
Chief, Laboratory Information Systems
HS Associate Clinical Professor
University of California, San Francisco
Clinical Laboratories, Box 0100
415.353.1375(UCSF/China Basin phone)
415.353.1620(UCSF/Parnassus phone)
415.353.4826(fax)
415.443.0913(pager)
Enrique.Terrazas@ucsf.edu

CONFIDENTIALITY NOTICE: The information contained in this  
transmission, including any enclosed files, is confidential and  
intended solely for the addressee. If you are not the intended  
recipient, you are hereby notified that any distribution, copying,  
disclosure and use of, the contents of this transmission is strictly  
prohibited. If you have received this communication in error, please  
notify the sender immediately by reply email and permanently delete  
this message, enclosures and all copies.
Ff Court - 15 Apr 2008 07:18 GMT
On Feb 18, 2:06 pm, Enrique.Terra...@ucsf.edu (Enrique Terrazas)
wrote:
> You probably need to install the MySQL client libraries and headers
> first on Leopard server:
[quoted text clipped - 121 lines]
> notify the sender immediately by reply email and permanently delete
> this message, enclosures and all copies.

Have you tried Net::MySQL and mysqlPP?

  Regards,
   Court ff_court@yahoo.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.