remysaissy / mongodb-macosx-prefspane

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

Doesnt work with MacPorts #7

Open teonimesic opened 12 years ago

teonimesic commented 12 years ago

Clicking the start button does nothing when mongodb is installed via macports, and the readme doesnt says anything on how to configure the paths to make this work.

remysaissy commented 12 years ago

macports installs mongod in /opt/local/bin. The binary is detected. However, the assumption in the code to replace /opt/local/bin by /opt/local/etc because the mongod.conf file is expected to be there is not true with macports. In spite of it, the user has not the right to write a file in /opt/local/etc. and the LaunchDaemon in in /opt/local/etc/LaunchDaemons/org.macports.mongodb and contains all the configuration in its arguments.

--> The mongod.conf file should be created in /opt/local/etc/

----> This should be done by refactoring the core code to share it with cassandra-macosx-prefspane (to prepare the release of others prefspane)

lhilden commented 11 years ago

+1. At the very least, update the README.md to indicate that this preference pane doesn't work with the Macports version of MongoDB

remysaissy commented 11 years ago

you are right. I have updated the README.md.