[SR-Users] Compile with mysql error

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 17 00:43:51 CEST 2013


Hello,

On 6/17/13 12:34 AM, David Cunningham wrote:
> Hello,
>
> We have a system which Kamailio fails to compile mysql support on, 
> even though the library is installed.
>
> The mysql packages are:
> MySQL-client.x86_64 5.5.28-1.rhel5                                    
> installed
> MySQL-devel.x86_64 5.5.32-1.rhel5                                    
> installed
> MySQL-server.x86_64 5.5.28-1.rhel5                                    
> installed
> MySQL-shared-compat.x86_64 
> 5.5.28-1.rhel5                                    installed
>
> The error from the Kamailio install is:
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
> make[1]: *** [db_mysql.so] Error 1
> make: *** [install-modules] Error 1
> make: Leaving directory `/usr/src/kamailio-3.3.2'
>
> Would anyone be able to advise please? Thanks in advance.
is there any mysql_config or mysql_config5 tool installed in the system?

Can you locate the files by pattern libmysqlclient*.so* and see if they 
are in standard lib path?

Also, you can go to db_mysql module and compile it in verbose mode:

cd modules/db_mysql
make proper
make Q=0

look after -L paths to see where they point.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
   * http://asipto.com/u/katu *




More information about the sr-users mailing list