<div dir="ltr">I made a build using this<div><font face="monospace">FROM ubuntu:18.04<br><br>RUN apt update<br>RUN apt install -y build-essential git bison flex pkg-config libmysqlclient-dev libssl-dev libpcre3-dev mysql-client<br><br>RUN mkdir -p /usr/local/src/kamailio-devel && \<br>  cd /usr/local/src/kamailio-devel && \<br>  git clone --depth 1 -b 5.3.1 <a href="https://github.com/kamailio/kamailio">https://github.com/kamailio/kamailio</a> kamailio<br>RUN cd /usr/local/src/kamailio-devel/kamailio && \<br>  make cfg && \<br>  make include_modules="db_mysql dialplan" cfg && \<br>  make all && \<br>  make install<br></font></div><div><br></div><div><br></div><div>  Kjeld</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre. 10. jan. 2020 kl. 02.23 skrev Sam Ware <<a href="mailto:sam.ware@gmail.com">sam.ware@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am attempting to create my own docker image on Centos 7.  During the build, I get the following error message during the "make all" phase.<div>----------------------------------------------------------------------</div><div>CC (gcc) [kamailio]             core/cfg.tab.o<br>LD (gcc) [kamailio]             kamailio<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>CC (gcc) [M db_mysql.so]                km_dbase.o<br>km_dbase.c:36:19: fatal error: mysql.h: No such file or directory<br> #include <mysql.h><br>                   ^<br>compilation terminated.<br>make[1]: *** [km_dbase.o] Error 1<br>make: *** [modules] Error 1</div><div>------------------------------------------------------------------------</div><div><br></div><div>I checked and the mysql.h exists in the /usr/include/mysql directory.</div><div><br></div><div>Any thoughts?</div><div><br></div><div>FYI, here is my Dockerfile</div><div><br></div><div>FROM centos:7<br>MAINTAINER “Sam D Ware” <a href="mailto:sware@o1.com" target="_blank">sware@o1.com</a><br>ENV container docker<br>RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in ; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done);<br>RUN rm -rf /lib/systemd/system/multi-user.target.wants/ \<br>    && rm -rf /etc/systemd/system/.wants/ \<br>    && rm -rf /lib/systemd/system/local-fs.target.wants/ \<br>    && rm -f /lib/systemd/system/sockets.target.wants/udev \<br>    && rm -f /lib/systemd/system/sockets.target.wants/initctl \<br>    && rm -rf /lib/systemd/system/basic.target.wants/ \<br>    && rm -f /lib/systemd/system/anaconda.target.wants/*<br>VOLUME [ “/sys/fs/cgroup”]<br>RUN yum -y install epel-release<br>RUN yum -y update<br>RUN yum -y install git-core gcc gcc-c++ flex bison mysql-devel<br>RUN yum -y install mariadb-devel hiredis hiredis-devel curl nss make<br>WORKDIR /usr/local/src/<br>RUN git clone --depth 1 --no-single-branch <a href="https://github.com/kamailio/kamailio" target="_blank">https://github.com/kamailio/kamailio</a> kamailio  <br>WORKDIR /usr/local/src/kamailio/  <br>RUN git checkout -b 5.3 origin/5.3<br>RUN make cfg<br>COPY modules.lst /usr/local/src/kamailio/src/ <br>RUN make all<br>RUN make install<br>RUN groupadd kamailio<br>RUN adduser --system -g kamailio --shell /bin/false -c "Kamailio" --home /var/run/kamailio kamailio<br>RUN cp /usr/local/src/kamailio/pkg/kamailio/obs/kamailio.sysconfig /etc/sysconfig/kamailio<br>COPY kamailio.service /etc/systemd/system/kamailio.service<br>RUN yum clean all; systemctl enable kamailio<br>CMD ["/usr/sbin/init"]<br clear="all"><div><br></div>-- <br><div dir="ltr">Sam  D Ware<br><br></div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p>--------------------- Med Liberalistiske Hilsner ----------------------</p><pre cols="72">   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
   Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
   Den ikke akademiske hjemmeside for liberalismen - <a href="http://www.liberalismen.dk" target="_blank">www.liberalismen.dk</a>

</pre></div></div>