[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fastcgipp-users] make examples: cannot find -lmysqlclient

From: Chang-Jian Sun
Subject: Re: [Fastcgipp-users] make examples: cannot find -lmysqlclient
Date: Sat, 1 Dec 2012 11:03:18 -0500

I don't quite understand why fastcgi lib has dependency on mysqlclient
because not every user will use mysql
Is there a way to disable such dependency ?  Thanks !

On Fri, Nov 30, 2012 at 2:04 PM, Eddie Carle <address@hidden> wrote:
> On Fri, 2012-11-30 at 13:50 -0500, Chang-Jian Sun wrote:
>> I just downloaded fastcgi++-2.1.tar.bz2, built and installed it.
>> ./configure
>> make
>> make install
>> But I got link error when building the examples:
>> address@hidden examples]$ make examples
>> g++ -o utf8-helloworld.fcgi utf8-helloworld.cpp -I../include -L../src
>> -lfastcgipp -lboost_thread-mt -lboost_system -pthread
>> -lboost_date_time-mt -lmysqlclient -g -O2
>> /usr/bin/ld: cannot find -lmysqlclient
>> collect2: ld returned 1 exit status
>> make: *** [utf8-helloworld.fcgi] Error 1
>> I can work around it by adding  -L/usr/lib64/mysql, but shouldn't the
>> examples just work out of the box?
> Yeah. Unfortunately MySQL doesn't install pkg-config information so the
> fastcgi++ configure script just goes on the assumption that
> libmysqlclient won't need any special compiler/linker flags. I haven't
> ever run into the issue myself so I would assume it is not all that
> common for the MySQL libraries to be put in their own sub-directory.
> I would certainly be open to suggestions on how to make this a bit more
> portable.
> --
>         Eddie Carle

reply via email to

[Prev in Thread] Current Thread [Next in Thread]