On 2007-03-09, lin q <[EMAIL PROTECTED]> wrote:
> Hi,
> I downloaded the vim 7.0 package to my RedHat Enterprise 3 machine.
> I do not have administrator previlidge, so I setup the env like this:
>
> export DESTDIR=<my_dir>
> export prefix=<my_dir>
>
> Then I run
> make
> make install
>
> But when I run vim, <my_dir>/usr/local/bin/vim, I get this error:
>
> Error detected while processing /home/linq/.vimrc:
> line 10:
> E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
> Press ENTER or type command to continue
>
> Line 10 of my vimrc is: syntax on
>
> I am wondering why it still goes to /usr/local to look for data
> files. Is there a way I can control this?
I've never built vim using environment variables; I always use
options to configure. However, from my experience building vim on
systems for which I do not have administrator privileges, and from
reading the output of "./configure --help", I believe that
export prefix=<my_dir>
is incorrect and should instead be
export PREFIX=<my_dir>
Also, since you want DESTDIR to be set to the same directory as
PREFIX, I think that
export DESTDIR=<my_dir>
is unnecessary. So I would suggest executing the following:
export PREFIX=<my_dir>
make reconfig
make
make install
Tony Mechelynck has some tips on using this technique to build vim
on his web page,
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm.
For what it's worth, I build it this way:
cd vim70
./configure --prefix=<my_dir>
make
make install
> By the way, in throwing the above error message, VIM starts, but it
> is not GUI mode even though I have -g in the command, is that because
> of the above problem?
I don't think so. It may be a configuration problem, though.
Execute
vim --version
and verify that you're running the version that you just built (the
first line has the compile time and date) and that it contains the
features you want, such as graphics. The vim I built on Red Hat
Linux 9 has on the third line:
Normal version with X11-Motif GUI.
HTH,
Gary
--
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Mobile Broadband Division
| Spokane, Washington, USA