gphoto2-config: 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/gphoto2-config - from package: libgphoto2-devel

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

On Debian possible default full paths are:

/usr/bin/gphoto2-config - from package: libgphoto2-dev

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