Profile

Cover photo
Trond Norbye
Works at Couchbase
Lives in Trondheim
229 followers|145,666 views
AboutPostsPhotosYouTubeReviews

Stream

Trond Norbye

Shared publicly  - 
 
Yay! I've spent a fair amount of time trying to move our build system away from gnu autotools over to CMake, and earlier today I built the entire stack on my windows box without cygwin. It's been a lot of work getting here, since we had a ton of code using C99, assumed a "unix" environment, gcc hacks, gnu make hacks etc. 

I can't wait for all of it to be merged :-) And this time "Die GNU Autotools" is in English, not German ;-) 
5
Matt Ingenthron's profile photoDustin Sallings's profile photoTrond Norbye's profile photoSergey Avseyev's profile photo
6 comments
 
CMake is a good building tool if you need a fast environment to be set up and obviously it's perfect to share project between different os . I like it because I can develop on xcode and open the project on kdevelop(Linux) and I have all project setup very well for debug and coded. In definitely it's a very good tool.
Add a comment...

Trond Norbye

Shared publicly  - 
 
Hehe. Kom til å tenke på episoden med 'check your engine' kampen til Penny i Big Bang Theory når det kom opp varsel om feil på bremsene mine.. De virket jo som bare det, så feilen er vel i sensorene ;)
 ·  Translate
1
Add a comment...

Trond Norbye

Shared publicly  - 
2
1
Артур Хуснутдинов's profile photoJason Hudgins's profile photo
 
My wife asked me to turn this down, so that usually means it's pretty good stuff.
Add a comment...

Trond Norbye

Shared publicly  - 
 
I've had a few people asking me how to build the Couchbase server on Ubuntu lately, so I figured I should write down the steps I used to set up one of my build slaves (skipping all of the automation stuff).

I'm using SmartOS for my virtualization, so the first thing I did was to import an image:

root@smartos~> imgadm import d2ba0f30-bbe8-11e2-a9a2-6bc116856d85

With the image in place I created the manifest for my new vm in a file I named ubuntu.json with the following content:

{
  "alias": "ubuntu",
  "brand": "kvm",
  "resolvers": [
    "10.0.0.1",
    "8.8.4.4"
  ],
  "default-gateway": "10.0.0.1",
  "hostname":"ubuntu",
  "ram": "2048",
  "vcpus": "2",
  "nics": [
    {
      "nic_tag": "admin",
      "ip": "10.0.0.202",
      "netmask": "255.255.255.0",
      "gateway": "10.0.0.1",
      "model": "virtio",
      "primary": true
    }
  ],
  "disks": [
    {
      "image_uuid": "d2ba0f30-bbe8-11e2-a9a2-6bc116856d85",
      "boot": true,
      "model": "virtio",
      "image_size": 16384
    }
  ],
"customer_metadata": {
    "root_authorized_keys":
"ssh-rsa <my-personal-public-key>"
  }
}

and created the vm with:

root@smartos~> vmadm create -f ubuntu.json

You should now be able to ssh into the machine and run aptitude and install all of the updates ;-)

With that in place I installed as much as possible of precompiled software with:

root@ubuntu~> apt-get install -y git automake autoconf libtool clang clang++ \
                   libevent-dev libicu-dev libsnappy-dev \
                   libunwind7-dev erlang libv8-dev make ccache

I need a newer version of cmake and google perftools so I compiled them from source with:

wget http://www.cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
tar xfz cmake-2.8.12.1.tar.gz
cd cmake-2.8.12.1
./bootstrap && make && make install
cd ..
wget https://gperftools.googlecode.com/files/gperftools-2.1.tar.gz
tar xfz gperftools-2.1.tar.gz
cd gperftools-2.1
./configure && make && make install

We're using google repo to manage our source code, so I copied one from my laptop to get the latest version (it'll download a newer one if you install an older one and tell you to upgrade ;-))

scp bin/repo root@10.0.0.22:/usr/local/bin/repo

Then I created my user with:

groupadd jenkins
useradd -g jenkins -m -s /bin/bash -c "jenkins automated builds" jenkins

Logging in as the user I did:

repo init -u git://github.com/couchbase/manifest -m branch-master.xml
repo sync
make

And thats it :-)
1
Tor Norbye's profile photoDustin Sallings's profile photoTrond Norbye's profile photo
5 comments
 
Seems like I had a copy'n'paste bug in that description.. I missed the package libcurl4-openssl-dev ;-) 

For fedora I used the dataset e42f8c84-bbea-11e2-b920-078fab2aab1f and the package list is:

yum install -y git automake autoconf libtool clang libevent-devel \
               libicu-devel snappy-devel libunwind-devel v8-devel \
               erlang make ccache libcurl-devel zlib-devel

And I created ~/.couchbase/build/Makefile.extra containing:
couchdb_EXTRA_OPTIONS = --with-erlang=/usr/lib64/erlang/usr/include

Guess I should take a look at coreos and docker next..
Add a comment...

Trond Norbye

Shared publicly  - 
 
З Калядамі, Joyeux Noël, Hyvää Joulua, Giáng sinh vui vẻ and happy holidays to all my friends around the world!
 ·  Translate
2
1
Matt Ingenthron's profile photoSergey Avseyev's profile photo
 
Thanks!
Add a comment...
In his circles
178 people
Have him in circles
229 people
Vianna Cramer's profile photo
Arne Nygjelten's profile photo

Trond Norbye

Shared publicly  - 
 
Ventetiden er over!!!!!!
 ·  Translate
2
1
Артур Хуснутдинов's profile photoMatt Ingenthron's profile photoTrond Norbye's profile photo
2 comments
 
Don't know... Luckily I may listen to the recording while waiting..
Add a comment...

Trond Norbye

Shared publicly  - 
 
Great record! Who would have thought I would be listening to your records when we played guitar in your basement ;-) You on the Peavey and I on my Kawai (which I still have in my attic...) Fun times :D
1
Add a comment...

Trond Norbye

Shared publicly  - 
 
Kom over denne forleden.. var litt kult ;-)
 ·  Translate
1
Add a comment...

Trond Norbye

Shared publicly  - 
 
Happy new years!!!
5
Matt Ingenthron's profile photo
 
Happy new years!
Add a comment...

Trond Norbye

Shared publicly  - 
 
Rebuilding my library :-)
When I started libcouchbase (it was named libmembase back then) a couple a year ago it was because I needed a library that would allow me to test the changes I was doing to the server. At some point it was promoted from a too...
1
1
Sergey Avseyev's profile photo
Add a comment...
People
In his circles
178 people
Have him in circles
229 people
Vianna Cramer's profile photo
Arne Nygjelten's profile photo
Work
Occupation
Software Engineer
Employment
  • Couchbase
    Senior Developer, 2010 - present
  • Thales Communications
    Software Engineer, 1997 - 2006
  • Sun Microsystems
    Software Engineer, 2006 - 2010
Basic Information
Gender
Male
Relationship
Single
Story
Introduction
I'm a software engineer living in Trondheim.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Trondheim
Previously
Melhus - Bergen - Tynset - Gjøvik - Melhus
Links
Other profiles
Contributor to
The perfect place to start the day :)
Food: ExcellentDecor: Very goodService: Very good
Public - 11 months ago
reviewed 11 months ago
1 review
Map
Map
Map