enabling Variant: options when installing nano

Rainer Müller raimue at macports.org
Thu May 22 16:36:45 PDT 2008


Max Garfinkel wrote:
> Hello, I am new to macports and I am trying to enable syntax  
> highlighting for nano. I tried just editing the nanorc file but I get  
> errors like this:
> Error in /opt/local/etc/nanorc on line 3: Command "syntax" not  
> understood
> I have read around and I am guessing that I need to set the  
> configuration options when doing the install. I notice that the apps  
> page has a list configuration.args and Variant: options. I can't seem  
> to find any information on how to pass these options to the install.  
> It seems it may be to do with env variables? Rather than particular  
> help configuring nano I would rather have an explanation of how to  
> apply these options as it seems to be not really documented anywhere.  
> I would be very grateful for a nudge in the right direction.

I am not a user of nano, but I think you need the +color variant of nano.

$ port variants nano
[...]
         color: Enable color syntax highlighting

Use the following commands to install nano with this variant:
$ sudo port deactivate nano
$ sudo port install nano +color

> P.s This is my first post to a mailing list so apologies if I have  
> broken any etiquette. 

Welcome as a MacPorts user! No, you didn't do anything wrong :-)

Rainer


More information about the macports-users mailing list