dssu33392 2011-11-13 18:58
浏览 73
已采纳

如何在mac os x lion上设置/安装zend框架? .bash_profile在哪里设置zf.sh的别名?

Note: Move this question to other site if you think its not suite here

Guys I am trying to install/setup zend framework on my mac book pro. I am running MAMP Pro 2.0.3 on mac os x lion 10.7.2

I got zend framework installation instruction form http://akrabat.com/. The author says that I should add alias to zf.sh script in my ~/.bash_profile. But there is no such file in my home directory to I create a new file by "touch .bash_profile", but this is also not working.

Also I downloaded zend studio trial and tried to create a project from there but when I run it in browser its only showing blank page...

Any idea whats going wrong? Can anybody tell me what can I do to successfully create project from zend studio or zend tool?

Is there any step by step guide available for mac os x lion ? any help will be much appreciated!!

Update 1 - OMG! how can I skip this... when I am creating project form zend studio its not putting zend library in "library" folder... thats why I am getting blank page... I just copied the zend folder in library and project form zend studio got working...

still working to resolve the first issue (setting zf.sh) :(

  • 写回答

5条回答 默认 最新

  • doubanduo7620 2011-11-16 18:15
    关注

    As .bash_profile was not there I created my own! by -

    sudo nano ~./bash_profile

    and created a alias in it for zf.sh file -

    alias zf=/usr/local/ZendFrameworkCli/bin/zf.sh

    and boom!!

    I tested this by running this command -

    zf show version

    and it worked perfectly...

    Many thanks to @tawfekov and @halfer

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?