basename: 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:

/bin/basename - from package: coreutils

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/lib/plan9/bin/basename - from package: 9base
/usr/bin/basename - from package: coreutils

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