lesspipe.sh: 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/lesspipe.sh - from package: less

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