MESS (statically compiled vi )

Bill Schoolcraft bill at wiliweld.com
Mon May 22 09:23:45 PDT 2006


At Mon, 22 May 2006 it looks like Jerry McAllister composed:

> > 
> > At Mon, 22 May 2006 it looks like Jerry McAllister composed:
> > 
> > > Yup.   It is in /usr/bin
> > > I guess, I am so used to putting a copy of vi in /bin shortly after
> > > installing a new system that I assume it is always there.
> > > 
> > 
> > Can we actually 'de-install' then 're-install' vi(m) from PORTS with
> > it statically compiled?
> > 
> > Then we can move it to /bin (?)
> 
> You don't really need to de-install it.
> Just cp /usr/bin/vi /bin/.
> Make sure you are happy with the permissions.
> 
> It will work.  vi is pretty well self contained.

Hmm, not sure if we are talking about in single user mode with only
/  mounted, here is what my version does with a dependency check...

I see it need libs in /lib, which I'm sure is not on it's own
partition, but I was hoping to get vi statically compiled.

###############################################

[root at bsd /usr/ports/editors]-> ldd `which vi`

/usr/bin/vi:
        libncurses.so.5 => /lib/libncurses.so.5 (0x280b9000)
        libc.so.5 => /lib/libc.so.5 (0x280f8000)

###############################################

-- 
Bill Schoolcraft | http://wiliweld.com
                 
"If your life was full of nothing but
sunshine, you would just be a desert."





More information about the freebsd-questions mailing list