How to compile and install the latest version of lnav (log file navigator) from Github in Ubuntu 14.04 LTS 64-bit

Posted: 2015/10/26 in Ubuntu
Tags: , , , , , , , ,
# install prerequisites for lnav compilation process:
cd
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install build-essential checkinstall
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install unp git g++ libgpm-dev
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes purge lnav 
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes build-dep lnav
# install newest version of lnav
cd
git clone https://github.com/tstack/lnav.git
cd lnav
sudo ./autogen.sh
sudo ./configure
sudo make
sudo checkinstall
# while running checkinstall, make sure to manually set Version to 0.7.3 (latest version)
apt-cache show lnav
# Terminal output should be similar to this:
#Package: lnav
#Status: install ok installed
#Priority: extra
#Section: checkinstall
#Installed-Size: 3428
#Maintainer: root
#Architecture: amd64
#Version: 0.7.3-1
#Provides: lnav
#Description: Package created with checkinstall 1.6.2
#Description-md5: 556b8d22567101c7733f37ce6557412e
lnav -V
# Terminal output should be similar to this:
# lnav 0.7.3-150-g7a476ca
Advertisements

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