* [gentoo-user] static nano - how to?
@ 2012-01-31 17:15 Helmut Jarausch
2012-01-31 18:01 ` Alex Schuster
2012-01-31 22:25 ` Florian Philipp
0 siblings, 2 replies; 4+ messages in thread
From: Helmut Jarausch @ 2012-01-31 17:15 UTC (permalink / raw
To: gentoo-user
Hi,
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
How can I build a static version of nano?
Many thanks for a hint,
Helmut.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] static nano - how to?
2012-01-31 17:15 [gentoo-user] static nano - how to? Helmut Jarausch
@ 2012-01-31 18:01 ` Alex Schuster
2012-01-31 22:25 ` Florian Philipp
1 sibling, 0 replies; 4+ messages in thread
From: Alex Schuster @ 2012-01-31 18:01 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] static nano - how to?
2012-01-31 17:15 [gentoo-user] static nano - how to? Helmut Jarausch
2012-01-31 18:01 ` Alex Schuster
@ 2012-01-31 22:25 ` Florian Philipp
2012-02-01 6:07 ` [gentoo-user] " »Q«
1 sibling, 1 reply; 4+ messages in thread
From: Florian Philipp @ 2012-01-31 22:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
Am 31.01.2012 18:15, schrieb Helmut Jarausch:
> Hi,
>
> 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
>
> How can I build a static version of nano?
>
> Many thanks for a hint,
> Helmut.
>
That must be a use flag issue:
ldd `which nano`
linux-vdso.so.1 => (0x00007fffde9ff000)
libncursesw.so.5 => /lib64/libncursesw.so.5 (0x00007f47f3b64000)
libc.so.6 => /lib64/libc.so.6 (0x00007f47f37be000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f47f35ba000)
/lib64/ld-linux-x86-64.so.2 (0x00007f47f3dc5000)
USE="ncurses nls unicode -debug -justify -minimal -slang -spell"
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: static nano - how to?
2012-01-31 22:25 ` Florian Philipp
@ 2012-02-01 6:07 ` »Q«
0 siblings, 0 replies; 4+ messages in thread
From: »Q« @ 2012-02-01 6:07 UTC (permalink / raw
To: gentoo-user
On Tue, 31 Jan 2012 23:25:37 +0100
Florian Philipp <lists@binarywings.net> wrote:
> Am 31.01.2012 18:15, schrieb Helmut Jarausch:
> > Hi,
> >
> > 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
> >
> > How can I build a static version of nano?
> >
> > Many thanks for a hint,
> > Helmut.
>
> That must be a use flag issue:
>
> ldd `which nano`
> linux-vdso.so.1 => (0x00007fffde9ff000)
> libncursesw.so.5 => /lib64/libncursesw.so.5
> (0x00007f47f3b64000) libc.so.6 => /lib64/libc.so.6
> (0x00007f47f37be000) libdl.so.2 => /lib64/libdl.so.2
> (0x00007f47f35ba000) /lib64/ld-linux-x86-64.so.2 (0x00007f47f3dc5000)
>
> USE="ncurses nls unicode -debug -justify -minimal -slang -spell"
libmagic is used by >=app-editors/nano-2.3.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-01 6:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 17:15 [gentoo-user] static nano - how to? Helmut Jarausch
2012-01-31 18:01 ` Alex Schuster
2012-01-31 22:25 ` Florian Philipp
2012-02-01 6:07 ` [gentoo-user] " »Q«
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox