Notice: Undefined index: HTTP_ACCEPT in /var/local/cache/midgard/midgard/31-100-217-0.php(66) : eval()'d code on line 11

Blog: category "erlang"

Finally got them working

Posted on 2008-01-23 21:35:49 EET to .

Today I got the complete stack working on my N800 device!

  • Erlang
  • ICU
  • CouchDB
  • Ajatus

They are far from perfect yet but I'm sure it'll get better little by little.
Currently I'm

  • preparing the packages for releasing them through maemo extras repository.
  • trying to compile the latest erlang R12.b.0 (now the package is R11.b.1)
  • adding dependencies to couchdb package
  • packaging Ajatus also

After first releases there are some possible tweaking to do... I still get some Segfaults at some points while using couchdb.

If someone would like to give this a try the hard way:
All the current packages can be found here http://protoblogr.net/downloads/erlang/

  1. Download and install erlang-base_11.b.1-1_armel.deb to the device (after download: dpkg -i  erlang-base_11.b.1-1_armel.deb)
  2. Download and install libicu36_3.6-2_armel.deb
  3. Download and install couchdb_0.7.2-1_armel.deb
  4. Get the latest release of Ajatus and follow it's installation instructions

There might be some dependencies which have to be manually installed. (Will be fixed later)
Currently the CouchDb installs itself to /usr and the databases are located at /usr/var/lib/couchdb.
I changed the DB path in /usr/etc/couchdb/couch.ini to point to my other memorycard (/media/mmc2/couchdb_db) which had some more space left.

Hopefully I get to release these as soon as possible for easier use.

Great thanks to the folks at #couchdb channel (nslater, jan,...)
And to Piotras

First set of Erlang packages for Maemo

Posted on 2008-01-23 08:48:56 EET to .

Last night I finally was able to do successful packages and installation on my N800.

First set (N800/N810) can be downloaded here: http://protoblogr.net/downloads/erlang/

I'll upload rest of the deps as I get to the office. Also I'm currently buildin ICU which is also needed by CouchDB. Hopefully today I have working native Ajatus on my N800. 

UPDATE: 

Just uploaded rest of the package files. Also there is packages for ICU.
I'm currently trying to get CouchDB to work, but still have some minor problems with it.

For basic usage of erlang one could only install the erlang-base and erlang-nox packages...

Packaging Erlang for maemo

Posted on 2008-01-21 01:16:36 EET to .

I was able to package Erlang for X86 target but collided with some segfaults on Armel. It seems the problem is the qemu and after a while trying to patch it I gave up for tonight. Have to continue tomorrow night.

Anyhow we aren't that far of getting CouchDB and Ajatus to work natively on Nokia n800/n810...

 

I might have fallen in love... with Erlang

Posted on 2008-01-15 00:24:55 EET to .

Even thought I'm just starting to learn it I can't stop wondering why I haven't got my hands dirty with it earlier.

Main reason I got excited about Erlang was the awesome CouchDB project. After I started to write Ajatus on top of that, we realized that we wan't to go further with features and for that I need better knowledgement of Erlang itself.

Few weeks ago I bought the awesome book from Joe Armstrong "Programming Erlang" which has been a great help and resource on the go.
And it didn't take long before I had first functional (minimalistic) version of the project I wanted to do with Erlang in the first place.

I'll definately be posting more about Erlang as I go, but for finishing touch there is this little piece "Erlang: the movie " floating around the net.

"Who cares if Erlang starts slowly - it was designed to start once and never stop - we have systems that have run for 5 years - a two seconds start-up time amortized over 5 years is not *too* bad" -Joe Armstrong