I have a problem with /usr/local/sbin/amportal: line 46 [FATAL], Please someone help-me

root@NetVoip:/usr/src/freepbx/freepbx-2.9.0# amportal chown

Please wait…
/usr/local/sbin/amportal: linha 46: [FATAL]: comando não encontrado

/var/lib/asterisk/bin/freepbx_engine: linha 98: /var/lib/asterisk/bin/gen_amp_conf.php: Permissão negada
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exists. Attempting to create it with: 'mkdir -p ’

mkdir: falta operando
Experimente “mkdir --help” para mais informações.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ’ failed with an exit code of 1
You must create this directory and the try again.
root@NetVoip:/usr/src/freepbx/freepbx-2.9.0# amportal chmod 777

Please wait…
/usr/local/sbin/amportal: linha 46: [FATAL]: comando não encontrado

/var/lib/asterisk/bin/freepbx_engine: linha 98: /var/lib/asterisk/bin/gen_amp_conf.php: Permissão negada
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exists. Attempting to create it with: 'mkdir -p ’

mkdir: falta operando
Experimente “mkdir --help” para mais informações.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ’ failed with an exit code of 1
You must create this directory and the try again.
root@NetVoip:/usr/src/freepbx/freepbx-2.9.0#

ATENSION
/usr/local/sbin/amportal
LINE 46: '`

help-me please!!!

thanks