remysaissy / mongodb-macosx-prefspane

MacOSX Preferences pane for MongoDB
GNU Lesser General Public License v3.0
225 stars 25 forks source link

Support for native install of MongoDB #15

Open phillpafford opened 11 years ago

phillpafford commented 11 years ago

Does this or can this work if I installed MongoDB natively and NOT with homebrew or ports? Installed like this: http://codewithbabalu.blogspot.com/2013/04/mongodb-installation-on-mac-os-x.html with some small tweaks

remysaissy commented 11 years ago

Hi Phil, as long as the mongod binary is in the default system path (not your .profile overrides since MacOSX has its own way to deal with paths when it comes to cocoa apps), it should correctly detect your installation and work. Let me know if it works!

phillpafford commented 11 years ago

When I echo $PATH I see MongoDB

echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mongodb/bin

Is this correct?

I've edited like this

sudo vi /etc/paths

I see this in console:

8/5/13 10:28:05.887 AM System Preferences[1853]: launch path not accessible

8/5/13 10:28:05.889 AM System Preferences[1853]: ( 0 CoreFoundation 0x00007fff89600b06 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff92f0b3f0 objc_exception_throw + 43 2 CoreFoundation 0x00007fff896008dc +[NSException raise:format:] + 204 3 Foundation 0x00007fff898ecc22 -[NSConcreteTask launchWithDictionary:] + 409 4 Foundation 0x00007fff898ec33d +[NSTask launchedTaskWithLaunchPath:arguments:] + 205 5 MongoDB 0x00000001151ff37f +[Helpers(Mongod) _startMongodProcess] + 111 6 MongoDB 0x00000001151ff121 +[Helpers startProcess] + 57 7 MongoDB 0x00000001151fea87 -[MongoDBPrefsPane onStartStopButtonPushed:] + 85 8 AppKit 0x00007fff8a1a0959 -[NSApplication sendAction:to:from:] + 342 9 AppKit 0x00007fff8a1a07b7 -[NSControl sendAction:to:] + 85 10 AppKit 0x00007fff8a1a06eb -[NSCell _sendActionFrom:] + 138 11 AppKit 0x00007fff8a19ebd3 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1855 12 AppKit 0x00007fff8a19e421 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 504 13 AppKit 0x00007fff8a19db9c -[NSControl mouseDown:] + 820 14 AppKit 0x00007fff8a19550e -[NSWindow sendEvent:] + 6853 15 System Preferences 0x000000010f7945b2 System Preferences + 30130 16 AppKit 0x00007fff8a191644 -[NSApplication sendEvent:] + 5761 17 System Preferences 0x000000010f7939a8 System Preferences + 27048 18 AppKit 0x00007fff8a0a721a -[NSApplication run] + 636 19 AppKit 0x00007fff8a04bbd6 NSApplicationMain + 869 20 libdyld.dylib 0x00007fff884e57e1 start + 0 21 ??? 0x0000000000000002 0x0 + 2 )

phillpafford commented 11 years ago

here is how I start Mongo from the Command Line:

sudo /usr/local/mongodb/bin/mongod --config /etc/mongod.conf --fork
remysaissy commented 11 years ago

Hi Phil, I've took some time to look at your issue in more details. Currently I cannot guarantee that it works with a non standard installation like the one described in your blog post since the code makes assumptions on the way homebrew install its packages. The best thing to do is to install homebrew http://brew.sh/ then mongodb.

The mongodb configuration is located at /usr/local/etc/mongod.conf with homebew. Regards,

phillpafford commented 11 years ago

I tried to move the config and still not working

sudo mv /etc/mongod.conf  /usr/local/etc/mongod.conf