Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I downloaded the latest version of nano and I followed the instructions described on its website, but I was stopped by step 3:

  1. Download the source file (nano-2.2.6.tar.gz) and unpack it.
  2. Open Terminal and navigate to the directory (nano-2.2.6) and type
  3. ./configure
  4. make
  5. make install

The error messages are as follows:

Chriss-MacBook-Air:nano-2.2.6 Chris$ ./configure
checking build system type... i386-apple-darwin11.4.0
checking host system type... i386-apple-darwin11.4.0
checking target system type... i386-apple-darwin11.4.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in /Users/Chris/Downloads/nano-2.2.6':
configure: error: no acceptable C compiler found in $PATH
See
config.log' for more details.
Chriss-MacBook-Air:nano-2.2.6 Chris$

share|improve this question

migrated from stackoverflow.com Sep 12 '12 at 23:46

This question came from our site for professional and enthusiast programmers.

    
Do you have GCC installed( Xcode should do) On you mac? –  Eswar Rajesh Pinapala Jun 24 '12 at 1:05
    
no i haven't installed yet –  Fallen Satan Jun 24 '12 at 1:08
    
If you have a Lion, You can download for free from the Appstore :itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 –  Eswar Rajesh Pinapala Jun 24 '12 at 1:12

2 Answers 2

You need to install GCC on you mac. It's not installed by default -- you need to add the development tools.

Installing Xcode will solve your problem.

share|improve this answer
1  
You can find Xcode in the Additional Programs folder on one of the disks that came with your system. –  Nit Jun 24 '12 at 1:09
    
thanks very much. I am installing it right now. –  Fallen Satan Jun 24 '12 at 1:09
    
Oops.. It seems nothing change after I finish installing Xcode. Do I need to do some changes to the PATH? –  Fallen Satan Jun 24 '12 at 1:58
    
Recent versions of Xcode have the command line tools as an optional install. –  user7541 Jun 24 '12 at 2:14
    
@FallenSatan: You dont need to manually set the PATH, Xcode should take care of it. Can you try restarting your machine? –  Eswar Rajesh Pinapala Jun 24 '12 at 2:17

I was having the same issue. The problem is that on current versions of XCode the command line tools are not installed by default, you have to go to preferences -> downloads and tell xcode to instal the command line tools.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.