How to install gawk 4.1.1 in Ubuntu 12.04 LTS 64-bit

Asked by Iohann

ubuntu 12.04 64-bit is my o/s

gt$gawk
gawk: error while loading shared libraries: libsigsegv.so.2: cannot open shared object file: No such file or directory

what must i do to clear up this problem?

thanks in advance for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gawk Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
Last query:
Last reply:
Revision history for this message
Iohann (iohann-fust) said :
#1

sorry about the "gt" ... vim command slipped in there.
should just be the command line $gawk.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Please send us the full Terminal output of these Terminal commands:

sudo apt-get update

sudo apt-get install libsigsegv2

sudo apt-get install gawk

apt-cache policy gawk

apt-cache policy libsigsegv2

ls -lart /usr/lib/libsigsegv.so.2

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I suggest you report a bug. There is a missing dep in the package which will need adding so the application can run

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

It will need to add libsigsegv2 as a dep, it supplies the file you are missing

Revision history for this message
Iohann (iohann-fust) said :
#5

requested info.

$ sudo apt-get update
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise/main Sources
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/universe Sources
Hit http://archive.ubuntu.com precise/multiverse Sources
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://extras.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://ppa.launchpad.net precise Release
Hit http://extras.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://ppa.launchpad.net precise Release
Hit http://extras.ubuntu.com precise/main amd64 Packages
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Reading package lists... Done

$sudo apt-get install libsigsegv2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsigsegv2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get install gawk
Reading package lists... Done
Building dependency tree
Reading state information... Done
gawk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ apt-cache policy gawk
gawk:
   Installed: 1:3.1.8+dfsg-0.1ubuntu1
   Candidate: 1:3.1.8+dfsg-0.1ubuntu1
   Version table:
  *** 1:3.1.8+dfsg-0.1ubuntu1 0
         500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
         100 /var/lib/dpkg/status

$ apt-cache policy libsigsegv2
libsigsegv2:
   Installed: 2.9-4ubuntu2
   Candidate: 2.9-4ubuntu2
   Version table:
  *** 2.9-4ubuntu2 0
         500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
         100 /var/lib/dpkg/status

$ ls -lart /usr/lib/libsigsegv.so.2
ls: cannot access /usr/lib/libsigsegv.so.2: No such file or directory

On 10/25/2014 10:41 AM, Mark Rijckenberg wrote:
> Your question #256180 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/256180
>
> Status: Open => Needs information
>
> Mark Rijckenberg requested more information:
> Please send us the full Terminal output of these Terminal commands:
>
> sudo apt-get update
>
> sudo apt-get install libsigsegv2
>
> sudo apt-get install gawk
>
> apt-cache policy gawk
>
> apt-cache policy libsigsegv2
>
> ls -lart /usr/lib/libsigsegv.so.2
>

Revision history for this message
Iohann (iohann-fust) said :
#6

a bit of further context. ...

needing gawk-4.0.1 or better for Linux from Scratch build.

one user there suggested i get the source and build.

i did.

however, sh ./configure at finish yielded ...

config.status: creating Makefile
gawk: error while loading shared libraries: libsigsegv.so.2: cannot open shared object file: No such
file or directory
config.status: error: could not create Makefile

thanks again.

robert

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

sudo apt-get install libsigsegv2

Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#8

There is no reason to compile from source, because there is a PPA containing the gawk v4.1.1 Ubuntu package.

Please run these Terminal commands instead:

sudo add-apt-repository ppa:schot/gawk

sudo apt-get update

sudo apt-get install gawk

Revision history for this message
Iohann (iohann-fust) said :
#9

that did it.

$ sudo apt-get remove gawk libsigsegv2
$ sudo add-apt-repository ppa:schot/gawk
$ sudo apt-get update
$ sudo apt-get install gawk libsigsegv2
$gawk --version | head -n1
GNU Awk 4.1.1, API: 1.1 (GNU MPFR 3.1.0-p3, GNU MP 5.0.2)

Thanks very much for taking the time to work me through this.

Revision history for this message
Iohann (iohann-fust) said :
#10

Thanks Mark Rijckenberg, that solved my question.