Earlier today I cloned the layout of the web application on disk from the Ubuntu installation to my OpenSolaris box, and with some work I was able to get the system up and running on my OpenSolaris box. Just check it out:
trond@storm> svcs membase STATE STIME FMRI online 13:37:26 svc:/application/database/membase:membase
So let's assume you've got all of the dependencies you need to build membase installed on your OpenSolaris (I'll come up with this list later on and create an IPS package for you to install from my IPS server).
Due to MB-3227 we can't use the build method outlined in "Building on OSX from source" to build membase, but I've updated my build environment I blogged about a while ago so that it will build and install everything for you! So let's go ahead and build the stuff!
trond@storm> git clone git://github.com/trondn/tools.git Initialized empty Git repository in /tmp/tools/.git/ remote: Counting objects: 168, done. remote: Compressing objects: 100% (163/163), done. remote: Total 168 (delta 89), reused 0 (delta 0) Receiving objects: 100% (168/168), 157.56 KiB | 231 KiB/s, done. Resolving deltas: 100% (89/89), done. trond@storm> cd tools/membase/smf/membase trond@storm> ./setup -u -s -z scratch (scratch is the name of my zfs pool) trond@storm> cd ../.. trond@storm> chown -R trond:staff /opt/membase trond@storm> ./setup.sh -d /opt/membase/dev membase Download commit hook - Ok. Checking out libmemcached (Bazaar) - Ok. Checking out bucket_engine (git) - Ok. Checking out ep-engine (git) - Ok. Checking out libconflate (git) - Ok. Checking out libvbucket (git) - Ok. Checking out memcached (git) - Ok. Checking out moxi (git) - Ok. Checking out vbucketmigrator (git) - Ok. Checking out membase-cli (git) - Ok. Checking out ns_server (git) - Ok. Checking out memcachetest (git) - Ok. Checking out mc-hammer (git) - Ok. Checking out libmembase (git) - Ok. Configure build for SunOS trond@storm> cd membase trond@storm> gmake install
Due to MB-2926 we need to change the file layout to move the files so that management process in membase can locate the tools. In theory we shouldn't need to create links for the libraries as well (because the runtime path of the binary should pick up the correct one), but unfortunately ns_server use the absolute path for the library.
trond@storm> cd /opt/membase/bin/dev trond@storm> rm memcached vbucketmigrator moxi trond@storm> mkdir memcached vbucketmigrator moxi bucket_engine ep_engine trond@storm> cd memcached trond@storm> ln -s ../amd64/memcached trond@storm> ln -s ../../lib/amd64/default_engine.so trond@storm> ln -s ../../lib/amd64/stdin_term_handler.so trond@storm> cd ../vbucketmigrator trond@storm> ln -s ../amd64/vbucketmigrator trond@storm> cd ../moxi trond@storm> ln -s ../amd64/moxi trond@storm> cd ../bucket_engine trond@storm> ln -s ../../lib/amd64/bucket_engine.so trond@storm> cd ../ep_engine trond@storm> ln -s ../../lib/amd64/ep.so trond@storm> chown -R membase:membase /opt/membase
So let's go ahead and start the service by running:
trond@storm> svcadm enable membase
And navigate your browser to http://localhost:8091/ and start configuring your server. I was able to let my OpenSolaris server join my Ubuntu cluster.