How to Fix no acceptable C compiler found in $PATH on Mac OS X Lion

本文介绍如何解决在MacOSX Lion上编译Memcache或wget时遇到的'no acceptable C compiler found in $PATH'错误。通过安装Xcode及额外组件可以轻松解决该问题。

How to Fix no acceptable C compiler found in $PATH on Mac OS X Lion

Posted on May 16th, 2012  phpguru  30 comments

If you have a need to compile Memcache or wget on Mac OS X Lion and are wondering why you are getting the error

no acceptable C compiler found in $PATH

on Mac OS X Lion, you’re not alone.

Thanks to this post, I was able to fix my problem. Here are the steps.

  1. Run App Store
  2. Search for Xcode – it’s a free install from Apple
  3. Wait for awhile. Took 30min to download for me on a 20mbps connection
  4. Authenticate and let Xcode install. Once Xcode is installed you may be thinking you’re done. You would be wrong!
  5. Launch Xcode and run the mobile toolkit update (you can’t skip it, deal with it)
  6. Go to Xcode Preferences or press ⌘, (Command-comma)
  7. Click the Downloads tab -> Components list as shown below
    How To Fix C compiler error on Mac OS X Lion
  8. On the last row of the available downloads are the Command Line tools. Install them.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值