Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vim installation on solaris 8

Status
Not open for further replies.

whn

Programmer
Oct 14, 2007
265
US
Is it possible to install vim on Solaris 8 w/o root privilege? The compiled package from sunfreeware will be installed in /usr/local through pkgadd, which I can not do. I tried to compile it from the source codes, which also requires root privilege.

Can someone please show me how to installed it in $HOME/bin?

Thanks.
 
Compiling it from source code should not require root privilege, just as long as you specify an installation location that you actually have access to, e.g. in your home dir. What problems did you have compiling it?

Annihilannic.
 
Thank you, Annihilannic.

By default, even if you were compiling it from source codes, it still try to install it in /usr/local. I know there must be a file that I can change the default destination to my home dir. But I don't know how.

Could you show me which file I should change and the syntax I should use for the change?

As for the error message, I forgot already (sorry). It basically said that I can not write it into /usr/local.

thanks.
 
If my memory is correct, it is something like:
./configure --prefix=/home/username/bin

By default it will use /usr/local unless otherwise specified.


I'm not sure if you are passing any other arguments , if so add them.



David
 
I think vim needs /usr/share. Look in configure or configure --help to see if there is a way to remap this to your directory. I can't look at it now but I will in a few hours.
eugene
 
Did it on 2.9

cd src
./configure --prefix=PATHTOHOMEDIR
(for some reason, I had to set SIZEOF_INT in auto/config.h to 4 from 0.)


make
make install (it will make share and man pages in your homedir as well as install vim in ~/bin.

eugene

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top