Hi Dan,

On Mon, Jun 16, 2014 at 7:53 PM, Dan McDonald <dan...@omniti.com> wrote:

>
> On Jun 16, 2014, at 1:39 PM, Natxo Asenjo <natxo.ase...@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.
>

absolutely right. For what it's worth, I could set the include path in the
--cflags like this

perl Makefile.PL --cflags="-I/usr/local/mysql/5.6/include  -m32  -fPIC -g
-fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing"

but then one of  the shared libraries of the mysql package was only 64
bits, so it failed again. So now I tried with the system perl and it worked
;-)

Thanks for the inputs.

-- 
regards,
natxo
_______________________________________________
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss

Reply via email to