gerald-lindsly / mongo-matlab-driver

Matlab driver for MongoDB
http://cnub.org/MongoMatlabDriver.ashx
Apache License 2.0
33 stars 13 forks source link

Matlab 2014a OSX help? #9

Open pavizonis opened 10 years ago

pavizonis commented 10 years ago

I'm trying to get the mongo-matlab-driver to work on my mac and am having issues. I followed the download/install instructions, but when I run MongoTest in Matlab I get the message below. I apologize for my lack of expertise, but could you point me in the right direction? Should I have something else loaded first? My end goal is to be able to communicate with an external Mongo database...


Error using loadlibrary (line 422) Failed to preprocess the input file. Output from preprocessor is:/Users/pavizonis/mongo-matlab-driver/MongoMatlabDriver.h:38:10: fatal error: 'bson.h' file not found

include "bson.h"

     ^

1 error generated.

Error in MongoStart (line 17) [notfound, warnings] = loadlibrary('MongoMatlabDriver', 'MongoMatlabDriver.h');

Error in MongoTest (line 15) MongoStart; % load the dll

gerald-lindsly commented 10 years ago

The DLLs are for Windoze. you'll have to build from source on the mac and load the appropriate binary instead of the dll. I can't help you on the mac. sorry.

On Sat, Oct 25, 2014 at 8:02 AM, pavizonis notifications@github.com wrote:

I'm trying to get the mongo-matlab-driver to work on my mac and am having issues. I followed the download/install instructions, but when I run MongoTest in Matlab I get the message below. I apologize for my lack of expertise, but could you point me in the right direction? Should I have something else loaded first? My end goal is to be able to communicate with

an external Mongo database...

Error using loadlibrary (line 422) Failed to preprocess the input file. Output from preprocessor is:/Users/pavizonis/mongo-matlab-driver/MongoMatlabDriver.h:38:10: fatal error: 'bson.h' file not found

include "bson.h"

^ 1 error generated.

Error in MongoStart (line 17) [notfound, warnings] = loadlibrary('MongoMatlabDriver', 'MongoMatlabDriver.h');

Error in MongoTest (line 15) MongoStart; % load the dll

— Reply to this email directly or view it on GitHub https://github.com/gerald-lindsly/mongo-matlab-driver/issues/9.

pavizonis commented 10 years ago

Gerald - thanks for the quick feedback.

I'll see if I can sort it out...

On Sat, Oct 25, 2014 at 8:30 AM, Gerald Lindsly notifications@github.com wrote:

The DLLs are for Windoze. you'll have to build from source on the mac and load the appropriate binary instead of the dll. I can't help you on the mac. sorry.

On Sat, Oct 25, 2014 at 8:02 AM, pavizonis notifications@github.com wrote:

I'm trying to get the mongo-matlab-driver to work on my mac and am having issues. I followed the download/install instructions, but when I run MongoTest in Matlab I get the message below. I apologize for my lack of expertise, but could you point me in the right direction? Should I have something else loaded first? My end goal is to be able to communicate with

an external Mongo database...

Error using loadlibrary (line 422) Failed to preprocess the input file. Output from preprocessor is:/Users/pavizonis/mongo-matlab-driver/MongoMatlabDriver.h:38:10: fatal error: 'bson.h' file not found

include "bson.h"

^ 1 error generated.

Error in MongoStart (line 17) [notfound, warnings] = loadlibrary('MongoMatlabDriver', 'MongoMatlabDriver.h');

Error in MongoTest (line 15) MongoStart; % load the dll

— Reply to this email directly or view it on GitHub https://github.com/gerald-lindsly/mongo-matlab-driver/issues/9.

— Reply to this email directly or view it on GitHub https://github.com/gerald-lindsly/mongo-matlab-driver/issues/9#issuecomment-60481264 .

pavizonis commented 10 years ago

Gerald,

I've switched to a PC (VM) with MatLab. I've downloaded the archive to a local folder, extracted the source-c folder, and renamed the dll, added the path to the folder in Matlab, even changed the workng directory to the drive directory, but am getting error messages from Matlab when I run MongoTest or MongoStart. Am I missing something? Do I need to install something else by chance?

Sorry for bothering you... I'm just not very adept at this type of thing and need to get Mongo access through MatLab.

EDU>> MongoTest Index exceeds matrix dimensions.

Error in loadlibrary>getLoadlibraryCompilerConfiguration (line 497) compilerConfiguration=compilerConfiguration(1); %unix machines return c and cpp compilers here

Error in loadlibrary (line 253)

[thunk_build_fn,preprocess_command]=getLoadlibraryCompilerConfiguration(ccinclude,header,headername,compilerConfiguration);

Error in MongoStart (line 17) [notfound, warnings] = loadlibrary('MongoMatlabDriver', 'MongoMatlabDriver.h');

Error in MongoTest (line 15) MongoStart; % load the dll

Thanks for any help you can provide...

Pepi

On Sat, Oct 25, 2014 at 8:30 AM, Gerald Lindsly notifications@github.com wrote:

The DLLs are for Windoze. you'll have to build from source on the mac and load the appropriate binary instead of the dll. I can't help you on the mac. sorry.

On Sat, Oct 25, 2014 at 8:02 AM, pavizonis notifications@github.com wrote:

I'm trying to get the mongo-matlab-driver to work on my mac and am having issues. I followed the download/install instructions, but when I run MongoTest in Matlab I get the message below. I apologize for my lack of expertise, but could you point me in the right direction? Should I have something else loaded first? My end goal is to be able to communicate with

an external Mongo database...

Error using loadlibrary (line 422) Failed to preprocess the input file. Output from preprocessor is:/Users/pavizonis/mongo-matlab-driver/MongoMatlabDriver.h:38:10: fatal error: 'bson.h' file not found

include "bson.h"

^ 1 error generated.

Error in MongoStart (line 17) [notfound, warnings] = loadlibrary('MongoMatlabDriver', 'MongoMatlabDriver.h');

Error in MongoTest (line 15) MongoStart; % load the dll

— Reply to this email directly or view it on GitHub https://github.com/gerald-lindsly/mongo-matlab-driver/issues/9.

— Reply to this email directly or view it on GitHub https://github.com/gerald-lindsly/mongo-matlab-driver/issues/9#issuecomment-60481264 .

gerald-lindsly commented 10 years ago

I'm as lost as you. This is an error from the guts of the loadLibrary function. Maybe it has something to do with VM, but I am not sure. I don't think you are missing something, nor is there anything else to install.

pavizonis commented 10 years ago

OK. Thanks, and I appreciate your help.

Pepi

On Mon, Oct 27, 2014 at 4:28 AM, Gerald Lindsly notifications@github.com wrote:

I'm as lost as you. This is an error from the guts of the loadLibrary function. Maybe it has something to do with VM, but I am not sure. I don't think you are missing something, nor is there anything else to install.

— Reply to this email directly or view it on GitHub https://github.com/gerald-lindsly/mongo-matlab-driver/issues/9#issuecomment-60561584 .