Sorry, I forgot to include the file.
Here it is.
# first install dependencies
sudo pkgin in gcc47
sudo pkgin in gmake
sudo pkgin in git
sudo pkgin in mercurial
hg clone -u release https://code.google.com/p/go
cd go/src/
./all.bash
vi .profile
# add the following definitions to .profile
GOOS=solaris
GOROOT=/home/admin/go
GOARCH=amd64
GOBIN=${GOROOT}/bin
PATH=${GOBIN}:${PATH}
git clone https://camlistore.googlesource.com/camlistore
cd camlistore/
go run make.go
# initial run to generate config file
bin/camlistored
# stop with ctrl-c
# adapt config file
vi /home/admin/.config/camlistore/server-config.json
# set authentication user password, blob path and index path
   "auth": "userpass:rudi:4u2cim4u",
   "blobPath": "/var/camlistore/blobs",
   "kvIndexFile": "/var/camlistore/camli-index.kvdb",
# run camlistore again
bin/camlistored
# now open your browser on http://my-hostname:3179
# log in with credentials supplied in config file

-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Begin forwarded message:

From: Rudi <[email protected]>
Subject: Installing Camlistore on SmartOS
Date: 29 augustus 2014 21:49:10 CEST

Hi Everyone,

I've always wanted to run Camlistore on SmartOS, but until recently it wasn't possible because Camlistore is written in Go and there was no Go compiler for SmartOS. Now GCC includes a Go compiler so I could compile the Go toolchain on SmartOS. Then in theory I could also compile Camlistore. I ran into an issue with one of the libraries which is supposed to have a module for every OS, but lacked a module for 'solaris'. Fortunately I found one of the maintainers of that library (Gulácsi Tamás) to adapt it to include a 'solaris' module. So thanks to Gulácsi now I can build and run Camlistore on SmartOS.
Attached you find a recipe for building Go and Camlistore on a bare SmartOS machine.

Rudi

smartos-discuss | Archives | Modify Your Subscription

Reply via email to