gdal2tiles.py: 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/bin/gdal2tiles.py - from package: gdal-python

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

On Debian possible default full paths are:

/usr/bin/gdal2tiles.py - from package: python-gdal

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