Mac OS X Lion下找不到GCC

笔者的环境是Mac OS X 10.7.3,安装了XCode 4.3。

在Terminal试图使用GCC命令时发现找不到这个命令,在/usr/bin下面也没有gcc这个路径。


解决方案:

1、打开XCode,进入Preferences --> Downloads

2、点击Command Line Tools (180 MB) 这行的 Install 按钮 (如图)



安装结束后,在/usr/bin里面就发现了gcc。(同样使用$whereis gcc命令亦可打印出/usr/bin/gcc)



  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
This combination reference and tutorial provides a comprehensive yet concise look at UNIX for users of Mac OS X. The book is fully up-to-date with the 10.4 (Tiger) release of OS X which is built on top of a UNIX system. Building upon Mark Sobell's A Practical Guide to the UNIX System, this book provides step-by-step tutorials for OS X users eager to get the most from the underlying UNIX system. Peter Seebach and Mark Sobell offer clear, straightforward coverage of hundreds of UNIX and Mac OS X UNIX specific commands and utilities, including Sobell's user-friendly 236-page command reference section that alone is worth the price of the book. Using a practical approach, this book provides hands-on examples and detailed explanations to demystify the UNIX environment. Designed for the novice to intermediate user, it covers basic user-level commands, shell programming, as well as more advanced utilities. Features: A quick introduction to 30+ useful utilities An introduction to the UNIX filesystem and its features One chapter on vim and one chapter on emacs A chapter on programming tools including sections on gcc, make, gdb, and CVS Detailed coverage of more than 80 UNIX utilities with many examples (Part VI) An introductory chapter on using the shells A chapter on using bash (the Bourne Again Shell) interactively (from the command line) A chapter covering bash as a programming language (to write shell scripts) A chapter about how to use tcsh (the TC Shell) interactively (from the command line) and as a programming language A chapter on the awk pattern processing language An appendix on regular expressions A glossary with over 500 entries

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值