Tuesday, January 25, 2011

Install gstack.

Ubuntu AMD64 doesn't come with pstack/gstack, but it can be downloaded from other RPM distributions. Here are the basic instructions that I got to work:

http://www.google.com/#sclient=psy&hl=en&q=gstack+rpm+launchpad&aq=f&aqi=&aql=&oq=&pbx=1&fp=25a0b2344dc0e416

1. wget http://download.fedora.redhat.com/pub/fedora/linux/updates/13/x86_64/gdb-7.1-34.fc13.x86_64.rpm

2. sudo apt-get install rpm2cpio

3. sudo apt-get install gdb

4. rpm2cpio gdb-7.1-34.fc13.x86_64.rpm | cpio -idmv

These files will then be output in the current present dir -- you can then go 

5. Edit the gstack file to use #!/bin/bash instead of #!/bin/sh

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. The download link "http://download.fedora.redhat.com/pub/fedora/linux/updates/13/x86_64/gdb-7.1-34.fc13.x86_64.rpm" cannot be reached.
    Use this instead -
    wget ftp.scientificlinux.org/linux/scientific/58/x86_64/updates/fastbugs/gdb-7.0.1-42.el5_8.1.x86_64.rpm

    ReplyDelete