fastcgipp-users
[Top][All Lists]
Advanced

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

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


From: Eddie Carle
Subject: Re: [Fastcgipp-users] make examples: cannot find -lmysqlclient
Date: Fri, 30 Nov 2012 12:04:03 -0700

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]