mac 没有opt目录

      很多教程告诉你安装或者创建文件在opt目录下,他们默认mac也是有opt目录的,其实mac系统默认是没有opt目录的,所以你找了半天也找不到,除非有软件自己创建了它,或者你只能自己创建了。

参见:

    

Can't find /opt directory on mac os 10.7.5

Hello!

My system is Mac OS X 10.7.5 Mac-Book-Pro. I am currently struggling with setting up the correct php version, which I have recently installed - php 5.5.37; the old, preinstalled one, is 5.3.28; I have managed to get to the stage at which php -v command reveals a correct 5.5.37 version; but both http://localhost/~user/phpmyadmin/setup andhttp://localhost/~user/phpinfo.php show the old 5.3.28 version.

One of tutorials I have found advice to add LoadModule php5_module /opt/local/apache2/modules/mod_php55.so to httpd.conf file. But I can't add this line because I can't even find /opt directory to see what is in there.

 

-bash: cd: /opt/: No such file or directory

 

-bash: cd: /opt/local/etc: No such file or directory

 

Is it possible that I don't have this directory? How can I deal with this issue?

 

I am a newbie in programming, and will be grateful for detailed help - I have been struggling with these issues for more than a week.

Thank you very much!

MacBook Pro, Mac OS X (10.7.5), Xcode 4.6.3

Posted on Jul 18, 2016 3:53 AM

 

Jul 18, 2016 8:39 AM in response to Ducol

Your system will only have that folder if you've installed software which creates it; none of the core Mac OS X components use it. If desired, create it manually.

 

(143534)

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值