Closed nstauder2 closed 6 years ago
Hmm, it works fine on regular CentOS 7 when R is installed from EPEL.Do you really need to use anaconda?
Do you have conflicting copies of libbson
or libmongoc
installed in /usr/local/lib
perhaps?
Nothing is in /usr/local/lib, but in /usr/local/anaconda/lib there are:
libbson.a libbson.so libbson.so.0.7 libbson.so.0.7.1
and
libmongoc.a libmongoc.so libmongoc.so.0.7 libmongoc.so.0.7.1
Many of our machines use Anaconda R for ease of installation, but this could be changed if all else fails.
On Wed, Sep 27, 2017 at 3:53 PM, Jeroen Ooms notifications@github.com wrote:
Do you have conflicting copies of libbson or libmongoc installed in /usr/local/lib perhaps?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeroen/mongolite/issues/110#issuecomment-332636617, or mute the thread https://github.com/notifications/unsubscribe-auth/ALaHnmCCYJD84fjH2Y44DsRSEVCdMhKxks5smqfVgaJpZM4PmTTs .
The libbson
that you ship with anaconda conflicts with the one bundled one in mongolite. You somehow need to install the package without linking to -L/usr/local/anaconda/lib
or remove libbson
...
I can add a workaround for this in the next version of mongolite...
That seems to have helped. I moved all of the libbson
files out of the directory and tried again. It seems to have moved on to this error:
/usr/local/anaconda/lib/R/library/mongolite/libs/mongolite.so: undefined symbol: mongoc_read_prefs_new
You need to do the same for libmongoc
Great! That seems to have fixed it!
`** testing if installed package can be loaded
Thank you very much for helping so quickly!
Installation via Anaconda R fails (mongodb and mongodb-server installed, mongod service running):