setup-ds.pl: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/sbin/setup-ds.pl - from package: 389-ds-base

You may install the required package with command yum install {package}
Error in other languages:
setup-ds.pl: bevel nie gevind nie
setup-ds.pl: comandă negăsită
setup-ds.pl: comando não encontrado
setup-ds.pl: commande introuvable
setup-ds.pl: command not found
setup-ds.pl: käsku ei ole
setup-ds.pl: không tìm thấy lệnh
setup-ds.pl: komanda nerasta
setup-ds.pl: Kommando nicht gefunden.
setup-ds.pl: kommandot finns inte
setup-ds.pl: komut yok
setup-ds.pl: nie znaleziono polecenia
setup-ds.pl: níor aimsíodh an t-ordú
setup-ds.pl: no se encontró la orden
setup-ds.pl: no s'ha trobat l'ordre
setup-ds.pl: opdracht niet gevonden
setup-ds.pl: parancs nem található
setup-ds.pl: perintah tidak ditemukan
setup-ds.pl: príkaz nenájdený
setup-ds.pl: příkaz nenalezen
setup-ds.pl: команда не найдена
setup-ds.pl: командата не е открита
setup-ds.pl: 命令找不到
setup-ds.pl: コマンドが見つかりません