Appsilon / r-lambda-workflow

Runtime for running R on AWS Lambda.
67 stars 16 forks source link

RMariaDB & RMySQL not working #14

Open MooJoh opened 5 years ago

MooJoh commented 5 years ago

When trying to create custom package layers for RMariaDB or RMySQL those packages are not included in the resulting packages.zip. The reason seems to be that package installation fails because of missing mysql-client. Is there a way to install that client in the base R layer and will the lambda function be able to use those packages (i.e. would the mysql client be available there)?

Many thanks in advance, great work!

MooJoh commented 5 years ago

Had to yum install MariaDB-devel on the EC2 instance before installing the R-packages. Then one has to download the mysqlclient.so.18 and include it in the lib folder of the lambda task.