cgminer-api: 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 Debian possible default full paths are:

/usr/bin/cgminer-api - from package: cgminer

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