Closed cybunk closed 11 years ago
Try using the mongo-c-driver files in the zip instead of the most current mongo-c-driver from GitHub.
I did it, as you advice on the README, I unpacked the rmongodb/mongo-c-driver-src.zip files to rmongodb/rmongodb/src/ and try to compile...
And I have the following
* installing to library ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
* installing *source* package ‘rmongodb’ ...
** libs
*** arch - i386
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG -I/usr/local/include -fPIC -g -O2 -c bson.c -o bson.o
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG -I/usr/local/include -fPIC -g -O2 -c encoding.c -o encoding.o
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG -I/usr/local/include -fPIC -g -O2 -c gridfs.c -o gridfs.o
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG -I/usr/local/include -fPIC -g -O2 -c md5.c -o md5.o
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG -I/usr/local/include -fPIC -g -O2 -c mongo.c -o mongo.o
gcc -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -DNDEBUG -I/usr/local/include -fPIC -g -O2 -c net.c -o net.o
net.c: In function ‘mongo_write_socket’:
net.c:32: error: ‘MSG_NOSIGNAL’ undeclared (first use in this function)
net.c:32: error: (Each undeclared identifier is reported only once
net.c:32: error: for each function it appears in.)
net.c: In function ‘mongo_sock_init’:
net.c:194: warning: implicit declaration of function ‘sigaction’
make: *** [net.o] Error 1
ERROR: compilation failed for package ‘rmongodb’
* removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rmongodb’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rmongodb’
I feared as much. I know next to nothing about Macs and OS X. Hopefully we'll get the kinks out of it in the next release. I have reports that people are getting it to work with minor changes that I am trying to acquire.
ok, thanks for your reply
With new the version, rmongodb_1.0.5, clean build and test reported on OS X.
On this computer I' on Max os X 10.7 and when I tried to install rmongodb 1.0.3 from the source ( http://cran.r-project.org/web/packages/rmongodb/index.html ), I have the same problem than I found on this page : http://www.r-project.org/nosvn/R.check/r-release-macosx-ix86/rmongodb-00install.html
When I tried to compile myself with the git sources and the mongo-c-driver interface you provide on git (mongo-c-driver-src.zip) I have the following problem :
Do you have a solution ?