Helmut Jarausch writes:

> from time to time I need to boot in 'single' mode.
> I'd like to use the nano editor in this case.
> But unfortunately it doesn't run since it cannot resolve the dynamic 
> library libmagic.so.1

Probably because you have a separate /usr partition that is not mounted
in single user mode? In this case, copy /usr/lib/libmagic.so.1 to /lib/.

> How can I build a static version of nano?

There is a utility that can convert static binaries from dynamic ones:
http://www.magicermine.com/

It's not free, though. But there is a 15-day evaluation version you could
use. They state that they support Free Software and OSS, so I guess they
would be okay with this. The author also seems to be a nice guy, I
exchanged some mails with him years ago because I looked for such a
utility. But I did not buy it because the price (300€) was higher than my
need for it.

Another utility is ELF STATIFIER (http://statifier.sourceforge.net/).
It's free, but it seems to have some problems with stack or VDSO
randomization.

        Wonko

Reply via email to