So I'm now using OpenSolaris fulltime on my laptop (WoHoo!). I came across the fact that it doesn't have emacs there. So I did the obvious thing:

pkg search -r emacs
. Unfortunately this showed that there isn't currently an emacs package in OpenSolaris. No worries, I have a compiler and will travel. So I went and downloaded the source.

I discovered there were a few steps that I needed to follow in order to be able to build this properly:


  1. pfexec pkg install SUNWgnome-common-devel

  2. pfexec pkg install SUNWxorg-headers

Now that is done we can get to work:


  1. tar xf emacs-22.3.tar.gz

  2. cd emacs-22.3

  3. ./configure --with-gtk

  4. make -j 10

  5. pfexec make install

So now that is done and we have a working emacs installed. There was one last thing I noticed. The Meta key is not mapped to Alt, so I had to add

keycode 64 = Meta_L
to my .xmodmap and also the following to my .bashrc:

if [ -f ${HOME}/.xmodmap ]
then
xmodmap ${HOME}/.xmodmap
fi

all is now right with the world.

Comments:

Nice work! It's always good to be able to bootstrap
emacs onto a system that doesn't have it.

Emacs integrated into Nevada build 100 (SFW gate), and will
be part of the 2008.11 OpenSolaris release, so there will
soon be good news for those who don't want to roll their own
as well.

Posted by Ali Bahrami on October 08, 2008 at 12:49 PM PDT #

Post a Comment:
Comments are closed for this entry.

This blog copyright 2009 by Peter Buckingham