Re: How to compile with --enable-nanorc?

Benno Schulenberg <[email protected]> Fri, 6 Dec 2019 11:11:50 +0100
Newsgroups gmane.editors.nano.general
Message-ID <[email protected]>
Op 05-12-2019 om 20:10 schreef flomanstrategy:
> I answered only to help-nano (hope it's fine)

Yes, thanks.

> I chose 2.9.8 because it's the latest version that doesn't need new debian 10
> packages (i'm on debian 9) to avoid conflicts

When you build from source, you're not using the package manager (apt or dpkg),
so you're not restricted by the dependencies that they impose. If you're able
to build 2.9.8 from source, building 4.6 from source should not be a problem.
But... if you're happy with 2.9.8, that's fine, it's a good version.

Out of curiosity: why did you want to upgrade from 2.7.4?  Did you run into
a bug with that version and wished to have a fixed version?  Or does 2.9.8
contain some feature that 2.7.4 hasn't?

>> which nano
> /usr/local/bin/nano

Indeed, you first installed without the --prefix=/usr option.
And from you're later mail I conclude you succeeded in doing a
'make uninstall' for that configuration.

> Another problem I have is when I type "dpkg -r nano" it says this
> dpkg: warning: ignoring request to remove nano, only the config
> files of which are on the system; use --purge to remove them too

You already overwrote the system's nano with your self-compiled one,
so dpkg probably considers that the system's nano has already been
removed.  Only the config file, /etc/nanorc, remains, and you probably
want to retain that file.  So you can skip removing the old nano from
your system.  (In theory it would have been better to leave the system's
nano in place, configure nano *without* the --prefix=/usr, so it will be
installed to /usr/local/bin.  The latter takes precedence over /usr/bin,
so you would always be using the new nano.  But: if you would somehow
screw up the build and install of a newer nano, you would still have
the older, system's nano available in /usr/bin to save your hide.
But you would need to make a symlink from /usr/local/etc/nanorc to
/etc/nanorc in that case.)

Benno
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEv9AJBh5TUFKtDfIVDSjU0qCs6IQFAl3qKW4ACgkQDSjU0qCs
6IQKRg//TkCoUCSLKm/dP6tt58+3Jn+qSUWofsKArOFSke/XVznCTS1i5iDfCkcO
SeyMxK6vyd2r7qOJZ53PrqWlSzpj+cvbA/nag5x0HjHi9YYEH5bZ/bbjfLQcJ1ca
0PR4ZuFhsc3ddKzZxVKH2yWcdc2I1tE9JRZ1/FrkfNA7FS996wnJbutxAAdEqqwS
+RCNJDSq/g2iM019D0FKJXJXoiubnrPsvGO1+kKjDMIjh89IKIL+zmn4ihy6L2Gg
dDou4fLKzsZQMUAW97Ajwm1b9B1vgIuM/U4ZuEfAwT6004lBK2JFZsWxYMJKsDph
8bYHa6PL9YPf9BQgiGtiSjXTj9HFJD128ZYYPXZTr+gyakOkHTqv2brlXiFC1AxQ
P1Ks1UGuB6a4F/UHmnUEgw2Z9n18FWmHRCrmUJfpi16egb2FkLK2KnWG6wTAHAtK
o5LWkJ0HIDuc4boK2a3cQ3moqMJ7ty3cb3xIQlzs+r57fECAqxw4joonSdQG9SUH
BuXi63WhTbsQX/pBUxkxSPu9G8SkUG0xW6nYwO9w35czgrqE+RhIU4ENPPpP80CE
kv/CHdZGyk6muQfRqiKaJx55itSukgRD+NJcHvd2c5ila/eVvl3hzj26pOpO4h58
OzTKsiIGHjTjlbXDydFWw0HMUa5j9OXbB97BvKyIAWjy5Q4E6so=
=fQNS
-----END PGP SIGNATURE-----