On 18. Dezember 2013 at 11:09:56, Sjoerd de Jong ([email protected]) wrote: > > Hello, > > For some time I am struggling with getting the BrowserId (Persona) > plugin running on my machine (OSX Mavericks). > > Previously I compiled https://github.com/iriscouch/browserid_couchdb > using `rake plugin="git://github.com/iriscouch/browserid_couchdb > origin/master”` on build-couchdb. For some reason this fails > for 1.5 for me, and instead of diving into the error I’d like to > just use the download for OSX from the couchdb.apache.org main > site. > > In Jason Smiths talk on Plugins (http://www.youtube.com/watch?v=saNjXpE1h1Y) > he showed installing a plugin is as easy as copying a .beam file > into the CouchDB application. Is this also true for the downloadable > version from the main website? If so, is it possible to install > the BrowserId plugin this way? > > If not, what is the recommended way to get CouchDB running with > the BrowserId plugin installed? > > Thanks for the help! > > Sjoerd
Hey Sjoerd, I’d love for Jan or Jason to chip in here, as it looks like we need some extra bits within the release, and I didn’t quite get this working either. Here’s what I tried, all very hacky: ```shell # download & unpack CouchDB 1.5.0 first # hack! cd ~/Applications/Apache\ CouchDB*.app/Contents/Resources/couchdbx-core/ # set up path helpers export COUCH_PATH=`pwd -P` export PATH=$COUCH_PATH/lib/erlang/erts-5.10.2/bin:$COUCH_PATH/bin:$PATH # install erlang to update erlexec script with current location ./lib/erlang/Install -minimal `pwd -P`/lib/erlang # `erl +V` should return Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 5.10.2 # we need erl_interface headers from a working R16B01 install as its missing cp -R /some/path/to/erl_interface-3.7.13 $COUCH_PATH/lib/erlang/lib/ # get browserid_couchdb with my modified rebar.config cd $COUCH_PATH/lib/couchdb/erlang/lib/ git clone git://github.com/jsonified/browserid_couchdb.git cd browserid_couchdb ./rebar compile # link in the browserid.ini so couchdb finds it ln -s $COUCH_PATH/lib/couchdb/erlang/lib/browserid_couchdb/etc/couchdb/default.d/browserid.ini $COUCH_PATH/etc/couchdb/default.d/browserid.ini # have a go, I used the terminal so I can see what’s going on cd $COUCH_PATH ./bin/couchdb -i 1> application:start(browserid_couchdb). # follow instructions in https://github.com/iriscouch/browserid_couchdb#so-simple I pushed a new db and doc containing as attachment the .html snippet from Jason’s plugin, the logon worked fine but the account isn’t created. I’m missing something about how the extension should be activated too. A+ dch@
