Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing with Homebrew on OS X Sierra; cannot find RMySQL.so file it just created? #211

Open
purei opened this issue Aug 10, 2017 · 0 comments

Comments

@purei
Copy link

purei commented Aug 10, 2017

Installed mysql and r with homebrew.

It looks as though it successfully compiles RMySQL.so and then installs it: installing to /usr/local/lib/R/3.4/site-library/RMySQL/libs

However, then it says it cannot load exactly the object it just made: unable to load shared object '/usr/local/lib/R/3.4/site-library/RMySQL/libs/RMySQL.so'

Then it removes the folder removing ‘/usr/local/lib/R/3.4/site-library/RMySQL’ that would contain RMySQL.so, so I cannot check to see if it was properly created and installed.

* installing *source* package ‘RMySQL’ ...
** package ‘RMySQL’ successfully unpacked and MD5 sums checked
Found mysql_config cflags and libs!
Using PKG_CFLAGS=-I/usr/local/Cellar/mysql/5.7.19/include/mysql
Using PKG_LIBS=-L/usr/local/opt/openssl/lib -L/usr/local/Cellar/mysql/5.7.19/lib -lmysqlclient -lssl -lcrypto
** libs
...snipped...
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/Cellar/r/3.4.1_1/lib/R/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -o RMySQL.so RMySQL-init.o connection.o db-apply.o driver.o exception.o fields.o result.o utils.o -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/r/3.4.1_1/lib/R/lib -lR -lintl -Wl,-framework -Wl,CoreFoundation
installing to /usr/local/lib/R/3.4/site-library/RMySQL/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘RMySQL’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/local/lib/R/3.4/site-library/RMySQL/libs/RMySQL.so':
  dlopen(/usr/local/lib/R/3.4/site-library/RMySQL/libs/RMySQL.so, 6): Symbol not found: _mysql_affected_rows
  Referenced from: /usr/local/lib/R/3.4/site-library/RMySQL/libs/RMySQL.so
  Expected in: flat namespace
 in /usr/local/lib/R/3.4/site-library/RMySQL/libs/RMySQL.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/3.4/site-library/RMySQL’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant