[SR-Users] Build Kamailio with MariaDB failed.

Ye, Charlie (NSB - CN/Qingdao) charlie.ye at nokia-sbell.com
Thu May 10 03:17:07 CEST 2018


Hi all,

Thanks for your nice help!
I have built Kamailio successfully. I just created a new link to libmysqld.so in /usr/lib64.

Thanks and Best Regards,
Charlie

From: Sergey Safarov [mailto:s.safarov at gmail.com]
Sent: 2018年5月9日 21:41
To: miconda at gmail.com; Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Cc: Ye, Charlie (NSB - CN/Qingdao) <charlie.ye at nokia-sbell.com>
Subject: Re: [SR-Users] Build Kamailio with MariaDB failed.

Need to install mysql-devel
https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/obs/kamailio.spec#L554

And then apply Daniel recommendations.

ср, 9 мая 2018 г. в 14:42, Daniel-Constantin Mierla <miconda at gmail.com<mailto:miconda at gmail.com>>:

Hello,

can you go to src/modules/db_mysql and run:

make clean

make Q=0

and send the output here?

Cheers,
Daniel

On 09.05.18 10:46, Ye, Charlie (NSB - CN/Qingdao) wrote:
Hi Daniel,

Please find my answer as below:

The operating system: Red Hat Enterprise Linux Server release 7.4 (Maipo).

I didn’t modify the Makefile, only include db_mysql module when made cfg.




Thanks and Best Regards,
Charlie

From: Daniel-Constantin Mierla [mailto:miconda at gmail.com]
Sent: 2018年5月9日 16:27
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org><mailto:sr-users at lists.kamailio.org>; Ye, Charlie (NSB - CN/Qingdao) <charlie.ye at nokia-sbell.com><mailto:charlie.ye at nokia-sbell.com>
Subject: Re: [SR-Users] Build Kamailio with MariaDB failed.


Hello,

what operating system are you using?

Have you done any changes to the Makefiles, or is just stock Kamailio?

Cheers,
Daniel

On 09.05.18 10:23, Ye, Charlie (NSB - CN/Qingdao) wrote:
Hi all,

Does everyone use MariaDB in Kamailio? When I built Kamailio with MariaDB, the below error happened. Would anyone give a help? Thanks in advance!

[root at clcmos /usr/local/src/kamailio-devel/kamailio]$ # make all
make -C src/ all
make[1]: Entering directory `/usr/local/src/kamailio-devel/kamailio/src'
make[3]: `libsrdb2.so.1.0' is up to date.
make[3]: `libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_mysql.so]                db_mysql.so
/usr/bin/ld: cannot find -lmariadb
collect2: error: ld returned 1 exit status
make[2]: *** [db_mysql.so] Error 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/local/src/kamailio-devel/kamailio/src'
make: *** [all] Error 2



Thanks and Best Regards,
Charlie




_______________________________________________

Kamailio (SER) - Users Mailing List

sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>

https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--

Daniel-Constantin Mierla

www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>

Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com>



--

Daniel-Constantin Mierla

www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>

Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180510/bc2482f2/attachment.html>


More information about the sr-users mailing list