You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Help with updating my nano gnu

Hello everybody I am a new user to OSX and the mac line. I currently GNU nano v 2.0.6 installed in my os and would like to update it to the latest version but I am having problems. These are the steps I followed:

1. download the .tar file from the official website

2. Click on it so that it extracts in the same folder.

3. Navigate to the folder in in terminal and use the following commands

./confugure

make

sudo make install


4. While I enter these commands a lot of other text comes up and I cant figure out what it means. ( I am really new to this)


However in the end when I try to access nano again from the ternimal it still is the same version. I am mainly doing this so that I can enable colour coding.
If someone could provide me with clear instructions to fix this I would be very greatfull.

MacBook Air (13-inch Mid 2013), OS X Mavericks (10.9.2)

Posted on Mar 9, 2014 11:08 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 10, 2014 12:32 AM

Syntax coloring capability is compiled into nano 2.0.6 that ships with Mavericks. You can verify this with the following terminal command:


nano --version


However, syntax coloring requires that you do substantial construction work to build language-specific syntax definition files that contain the specific custom color instructions. These are then included into the ~/.nanorc file. So... no instant color gratification.


For more years than I care to count, I was a Vi man. Then I discovered MacVim. And then Sublime Text 3, which is my current favorite. There is also Komodo Editor, Chocolate, Textastic, and TextMate. Variously, these editors understand command completion, syntax coloring, and code completion without you having to engineer these features yourself.

6 replies
Question marked as Top-ranking reply

Mar 10, 2014 12:32 AM in response to adishwar

Syntax coloring capability is compiled into nano 2.0.6 that ships with Mavericks. You can verify this with the following terminal command:


nano --version


However, syntax coloring requires that you do substantial construction work to build language-specific syntax definition files that contain the specific custom color instructions. These are then included into the ~/.nanorc file. So... no instant color gratification.


For more years than I care to count, I was a Vi man. Then I discovered MacVim. And then Sublime Text 3, which is my current favorite. There is also Komodo Editor, Chocolate, Textastic, and TextMate. Variously, these editors understand command completion, syntax coloring, and code completion without you having to engineer these features yourself.

Mar 10, 2014 5:06 AM in response to adishwar

What Bob said.

In Terminal, enter: which -a nano and you'll see both.

Even if you have /usr/local/bin/ in you path, /usr/bin is usually first, so the old nano is loaded.

I use a newer version of rsync, so in my .bash_profile I have

alias rsync='/usr/local/bin/rsync' (if I want to run the old rsync, I just use \ (\rsync)

Mar 10, 2014 5:18 AM in response to VikingOSX

VikingOSX wrote:

For more years than I care to count, I was a Vi man. Then I discovered MacVim. And then Sublime Text 3, which is my current favorite. There is also Komodo Editor, Chocolate, Textastic, and TextMate. Variously, these editors understand command completion, syntax coloring, and code completion without you having to engineer these features yourself.


For a cheap text editor, there's TextWrangler (free) and Smultron ($6).

No where near as powerful as the editors you listed, but compared to nano.....

Help with updating my nano gnu

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.