Wassup !! .. get sup for yourself

This is one of my first posts on my blog, and I straightaway start with a technical blog on mail client called sup…

I had to switch to Gmail for obvious reasons like convenience and configured my office mail to my Gmail account. Meanwhile I ended up sending mails without even remembering to change the from-address to my official e-mail and came under a little suspicion by office management[i think so], and got a mail from my management saying, “whats-gmail-doing-in-here”[which had a connotation “scrap-it-use-office-mail-with-thunderbird”] But I liked the way Gmail organized mails, linking the mails with the subject lines, combining sent items with the received mails, “Labels” are an amazing feature.. and am not okay with having to ditch Gmail

One of my friends harsha (harshavardhana ranganath) came up with a suggestion to use the open source mail client .. ‘sup’. it is .. I, for my mis-fortune use CentOS, where not even a getting connected to ethernet automatically when the cable is plugged in, is easy….So i went through the feature list and decide to make a log of getting ‘sup’ on my CentOS machine.

Sup is basically an open source email client developed on the ruby platform. Some of the amazing features of sup is that it is light[command-line], it supports labeling, it maintains mails like Gmail linking mails on the basis of subject lines.

To install sup on an Ubuntu m/c [karmic is what i tried on]

>> sudo apt-get install sup

To install sup on a CentOS m/c you got to do some dancing and you have to be liking dancing for that matter :). We get ruby installed and then ruby gems follows.

>> sudo yum install ruby

>> sudo yum install ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc ruby-mysql

This doesn’t get you ruby gem though, and here is how you do that

>> sudo wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz

>> tar xzvf rubygems-1.3.1.tgz

>> cd rubygems-1.3.1

>> ruby ./setup.rb

Gem installs and there you go with

>> sudo gem install sup

Now here is some thing where every other ruby installation post ends and says life’s good. It’s here you start with the errors.The following error is what popped and there has been a lot of rambling on this on the ruby forums.

Building native extensions.  This could take a while…

ERROR:  Error installing sup:

ERROR: Failed to build gem native extension.

rake RUBYARCHDIR=/usr/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib RUBYLIBDIR=/usr/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib

sh: rake: command not found

And it takes quite a “real” while..

With having installed gem, get rake for yourself

>> sudo gem install rake

Now start with installing sup all over again with

>> sudo gem install sup

Sup installed, errors don’t stop here. but all that starts well ends well..Invoke sup to get this error for yourself..

>> sup

./sup/keymap.rb:129:in `[]’: odd number of arguments for Hash

(ArgumentError)

from ./sup/keymap.rb:129:in `run_hook’

from ../bin/sup:98

Now there is a patch to be applied. Patch available here

end

def self.run_hook global_keymap

–    modes = Hash[Mode.keymaps.map { |klass,keymap| [Mode.make_name(klass.name),klass] }]

+    modes = Hash[*Mode.keymaps.map { |klass,keymap| [Mode.make_name(klass.name),klass] }]

locals = {

:modes => modes,

:global_keymap => global_keymap,

diff –git a/lib/sup/keymap.rb b/lib/sup/keymap.rb

index 93060b8..8d54924 100644

— a/lib/sup/keymap.rb

+++ b/lib/sup/keymap.rb

@@ -126,7 +126,7 @@ EOS

All you have to do is add an additional “*” character on line number 126.Once this is done, sup would still require something important. Adding the “ncursesw” utility.

>> sudo gem install ncursesw

So wassup… just

>> sup

to invoke sup :)

Cheers

ghanashyam

Advertisements

One Comment

  1. Posted May 7, 2010 at 6:45 am | Permalink | Reply

    Good start, Macha.
    Look forward for more :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: