pkcs11_setup: 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/pkcs11_setup - from package: pam_pkcs11

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

On Debian possible default full paths are:

/usr/bin/pkcs11_setup - from package: libpam-pkcs11

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