Search code examples
installationphalconfreebsd

Phalcon documentation: installation/FreeBSD


I'm trying to install phalcon by it's documentation! and in this step i have an error:

installation/FreeBSD

Command: pkg_add -r phalcon

Error:

'pkg_add' is not recognized as an internal or external command...

What is the problem? Please guide me...


Solution

  • Try to edit:

    vi Edit /root/.cshrc 
    

    adding the follow line:

    setenv PACKAGESITE "ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/<architecture>/packages-current/Latest/"
    

    where <architeture> is something like amd64 or i386

    Then log out and back in, and try again to run pkg_add -r phalcon