Skip to content

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

@purei

Description

@purei

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’

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions