how to install phalcon.so in mac os

后端 未结 5 1500
闹比i
闹比i 2021-02-13 14:07

I have installed phalcon extension.It was installed successfully but the phalcon command not working. following Error shown.

\"iMac:project Atomix$ phalcon -sh: phalco

5条回答
  •  天涯浪人
    2021-02-13 14:45

    This is what I did to install Phalcon Developer-Tools for Mac 10.9:

    Step 1
    Using terminal, clone the devtools into your preferable location, I used the default document root.

    $cd /Library/WebServer/Documents/
    $git clone https://github.com/phalcon/phalcon-devtools.git
    

    Step 2
    Edit or create ~/.bash_profile if you don't have one.

    export PTOOLSPATH=/Library/WebServer/Documents/phalcon-devtools
    export PATH="$PTOOLSPATH:$PATH"
    

    Step 3

    $sudo ln -s /Library/WebServer/Documents/phalcon-devtools/phalcon.sh /Library/WebServer/Documents/phalcon-devtools/phalcon
    $chmod +x /Library/WebServer/Documents/phalcon-devtools/phalcon
    

    Please make sure you change all the path above (/Library/WebServer/Documents/) using yours.

    Now try phalcon command again in the terminal. I hope it works :).

提交回复
热议问题