ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

could not find /opt/mongo/bin/mongod #14

Closed SOphistix closed 10 years ago

SOphistix commented 10 years ago

i followed the installation tutorial and when I typed the command 'sudo service mongodb start' i got an error saying: 'could not find /opt/mongo/bin/mongod'.

pi@raspberrypi /etc/init.d $ sudo sevice mongodb start could not find /opt/mongo/bin/mongod

I havy no idea what I did wrong

bkiss commented 10 years ago

My personal oppinion is that you missed the following:

git clone git://github.com/RickP/mongopi.git cd mongopi scons -------------------------------> sudo scons --prefix=/opt/mongo install scons -c

or:

Now add the PATH to the MongoDB binaries. Open the file /etc/environment and add the following:

PATH=$PATH:/opt/mongo/bin/ export PATH

I'we followed the info from here: http://ni-c.github.io/heimcontrol.js/get-started.html

and everything is OK.

Barni

ni-c commented 10 years ago

Hi,

There is another issue addressing the same problem: https://github.com/ni-c/heimcontrol.js/issues/25. Maybe that will help you.

Regards,

ni-c