Trying to install with Asterisk 1.6

I cannot connect to the database:

[email protected]:~/FreePBX/freepbx-2.4.0$ sudo ./install_amp --username=rayj --password=xxxxxxxxx
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Using username: rayj
Using password: *********
Checking user…OK
Checking if Asterisk is running…running with PID: 12534…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…1.6.0
Checking for selinux…OK
Connecting to database…FAILED
Try running ./install_amp --username=user --password=pass (using your own user and pass)
[FATAL] Cannot connect to database

Ideas?

Thanks,

Ray