Intalling gdb and pstack on Amazon Linux AMI

2k Views Asked by At

I tried installing gdb and pstack on EC2 Instance with Amazon Linux AMI (it was not installed by default), and it's not working.

Tried:

[ec2-user@ip-172-21-ab-xyz ~]$ sudo yum install gdb
Loaded plugins: priorities, update-motd, upgrade-helper
No package gdb available.
Error: Nothing to do

[ec2-user@ip-172-21-ab-xyz ~]$ sudo yum install pstack
Loaded plugins: priorities, update-motd, upgrade-helper
No package pstack available.
Error: Nothing to do

Tried to manually put gdb tar on AMI and compile it, but it didn't work. Not sure where to get RPMs for AMI. Where to download the packages from ?

Can anyone guide me on how to install GDB and pstack on AMI ?

1

There are 1 best solutions below

0
On

I would suggest you to kindly execute the below command:

sudo yum groupinstall "Development Tools"

This will install all the tools required for development and build on Amazon AMI.

More on Amazon Development tools can be found here.