I don't know the premise of the statement, just explaining why I suggested one and CRAN listed another. (The CRAN page references libmysqlclient-dev, but the github page suggests "the mariadb implementation is much better". You can find the need for certain libraries on, as SystemRequirements: libmariadb-client-dev | libmariadb-client-lgpl-dev | libmysqlclient-dev (deb), mariadb-devel (rpm), mariadb | mysql-connector-c (brew), mysql56_dev (csw)Īnd a note on how to install them in RMySQL's github README.md's Installation section. & apt-get install -y -no-install-recommends libmariadbclient-dev I believe that rocker/r-dev does not include the libraries you need to get this to run. Libmysqlclient.so.21: cannot open shared object file: No such file or directory Unable to load shared object '/usr/local/lib/R/site-library/RMySQL/libs/RMySQL.so': Įrror: package or namespace load failed for ‘RMySQL’ in dyn.load(file, DLLpath = DLLpath. Install_packages.R install_packages(“RMySQL”)Ĭommands and responses: $ docker build -t myapp. RUN Rscript /home/analysis/install_packages.RĬMD Rscript /home/analysis/script_basic.R I got into the same problem once moved to a M1 machine. Running under RStudio or from the command line, RMySQL loads without a problem.ĬOPY install_packages.R /home/analysis/install_packages.RĬOPY script_basic.R /home/analysis/script_basic.R The only solution I found that was somewhat similar was specific to running RedHat Linux (I am running Mac OS X 10.15) and the solution included pointing to several directories that I do not have. I am trying to run MySQL in an R script running inside a Docker (actually Rocker) container, but am getting an error on the “install_packages(…” step.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |