Saturday, October 31, 2009

running erlang emulator shell as root on mac

I wanted to run couchdb under emulator but the problem with erl emulator is, it is not inheriting or obeying sudo command. I didn't plan well before installing couchdb so that it could run as logged in user. So I tried something like below to make it work on my macbook OS X (10.5.8)
1. sudo bash
2. set ERL_LIBS
3. export it
4. erl
Actual steps are
1. sudo bash (OR) sudo su
2. ERL_LIBS=/usr/local/lib/couchdb/erlang/lib --- path where couchdb is installed
3. export ERL_LIBS
4. echo $ERL_LIBS --- to verify the var is set properly
5. erl It worked finally...

1 comment:

  1. Anonymous2:04 PM

    Seeing these kind of posts reminds me of just how technology truly is ubiquitous in this day and age, and I am fairly confident when I say that we have passed the point of no return in our relationship with technology.

    I don't mean this in a bad way, of course! Societal concerns aside... I just hope that as technology further innovates, the possibility of uploading our brains onto a digital medium becomes a true reality. It's one of the things I really wish I could experience in my lifetime.

    (Posted on Nintendo DS running [url=]R4i SDHC[/url] DS NePof)


Thanks for reading and welcome for commenting...