`
aqbbsxiao
  • 浏览: 46447 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

How to fix "no acceptable C compiler found in $PATH" error on Mac OS

    博客分类:
  • 1
 
阅读更多
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
8. On the last row of the available downloads are the Command Line tools. Install them.

You should be good to go after that!
分享到:
评论

相关推荐

    Linux-jpcap-gcc

    configure: error: no acceptable C compiler found in $PATH ------------------------ linux 中,安装,提示缺少其他一些组件,经过来回搜索与拷贝,GCC安装成功,所需文件有: libf2c-3.3.2-1.i386.rpm libstdc -devel...

    centos7_rlwrap-0.42.tar.gz

    如编译报错提示:configure:3414: error: no acceptable C compiler found in $PATH yum -y install gcc ./configure && make && make install 安装完成后 [root@localhost rlwrap-0.42]# which rlwrap /usr/local/...

    compiler-gcc5.h

    使用新版本gcc编译老版本linux内核,将文件添加至include/linux即可!

    lrzsz 的linux 离线安装

    解压: tar -zxvf lrzsz-0.12.20.tar.gz 编译、安装 cd lrzsz-0.12.20 ...备注:如果编译报错 error: no acceptable cc found in $PATH 则需要安装gcc编译器 推荐联网安装 yum install gcc gcc-c++ gcc-g77

    CentOS 7 安装python3.7.1的方法及注意事项

    安装wget yum -y install wget 创建一个download目录用于下载各种安装包 mkdir download 切换到刚创建的download目录中 cd download ...注意,我这里报错:no acceptable C compiler found in $PATH 这

    RedHat--python3.6.5安装手册.docx

    问题1:`configure: error: no acceptable C compiler found in $PATH` 解决方法:这个错误意味着系统中没有可用的C编译器。要解决这个问题,你需要安装GCC及其依赖包,使用`yum -y install gcc`命令。 问题2:`...

    How to Cheat at Securing a Wireless Network

    including Penetration Tester's Open Source Toolkit (ISBN: 1-5974490210), Stealing the Network: How to Own an Identity (ISBN: 1597490067), InfoSec Career Hacking (ISBN: 1597490113), and OS X for ...

    rsh软件(LoadRunner监控Linux)

    2. configure: error: no acceptable C compiler found in $PATH 原因:未安装gcc编译器. 在命令行里敲入gcc –v, 如果提示command not found 就表示你的系统里没有安装gcc编译器 解决办法:yum install gcc ...

    安装apache mysql php 手册&&开发apache,php扩展模块方法

    5. 如果在配置过程中遇到“no acceptable C compiler found in $PATH”的错误,是因为缺少开发工具包,需要安装`development tools`,包括`gcc`等编译器。 6. 完成安装:`make`,然后`make install` 接下来,初始化...

    在linux上安装lamp

    - 如果出现 “no acceptable C compiler found in $Path” 的错误,可通过 `yum install gcc` 命令安装GCC。 - **PCRE库问题** - 若提示 “pcre-config for libpcre not found”,则需下载并安装PCRE库至 `/usr/...

    memcache安装

    在此过程中可能会遇到`no acceptable c compiler found in $PATH`的问题,这通常是由于系统未安装GCC导致的。可以通过以下命令解决: ```bash # 安装 GCC yum install gcc* make* # 检查 libevent 是否已成功...

    EPIMap: Using Epimorphism to Map Applications on CGRAs

    One of the primary challenges in using CGRAs is to develop efficient compilers that can automatically and efficiently map applications to the CGRA. To this end, this paper makes several contributions...

    Linux下安装lrzsz_docx1

    如果出现错误提示`configure: error: no acceptable cc found in $PATH`,这意味着系统中没有找到合适的C编译器。在这种情况下,需要安装GCC。 5. **安装GCC**:在CentOS或RHEL等系统中,可以使用`yum install gcc`...

    Linux下安装Python3.6及避坑指南

    1. **错误:configure: error: no acceptable C compiler found in $PATH** 缺少GCC编译环境。安装GCC即可: ```bash yum install -y gcc ``` 2. **错误:zipimport.ZipImportError: can't decompress data*...

    php.ini-development

    in production environments and one that is recommended to be used in ; development environments. ; php.ini-production contains settings which hold security, performance and ; best practices at its ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    To guarantee uniqueness, they should be based on the full path in a project's source tree. For example, the file foo/src/bar/baz.h in project foo should have the following guard: #ifndef FOO_BAR_BAZ...

    servlet2.4doc

    Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. doFilter(ServletRequest, ...

    linux云主机安装pdo详细教程

    7. 如果在执行上一步骤时遇到`configure: error: no acceptable C compiler found in $PATH`的错误,说明需要安装GCC编译器。执行以下命令安装GCC: ``` yum -y install gcc ``` 如果安装GCC时出现依赖问题,如...

Global site tag (gtag.js) - Google Analytics