Failing FreePBX with ASTERISK 1.8.7 on Fedora x86_64

I have been trying to install FreePBX (tried most of the version I have 2.8 to 2.10-beta), but I have been hitting problems. I am running FreePBX 2.9 with astersik 1.8.7 on Fedora (16 bit) no problems. I have installed the asterisk with RPM avaialable from Repositry.

Here is the installation messages:
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking user…OK
Checking if Asterisk is running…running with PID: 1531…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…1.8.7.1
Checking for selinux…OK
Connecting to database…OK
Checking current version of AMP…2.10.0beta2
Installing new FreePBX files…OK (560 files copied, 0 skipped)
Configuring install for your environment…amportal…fpbx…freepbx_engine…freepbx_setting…gen_amp_conf.php…done
apply username/password changes to conf files…chown: missing operand after asterisk:asterisk' Trychown --help’ for more information.
chmod: missing operand after g+w' Trychmod --help’ for more information.
chown: missing operand after asterisk:asterisk' Trychown --help’ for more information.
chmod: missing operand after g+w' Trychmod --help’ for more information.
chown: missing operand after asterisk:' Trychown --help’ for more information.
done
creating missing #include files…OK
OK
Setting permissions on files…chown: missing operand after asterisk:asterisk' Trychown --help’ for more information.
chmod: missing operand after g+w' Trychmod --help’ for more information.
chown: missing operand after asterisk:asterisk' Trychown --help’ for more information.
chmod: missing operand after g+w' Trychmod --help’ for more information.
chown: missing operand after asterisk:' Trychown --help’ for more information.
OK
Checking for upgrades…No upgrades found
Creating or updating freepbx_conf settings…OK
Generating AMP configs…
Generating Configurations.conf, (if Asterisk is not running, you will get an error
In case of error, start Asterisk and hit the red bar in the GUI to generate the Configurations.conf files
Checking for PEAR Console::Getopt…OK
Running module install.php and install.sql scripts
Skipping extension and destination registry checks
PHP Fatal error: require_once(): Failed opening required ‘l/admin/libraries/extensions.class.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/lib/asterisk/bin/retrieve_conf on line 391
Generating AMP configs…OK
Checking dashboard… dependencies pending
Checking featurecodeadmin… dependencies pending
Checking framework… dependencies pending
Checking recordings… dependencies pending
Checking core… dependencies pending
Checking infoservices… dependencies pending
Checking customappsreg… dependencies pending
Checking fw_ari… dependencies pending
Checking voicemail… dependencies pending
Checking cdr… dependencies pending
Checking music… dependencies pending
Checking dashboard… The following error(s) occured:

  • Cannot find module
    The following error(s) occured:
  • Module dashboard cannot be enabled
    installed
    Checking featurecodeadmin… The following error(s) occured:
  • Cannot find module
    The following error(s) occured:
  • Module featurecodeadmin cannot be enabled
    installed
    Checking framework… The following error(s) occured:
  • Cannot find module
    installed
    Checking recordings… The following error(s) occured:
  • Cannot find module
    The following error(s) occured:
  • Module recordings cannot be enabled
    installed
    Checking core… The following error(s) occured:
  • Cannot find module
    The following error(s) occured:
  • Module core cannot be enabled
    installed
    Checking infoservices… The following error(s) occured:
  • Cannot find module
    The following error(s) occured:
  • Module infoservices cannot be enabled
    installed
    Checking customappsreg… The following error(s) occured:
  • Cannot find module
    The following error(s) occured:
  • Module customappsreg cannot be enabled
    installed
    Checking fw_ari… The following error(s) occured:
  • Cannot find module
    installed
    Checking voicemail… The following error(s) occured:
  • Cannot find module
    The following error(s) occured:
  • Module voicemail cannot be enabled
    installed
    Checking cdr… The following error(s) occured:
  • Cannot find module
    The following error(s) occured:
  • Module cdr cannot be enabled
    installed
    Checking music… The following error(s) occured:
  • Cannot find module
    The following error(s) occured:
  • Module music cannot be enabled
    installed
    Please update your modules and reload Asterisk by visiting http://192.168.35.202/admin

  • Note: It’s possible that if you click the red ‘Update Now’ bar BEFORE *
  • updating your modules, your machine will start dropping calls. Ensure *
  • that all modules are up to date BEFORE YOU CLICK THE RED BAR. As long *
  • as this is observed, your machine will be fully functional whilst the *
  • upgrade is in progress. *

Any help will be appreciated. I read some of the forums similar problems but couldn’t find any solution as such to fix the problem.