07 abril 2009

Apache CouchDB on Fedora 10 64bit

CouchDB - Relax

I've been trying to install Apache CouchDB on my Fedora 10 and came to a few issues regardling libraries and other requirements to build it. If you are interested on CouchDB and/or how to install it on a Fedora system, this post might be useful for you.

The README file of Apache CouchDB doesn't list the equivalent packages for Fedora, so I had to dig a lot to finally get it right. First thing is to install all of these packages:
  • js-devel
  • libcurl-devel
  • libcurl
  • erlang
  • erlang-esdl-devel
  • erlang-pgsql-devel
  • compat-erlang
  • libicu
  • libicu-devel
  • libmozjs-dev
  • make
  • gcc
  • automake
  • gcc-c++
  • kernel-headers
  • glibc-devel
Then download Apache CouchDB, extract the file, and type:
[~/apache-couchdb-0.9.0]$ ./configure --with-erlang=/usr/lib64/erlang/usr/include/
The parameter above is needed because the script cannot find on Fedora, where the headers of Erlang are located. After this step, you should be ready to compile with make, and then install it as root with make install. But if you are NOT like me that likes to do things really fast - compile, install, run - you can create an RPM package. For this, you have to install rpmdevtools too. Follow this guide of How to create an RPM package.

Done. You can now type:
$ sudo couchdb
Open your web browser and point it to this URL:

Now relax and have fun!

06 abril 2009

Leverage EIP with Apache Camel and Twitter: Part 3

Alright, so I've just submitted a JIRA issue to the Apache Camel project, donating the source code of this component. Anybody interested just follow this link and download the component itself or wait to see if they commit it into the SCM.

The component can publish, like I've showed you on my last post, and also consume some user's twitter page / the friend's timeline of someone or the public timeline. It's really cool.

If you wanna try it by yourself, just download the attachment, set up the maven project as a module of Apache Camel (yes, you will have to download the whole Apache Camel sourcecode tree) and then build it. Or... edit the pom.xml to fix some parent references. I hope you know something about Apache Maven too.

On my next post, I promise to show you how to use it and all the possible parameters. Or take a look at the source code and play with it.

Have fun. :-)


LinkedIn: www.linkedin.com/in/brunocborges
Twitter: www.twitter.com/brunoborges
Comprei e Não Vou
Rio de Janeiro, RJ Brasil
São Paulo, SP Brasil