[OmniOS-discuss] trouble building DBD::mysql (perl)

Dan McDonald danmcd at omniti.com
Mon Jun 16 17:53:32 UTC 2014


On Jun 16, 2014, at 1:39 PM, Natxo Asenjo <natxo.asenjo at gmail.com> wrote:

> 
> gcc -c  -I/opt/perl5/perls/perl-5.20.0/lib/site_perl/5.20.0/i86pc-solaris-thread-multi-64int/auto/DBI -m32 -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -DPTR_IS_LONG -fno-stack-protector -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"4.027\" -DXS_VERSION=\"4.027\" -fPIC "-I/opt/perl5/perls/perl-5.20.0/lib/5.20.0/i86pc-solaris-thread-multi-64int/CORE"   dbdimp.c
> In file included from dbdimp.c:20:0:
> dbdimp.h:21:49: fatal error: mysql.h: No such file or directory
>  #include <mysql.h>  /* Comes with MySQL-devel */

I don't see a -I in this gcc path that would point you at where mysql.h lives.  You said earlier:

> I am using database/mysql-56 from the uulm.mawi repository, which keeps its libraries/include files in /usr/local/mysql/5.6/{lib/include} .

I don't see -I /usr/local/mysql/5.6/include in your gcc arguments above.

Dan



More information about the OmniOS-discuss mailing list