Installing gawk 4.0 on ubuntu 12.04
How do I install gawk 4.0.1 or later on ubuntu 12.04?
Your suggestions would be appreciated!!
2 Answers
First of all, note the information in the following question:
This is an approach to build the Quantal (12.10) 4.0.1 version of gawk on 12.04 as a package. It applies to almost all packages you want to backport from a newer Ubuntu release to the one you're using. Most of the times it just builds cleanly. This one does.
Install some basic package build tools:
sudo apt-get install devscripts build-essential sudo apt-get build-dep gawkInstall the key of the developer (example key!):
gpg --keyserver keyserver.ubuntu.com --recv-key B6897E7BThis key identifier should be replaced by the error output of the
dgetcommand below.Make the devscripts use your keyring too, as per Added key, but dget still shows “gpg: Can't check signature: public key not found":
echo 'DSCVERIFY_KEYRINGS="/etc/apt/trusted.gpg:~/.gnupg/pubring.gpg"' >> ~/.devscriptsDownload the source package (
.dscfile link fromgawkpackage page in the sidebar):dgetcdinto it:cd gawk-4.0.1+dfsg/First attempt to build (fails possibly):
debuild -uc -usif fails, relevant output with
dpkg-checkbuilddeps: Unmet build dependencies(below is an example!):Unmet build dependencies: bison libreadline-dev libsigsegv-devInstall the additional build dependencies you still need at this point. Example:
sudo apt-get install bison libreadline-dev libsigsegv-devRetry building (should build fine now!):
debuild -uc -uscdback into the upper directory:cd ..Find your package there:
ls -al *.debInstall it:
sudo dpkg -i gawk_4.0.1+dfsg-2_amd64.debEnjoy!
In case you don't want to bother compiling this stuff, you still have two options:
PPA
I've uploaded this on my PPA (waiting to be built at this moment) for your convenience.
Manual installation of Quantal binary package
Download the appropriate
.debfile from thepackages.ubuntu.compage, e.g.Install it manually:
sudo dpkg -i gawk_4.0.1+dfsg-2_amd64.deb
gertvdiijk's answer is probably right but I couldn't figure out what to do. I found:
has a PPA for Gnu Awk 4.0:
To get it from there you might want to execute:
apt-get install python-software-properties
add-apt-repository ppa:schot/gawk
apt-get update
apt-get install gawkThe link What are PPAs and how do I use them? was not directly helpful for me because it was only a link and did not have detailed instructions on what to really do given Ubuntu 12.04 LTS - I had to do a few trial and error attempts before I got to the four lines above.