Saturday, December 15, 2012

Install Emacs 24.1 on Ubuntu 12.04

From
http://royontechnology.blogspot.hk/2012/06/installing-emacs-241.html

Though we can directly install from the Ubuntu Software Center, but it is more flexible to build it.
Installing Emacs 24.1
I was excited to see the announcement that Emacs 24.1 has been released.  I wanted to install and try. There were a few glitches that I faced during the installation. I thought it might be useful for someone who might be hitting the same blocks.

Once I downloaded the source code and verified the signature, I unzipped the Emacs 24.1 source code. The first "configure" run gave the following error:
configure: error: You seem to be running X, but no X development libraries
were found.  You should install the relevant development files for X
and for the toolkit you want, such as Gtk+, Lesstif or Motif.  Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
  --without-x
to configure.
To address this error I had to do the following:
sudo apt-get install libgtk2.0-dev libtiff4-dev libgif-dev libjpeg62-dev libpng12-dev libxpm-dev
Then when I attempted to run configure again, I got the following error:
configure: error: The required function `tputs' was not found in any library.
These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.
For example, a libncurses-dev(el) or similar package.
To resolve this error I had to do the following:
sudo apt-get install libncurses-dev
Thats it. The installation was smooth. Here is the summary of commands you need to run:
sudo apt-get install libgtk2.0-dev libtiff4-dev libgif-dev libjpeg62-dev libpng12-dev libxpm-dev libncurses-dev
#Note, libjpeg-dev, libpng12-dev's version may be different.
# You can skip this step if you don't want to verify the signature.
gpg --verify emacs-24.1.tar.bz2.sig emacs-24.1.tar.bz2
tar xvfj emacs-24.1.tar.bz2
cd emacs-24.1
./configure
make
sudo make install
Posted by Roy at 4:25:00 PM
Labels: Emacs

Install scipy for Ubuntu 12.04


Download from git
https://github.com/scipy/scipy

1. Install fortran compiler. e.g. gfortran.
2. Install blas, lapack (search libblas, liblapack on the Ubuntu Software Center)

3. $ python setup.py install --prefix=$MYDIR ($MYDIR can be /usr/local)