Wednesday, May 17, 2006

Install vim 7.0 on Solaris 10

Seems like I only have luck to compile vim source code and install it successfully on Solaris 9 with gcc 3.3.2. Since there is no vim 7.0 compiled package yet for Solaris, at least I couldn't find it on the free SUN software website, I have to compile the source code by myself. I tried to install vim 7.0 on Solaris 10 with gcc 3.3.2 and Solaris 8 with gcc 3.4.2, neither was successful. I got errors while using make. It said there was something wrong in some .h header files.
Well... here is an alternative to install. I am not sure if it's safe or stable, but so far so good. Since I successfully installed it on Solaris 9 with gcc 3.3.2, I use this compiled version as the source. Here we go.

in the box in which I installed vim 7.0:
$ tar cpvf vim70.tar vim70
$ scp vim70.tar test:/tmp

in the box in which I want to install vim 7.0:
$ cd /tmp
$ tar xvf vim70.tar
$ cd vim70; make install

That's all! Enjoy!