help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-nano] Help


From: Chris Allegretta
Subject: Re: [Help-nano] Help
Date: Thu, 22 Sep 2016 14:23:11 -0400

(fyi, please reply all on lists like these)

Hm, I'm guessing this means that on this platform, there is either a
'pico' binary or a symbolic link to nano, which seems to be old
version that does not understand some of the new .nanorc commands.

If you mean you want to be able to type 'pico' and get nano, then
again there are a couple ways to do that.  One would be to set up a
'pico' alias like I did in the previous message.

alias pico="/usr/local/bin/nano"

If you needed to do this for multiple users I would suggest setting up
a symbolic link wherever nano is installed.  Again assuming the nano
binary is in /usr/local bin you would run:

cd /usr/local/bin
sudo ln -sf nano pico

If this does not work, then I assume it has to do with whatever this
depot system is that is setting up the software for you, as these
paths make it look like nano was not compiled and installed from
source.

On Thu, Sep 22, 2016 at 2:10 AM, Michael Tran <address@hidden> wrote:
> Hello,
>
> I appreciate all your help. Your solution worked. Thank you for going
> through the trouble of finding the solution and explaining why I shouldn’t
> tamper with the older version in mac. I’m still having issues trying to run
> the pico (even though I know nano replaces pico), and I’m wondering if there
> was a fix to run an updated pico without getting the following errors?
>
> Error in /usr/local/Cellar/nano/2.7.0/share/nano/awk.nanorc on line 4:
> Command "magic" not understood
>
> Error in /usr/local/Cellar/nano/2.7.0/share/nano/awk.nanorc on line 5:
> Command "comment" not understood
>
> Press Enter to continue starting nano.
>
>
> Error in /usr/local/Cellar/nano/2.7.0/share/nano/c.nanorc on line 4: Command
> "magic" not understood
>
> Error in /usr/local/Cellar/nano/2.7.0/share/nano/c.nanorc on line 5: Command
> "comment" not understood
>
> Error in /usr/local/Cellar/nano/2.7.0/share/nano/xml.nanorc on line 5:
> Command "comment" not understood
>
> and etc.
>
> I’m curious to see if there is a solution to this problem and I can type
> “pico” and it would load the new nano/pico version instead of the previous?
>
> Thank you,
> Michael
>
>
>
> On Sep 22, 2016, at 12:52 AM, Chris Allegretta <address@hidden> wrote:
>
> Hi Michael,
>
> There really is no need to have to delete the old version of nano, you
> can set up permanent access the new version one of several ways:
>
> - Update your $PATH variable to put the newer version earlier in your
> path.  For example if the new version of nano is installed in
> /usr/local/bin, you can type:
>
> export PATH=/usr/local/bin:$PATH
>
> then typing 'nano' should find the newer version first.
>
> - or, make an alias to nano directly:
>
> alias nano="/usr/local/bin/nano"
>
> Then add whichever method above you prefer into your .bash_profile so
> it would be set up every time you open a new Terminal.
>
> I stumbled across this guide which talks about this in more detail if
> you're interested:
> https://coolestguidesontheplanet.com/add-shell-path-osx/
>
> Unfortunately because Apple's Mac OS is proprietary software, it's
> less supported than a truly Free Software system, so it's harder for
> us to provide troubleshooting for issues with it.  There is likely a
> problem with permissions (are you root / did you use sudo?) but I
> would strongly recommend leaving the installed version alone and
> setting up access to your new version as above, as removing the
> OS-provided version could theoretically interfere with future OS
> upgrades.
>
>
>
> On Wed, Sep 21, 2016 at 8:53 PM, Michael Tran <address@hidden>
> wrote:
>
> Hello,
>
> I’m using a macbook running “El Capitan”. I’m trying to remove the nano
> editor 2.0.6 version off of my computer. I can’t find the solution anywhere.
> I tried override removing it but it says that the operation is not permitted
> even if I’m giving it permission. How do I permanently rid of the older
> version?
>
> Thank you,
> Michael
> _______________________________________________
> Help-nano mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-nano
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]