codayblue / libmyemail

mysql udf that allows you to send emails from a sql function
MIT License
2 stars 2 forks source link

cannot Build at centos 8 #4

Closed sp4148 closed 3 years ago

sp4148 commented 3 years ago

cannot Build at centos 8

with below error

fatal error: Poco/Net/SecureSMTPClientSession.h: No such file or directory

include "Poco/Net/SecureSMTPClientSession.h" / Send the email over TLS this is needed /

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. make[2]: [CMakeFiles/myemail.dir/build.make:63: CMakeFiles/myemail.dir/myemail.cc.o] Error 1 make[1]: [CMakeFiles/Makefile2:68: CMakeFiles/myemail.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

codayblue commented 3 years ago

Looks like you are missing poco-devel package. I will look into how to get those and add steps to read me. If you beat me too it I will happily accept a PR with corrected steps.

sp4148 commented 3 years ago

but centos 8 has no this package poco-devel

codayblue commented 3 years ago

Hummm yeah that is an issue. You will likely need to compile poco from source. I was able to compile it by downloading the tar.gz from https://github.com/pocoproject/poco/releases/tag/poco-1.10.1-release then untar it and change into the directory. From there I ran the commands below:

sudo yum install -y git gcc-c++ make cmake3 openssl-devel mariadb-devel
./configure
make
sudo make install

After that I tried compiling this lib again and it compiled fine. I will install a test mysql and test the lib when I get a chance.

sp4148 commented 3 years ago

good news, thanks very many for your help