[SR-Users] Compile with mysql error
David Cunningham
dcunningham at voisonics.com
Fri Jun 21 06:10:34 CEST 2013
This worked. Thank you very much!
On 19 June 2013 22:33, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
> Hello,
>
> make a symbolic link to the version you want to use, like:
>
> ln -s /usr/lib64/libmysqlclient.so.16.0.0 /usr/lib64/libmysqlclient.so
>
> Cheers,
> Daniel
>
>
> On 6/17/13 12:45 AM, David Cunningham wrote:
>
> Hello,
>
> # find / -name libmysqlclient*.so*
> /usr/lib64/libmysqlclient_r.so.16.0.0
> /usr/lib64/libmysqlclient.so.16
> /usr/lib64/libmysqlclient_r.so.15.0.0
> /usr/lib64/libmysqlclient_r.so.14.0.0
> /usr/lib64/libmysqlclient.so.16.0.0
> /usr/lib64/libmysqlclient.so.14.0.0
> /usr/lib64/libmysqlclient_r.so.16
> /usr/lib64/libmysqlclient.so.15.0.0
> /usr/lib64/libmysqlclient_r.so.12.0.0
> /usr/lib64/libmysqlclient.so.12
> /usr/lib64/libmysqlclient_r.so.12
> /usr/lib64/libmysqlclient.so.12.0.0
> /usr/lib64/libmysqlclient_r.so.14
> /usr/lib64/libmysqlclient.so.14
> /usr/lib64/libmysqlclient_r.so.15
> /usr/lib64/libmysqlclient.so.15
>
> I will try the verbose compile, thank you.
>
>
> On 17 June 2013 08:43, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
>
>> 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 *
>>
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
>
> --
> David Cunningham, Voisonics
> http://voisonics.com/
> USA: +1 213 221 1092
> UK: +44 (0) 20 3298 1642
> Australia: +61 (0) 2 8063 9019
>
>
> --
> Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
> * http://asipto.com/u/katu *
>
>
--
David Cunningham, Voisonics
http://voisonics.com/
USA: +1 213 221 1092
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130621/d65b4b33/attachment-0001.html>
More information about the sr-users
mailing list