Friday, June 30, 2017

Re: Failing to do an install in $HOME from git

On 2017-06-30 21:43, Christian Brabandt wrote:
> On Fr, 30 Jun 2017, Tim Chase wrote:
>
> > I just pulled down a clone of the git repo, modified src/Makefile
> > to point `prefix` at $HOME/local but when I go to build, it
> > complains that it can't find auto/config.h but as far as I can
> > tell, I'm doing everything according to the install-from-source
> > instructions in usr_90:
> >
> > $ git clone https://github.com/vim/vim.git
> > $ cd vim/src
> > $ sed -i '/^#prefix/{s/^#//;s@$@/local@}' Makefile
> > $ mkdir -p $HOME/local/
> > $ make
> > :
> > :
> > configure: creating auto/config.status
> > config.status: creating auto/config.mk
> > config.status: creating auto/config.h
> > config.status: auto/config.h is unchanged
> > make: *** No rule to make target 'auto/config.h', needed by
> > 'objects/arabic.o'. Stop.
>
> You need to run configure. I usually do something like this:
> ,----
> | ./configure --with-features=huge --enable-luainterp
> | --enable-python3interp --enable-pythoninterp
> |
> --with-python3-config-dir=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu
> | --enable-gui=no --prefix=/home/chrisbra/local `----

I tried your suggestion (I don't need other language interpreters for
my testing)

$ git clean -xf # reset back to fresh repo status

$ ./configure --with-features=huge --enable-gui=no --prefix=$HOME/local

$ ls -1 $VIMSRC/src/auto/
config.cache
config.log
config.mk
config.status
configure

$ make
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
make[1]: Entering directory '/home/demo/vim/src'
make[1]: *** No rule to make target 'auto/config.h', needed by 'objects/arabic.o'. Stop.
make[1]: Leaving directory '/home/demo/vim/src'
Makefile:26: recipe for target 'first' failed
make: *** [first] Error 2



Still no config.h in the src/auto/ directory, and `make` still fails
with the same error (regardless of whether I issue `make` from
$VIMSRC or $VIMSRC/src).

-tim



--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: