dselivanov / rmongodb

R driver for MongoDB
53 stars 26 forks source link

rmongodb fails to load/install on Windows #54

Closed davparker closed 9 years ago

davparker commented 10 years ago

Hello,

I'm trying to install rmongodb into my environment but for some reason it will not wok with my configuration. I've tried both installing the stable package from Cran and the devtools version.

The Cran package shows that it installs, but it will not load. It fails with an error. First my nvironment:

sessionInfo() R version 3.1.1 (2014-07-10) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252

[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C

[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices datasets utils methods base

loaded via a namespace (and not attached): [1] packrat_0.4.0 tools_3.1.1

Here is the install and load error:

install.packages("rmongodb") Installing package into ‘C:/Users/David/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) trying URL 'http://cran.revolutionanalytics.com/bin/windows/contrib/3.1/rmongodb_1.6.5.zip' Content type 'application/zip' length 1156163 bytes (1.1 Mb) opened URL downloaded 1.1 Mb package ‘rmongodb’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\David\AppData\Local\Temp\Rtmp6xkRHl\downloaded_packages

library(rmongodb) Error in get(".packageName", where) : lazy-load database 'P' is corrupt In addition: Warning message: In get(".packageName", where) : internal error -3 in R_decompress1 Error: package or namespace load failed for ‘rmongodb’ Lastly, the error on attempting to install from devtools:

library(devtools) install_github("rmongodb", "mongosoup") Downloading github repo mongosoup/rmongodb@master Installing rmongodb "C:/R/R-31~1.1/bin/x64/R" --vanilla CMD INSTALL \ "C:\Users\David\AppData\Local\Temp\Rtmp6xkRHl\devtools280c17ba7815\mongosoup-rmongodb-a40c94c" \ --library="C:/Users/David/Documents/R/win-library/3.1" --install-tests installing source package 'rmongodb' ... \ libs *\ arch - i386 gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/bson.c -o libmongo/bson.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/encoding.c -o libmongo/encoding.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/env.c -o libmongo/env.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/gridfs.c -o libmongo/gridfs.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/md5.c -o libmongo/md5.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/mongo.c -o libmongo/mongo.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/numbers.c -o libmongo/numbers.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api.c -o api.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_bson.c -o api_bson.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_convert.c -o api_convert.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_gridfs.c -o api_gridfs.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_mongo.c -o api_mongo.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c symbols.c -o symbols.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c utility.c -o utility.o C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_alloc.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_buf.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_encode.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_gen.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_lex.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_parser.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_tree.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_version.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bcon.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-clock.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-context.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-error.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-iter.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-json.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-keys.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-md5.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-memory.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-oid.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-reader.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-string.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-utf8.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-writer.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson.o: File format not recognized gcc -m32 -shared -s -static-libgcc -o rmongodb.dll tmp.def libbson/yajl/yajl.o libbson/yajl/yajl_alloc.o libbson/yajl/yajl_buf.o libbson/yajl/yajl_encode.o libbson/yajl/yajl_gen.o libbson/yajl/yajl_lex.o libbson/yajl/yajl_parser.o libbson/yajl/yajl_tree.o libbson/yajl/yajl_version.o libbson/bson/bcon.o libbson/bson/bson-clock.o libbson/bson/bson-context.o libbson/bson/bson-error.o libbson/bson/bson-iter.o libbson/bson/bson-json.o libbson/bson/bson-keys.o libbson/bson/bson-md5.o libbson/bson/bson-memory.o libbson/bson/bson-oid.o libbson/bson/bson-reader.o libbson/bson/bson-string.o libbson/bson/bson-utf8.o libbson/bson/bson-writer.o libbson/bson/bson.o libmongo/bson.o libmongo/encoding.o libmongo/env.o libmongo/gridfs.o libmongo/md5.o libmongo/mongo.o libmongo/numbers.o api.o api_bson.o api_convert.o api_gridfs.o api_mongo.o symbols.o utility.o -lws2_32 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/R/R-31~1.1/bin/i386 -lR libbson/yajl/yajl.o: file not recognized: File format not recognized collect2: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rmongodb'

removing 'C:/Users/David/Documents/R/win-library/3.1/rmongodb' restoring previous 'C:/Users/David/Documents/R/win-library/3.1/rmongodb' Error: Command failed (1) In addition: Warning message: Username parameter is deprecated. Please use mongosoup/rmongodb > Any help would be greatly appreciated.

Thank you, David Parker

schmidb commented 10 years ago

Hi, I found the problem and working on a solution. I plan to have a new CRAN submission next week. I will fix the bug in this version!

Best Markus

On 25.09.2014, at 23:40, David Parker notifications@github.com wrote:

Hello,

I'm trying to install rmongodb into my environment but for some reason it will not wok with my configuration. I've tried both installing the stable package from Cran and the devtools version.

The Cran package shows that it installs, but it will not load. It fails with an error. First my nvironment:

sessionInfo() R version 3.1.1 (2014-07-10) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252

[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C

[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices datasets utils methods base

loaded via a namespace (and not attached): [1] packrat_0.4.0 tools_3.1.1

Here is the install and load error:

install.packages("rmongodb") Installing package into ‘C:/Users/David/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) trying URL 'http://cran.revolutionanalytics.com/bin/windows/contrib/3.1/rmongodb_1.6.5.zip' Content type 'application/zip' length 1156163 bytes (1.1 Mb) opened URL downloaded 1.1 Mb package ‘rmongodb’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\David\AppData\Local\Temp\Rtmp6xkRHl\downloaded_packages

library(rmongodb) Error in get(".packageName", where) : lazy-load database 'P' is corrupt In addition: Warning message: In get(".packageName", where) : internal error -3 in R_decompress1 Error: package or namespace load failed for ‘rmongodb’ Lastly, the error on attempting to install from devtools:

library(devtools) install_github("rmongodb", "mongosoup") Downloading github repo mongosoup/rmongodb@master Installing rmongodb "C:/R/R-31~1.1/bin/x64/R" --vanilla CMD INSTALL \ "C:\Users\David\AppData\Local\Temp\Rtmp6xkRHl\devtools280c17ba7815\mongosoup-rmongodb-a40c94c" \ --library="C:/Users/David/Documents/R/win-library/3.1" --install-tests installing source package 'rmongodb' ... \ libs *\ arch - i386 gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/bson.c -o libmongo/bson.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/encoding.c -o libmongo/encoding.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/env.c -o libmongo/env.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/gridfs.c -o libmongo/gridfs.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/md5.c -o libmongo/md5.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/mongo.c -o libmongo/mongo.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/numbers.c -o libmongo/numbers.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api.c -o api.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_bson.c -o api_bson.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_convert.c -o api_convert.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_gridfs.c -o api_gridfs.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_mongo.c -o api_mongo.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c symbols.c -o symbols.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c utility.c -o utility.o C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_alloc.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_buf.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_encode.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_gen.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_lex.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_parser.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_tree.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_version.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bcon.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-clock.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-context.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-error.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-iter.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-json.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-keys.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-md5.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-memory.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-oid.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-reader.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-string.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-utf8.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-writer.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson.o: File format not recognized gcc -m32 -shared -s -static-libgcc -o rmongodb.dll tmp.def libbson/yajl/yajl.o libbson/yajl/yajl_alloc.o libbson/yajl/yajl_buf.o libbson/yajl/yajl_encode.o libbson/yajl/yajl_gen.o libbson/yajl/yajl_lex.o libbson/yajl/yajl_parser.o libbson/yajl/yajl_tree.o libbson/yajl/yajl_version.o libbson/bson/bcon.o libbson/bson/bson-clock.o libbson/bson/bson-context.o libbson/bson/bson-error.o libbson/bson/bson-iter.o libbson/bson/bson-json.o libbson/bson/bson-keys.o libbson/bson/bson-md5.o libbson/bson/bson-memory.o libbson/bson/bson-oid.o libbson/bson/bson-reader.o libbson/bson/bson-string.o libbson/bson/bson-utf8.o libbson/bson/bson-writer.o libbson/bson/bson.o libmongo/bson.o libmongo/encoding.o libmongo/env.o libmongo/gridfs.o libmongo/md5.o libmongo/mongo.o libmongo/numbers.o api.o api_bson.o api_convert.o api_gridfs.o api_mongo.o symbols.o utility.o -lws2_32 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/R/R-31~1.1/bin/i386 -lR libbson/yajl/yajl.o: file not recognized: File format not recognized collect2: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rmongodb'

removing 'C:/Users/David/Documents/R/win-library/3.1/rmongodb' restoring previous 'C:/Users/David/Documents/R/win-library/3.1/rmongodb' Error: Command failed (1) In addition: Warning message: Username parameter is deprecated. Please use mongosoup/rmongodb > Any help would be greatly appreciated.

Thank you, David Parker

— Reply to this email directly or view it on GitHub.

davparker commented 10 years ago

Oh cool

Thank you so much

On Tue, Sep 30, 2014 at 1:48 PM, Dr. rer. nat. Markus Schmidberger < notifications@github.com> wrote:

Hi, I found the problem and working on a solution. I plan to have a new CRAN submission next week. I will fix the bug in this version!

Best Markus

On 25.09.2014, at 23:40, David Parker notifications@github.com wrote:

Hello,

I'm trying to install rmongodb into my environment but for some reason it will not wok with my configuration. I've tried both installing the stable package from Cran and the devtools version.

The Cran package shows that it installs, but it will not load. It fails with an error. First my nvironment:

sessionInfo() R version 3.1.1 (2014-07-10) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252

[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C

[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices datasets utils methods base

loaded via a namespace (and not attached): [1] packrat_0.4.0 tools_3.1.1

Here is the install and load error:

install.packages("rmongodb") Installing package into ‘C:/Users/David/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) trying URL ' http://cran.revolutionanalytics.com/bin/windows/contrib/3.1/rmongodb_1.6.5.zip'

Content type 'application/zip' length 1156163 bytes (1.1 Mb) opened URL downloaded 1.1 Mb package ‘rmongodb’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\David\AppData\Local\Temp\Rtmp6xkRHl\downloaded_packages

library(rmongodb) Error in get(".packageName", where) : lazy-load database 'P' is corrupt In addition: Warning message: In get(".packageName", where) : internal error -3 in R_decompress1 Error: package or namespace load failed for ‘rmongodb’ Lastly, the error on attempting to install from devtools:

library(devtools) install_github("rmongodb", "mongosoup") Downloading github repo mongosoup/rmongodb@master Installing rmongodb "C:/R/R-31~1.1/bin/x64/R" --vanilla CMD INSTALL \

"C:\Users\David\AppData\Local\Temp\Rtmp6xkRHl\devtools280c17ba7815\mongosoup-rmongodb-a40c94c" \ --library="C:/Users/David/Documents/R/win-library/3.1" --install-tests installing source package 'rmongodb' ... \ libs *\ arch - i386 gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/bson.c -o libmongo/bson.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/encoding.c -o libmongo/encoding.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/env.c -o libmongo/env.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/gridfs.c -o libmongo/gridfs.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/md5.c -o libmongo/md5.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/mongo.c -o libmongo/mongo.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c libmongo/numbers.c -o libmongo/numbers.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api.c -o api.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_bson.c -o api_bson.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_convert.c -o api_convert.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_gridfs.c -o api_gridfs.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c api_mongo.c -o api_mongo.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c symbols.c -o symbols.o gcc -m32 -I"C:/R/R-31~1.1/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -DMONGO_STATIC_BUILD -DR_SAFETY_NET -O3 -Wall -std=gnu99 -mtune=core2 -c utility.c -o utility.o C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_alloc.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_buf.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_encode.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_gen.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_lex.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_parser.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_tree.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/yajl/yajl_version.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bcon.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-clock.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-context.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-error.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-iter.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-json.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-keys.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-md5.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-memory.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-oid.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-reader.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-string.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-utf8.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson-writer.o: File format not recognized C:\Rtools\gcc-4.6.3\bin\nm.exe: libbson/bson/bson.o: File format not recognized gcc -m32 -shared -s -static-libgcc -o rmongodb.dll tmp.def libbson/yajl/yajl.o libbson/yajl/yajl_alloc.o libbson/yajl/yajl_buf.o libbson/yajl/yajl_encode.o libbson/yajl/yajl_gen.o libbson/yajl/yajl_lex.o libbson/yajl/yajl_parser.o libbson/yajl/yajl_tree.o libbson/yajl/yajl_version.o libbson/bson/bcon.o libbson/bson/bson-clock.o libbson/bson/bson-context.o libbson/bson/bson-error.o libbson/bson/bson-iter.o libbson/bson/bson-json.o libbson/bson/bson-keys.o libbson/bson/bson-md5.o libbson/bson/bson-memory.o libbson/bson/bson-oid.o libbson/bson/bson-reader.o libbson/bson/bson-string.o libbson/bson/bson-utf8.o libbson/bson/bson-writer.o libbson/bson/bson.o libmongo/bson.o libmongo/encoding.o libmongo/env.o libmongo/gridfs.o libmongo/md5.o libmongo/mongo.o libmongo/numbers.o api.o api_bson.o api_convert.o api_gridfs.o api_mongo.o symbols.o utility.o -lws2_32 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/R/R-31~1.1/bin/i386 -lR libbson/yajl/yajl.o: file not recognized: File format not recognized collect2: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rmongodb'

removing 'C:/Users/David/Documents/R/win-library/3.1/rmongodb' restoring previous 'C:/Users/David/Documents/R/win-library/3.1/rmongodb' Error: Command failed (1) In addition: Warning message: Username parameter is deprecated. Please use mongosoup/rmongodb > Any help would be greatly appreciated.

Thank you, David Parker

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/mongosoup/rmongodb/issues/54#issuecomment-57362789.

davparker commented 10 years ago

It is working! Thank you.

dselivanov commented 10 years ago

And which kind of problem it was? How did you resolve it?

davparker commented 10 years ago

I didn't do anything. I thought the maintainers fixed it. I just reinstalled the package from cran and it worked, i.e. would load correctly. I didn't try compiling. The problem(s) are stated above.

The error I was getting on load: "library(rmongodb) Error in get(".packageName", where) : lazy-load database 'P' is corrupt"

I had tried many times to load the library installed from cran prior to this on Windows and it simply would not load successfully. Installing from source failed as well.

For whatever reason, it worked this last time. I installed from cran with install.packages("rmongodb") I didn't change anything with R other than maybe installing a package or two. I haven't tried installing from source again. I'm just happy I can use MongoDB with R.

I did work through the intro vignette, on a Windows machine. https://rpubs.com/davparker/32742

dselivanov commented 10 years ago

Reopen this issue for more testing. I'll try on my windows machine.