Wednesday, July 25, 2012

PPT in shell

Download tpp from here.

tar zxvf tpp-1.3.1.tar.gz

We have to install ruby firstly.

sudo apt-get install ruby ruby-dev

and we also need ncurses-ruby.

tar jxf ncurses-ruby-1.3.0.tar.bz2
cd ncurses-ruby-1.3.0
ruby extconf.rb

If we get error like this,

checking for unistd.h... yes
checking for locale.h... yes
checking for ncurses.h... no
checking for ncurses/curses.h... no
checking for curses.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
extconf.rb:38: ncurses header file not found (RuntimeError)

then,

sudo apt-get libncurses5-dev

then run
make
sudo make install

then
cd tpp-1.3.1
sudo make install

now tpp are completely installed.
try it.

tpp example.tpp


if you want to have huge text printed

sudo apt-get install figlet


example:

No comments:

Post a Comment