Failing to do an install in $HOME from git

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Failing to do an install in $HOME from git

Tim Chase
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.

When I check, there's no auto/config.h file generated by the
configure process, so of course objects/arabic.o can't be built if
it requires auto/config.h to continue.  Attempting `touch
auto/config.h` doesn't seem to net me any progress. I find a
config.h.in file but figured `configure` (or `make`) should be using
this file to generate auto/config.h

What am I missing?

This is on Debian Stretch (9.0) if that makes a difference.

Thanks,

-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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Christian Brabandt

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 think one can also export those variables into the shell. (Look into
how the travis CI script builds Vim). But I usually don't bother,
because I let my shell give me the last configure call.

Best,
Christian
--
Es läßt den Bauern gar nicht ruh'n, wenn die Hähne morgens muh'n.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tim Chase
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Christian Brabandt

On Fr, 30 Jun 2017, Tim Chase wrote:

> 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

The last line, if run successfully, should show this:
...
checking whether we need -D_FORTIFY_SOURCE=1... yes
checking linker --as-needed support... yes
configure: updating cache auto/config.cache
configure: creating auto/config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h

You might want to check the log file, something is wrong here.
Perhaps you are missing some packages? Did you try running
apt-get build-dep vim-nox

Best,
Christian
--
Oliver's Gesetz:
   Erfahrung ist etwas, was man erst unmittelbar nachdem man es brauchte
   bekommen kann.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tony Mechelynck
See also http://users.skynet.be/antoine.mechelynck/vim/compunix.htm —
it is written for Mercurial but you should have no difficulty adapting
it for git. Beware of false friends however: "hg fetch" corresponds to
"git pull" and vice-versa, and their options may be different. Apart
from getting the sources, the rest, and in particular the necessity of
installing all relevant "development" packages from your distro, and
how to always set consistent configure settings by means of
environment variables, is common to all Unix-like systems. (Depending
on what was updated since last time, a plain [supposedly incremental]
"make" run may sometimes decide that a configure run is needed before
compiling, and you will want to be ready for that eventuality.)

Best regards,
Tony.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tony Mechelynck
P.S. After a failed configure, or after installing additional software
packages, you may want to run "make reconfig" (with configure settings
in the environment) in order to discard whatever was left over from
the previous configure run. This particular make target runs configure
first from a clean slate, and then proceeds to compile and link if the
configure step doesn't end in an error.

Best regards,
Tony.

On Fri, Jun 30, 2017 at 10:18 PM, Tony Mechelynck
<[hidden email]> wrote:

> See also http://users.skynet.be/antoine.mechelynck/vim/compunix.htm —
> it is written for Mercurial but you should have no difficulty adapting
> it for git. Beware of false friends however: "hg fetch" corresponds to
> "git pull" and vice-versa, and their options may be different. Apart
> from getting the sources, the rest, and in particular the necessity of
> installing all relevant "development" packages from your distro, and
> how to always set consistent configure settings by means of
> environment variables, is common to all Unix-like systems. (Depending
> on what was updated since last time, a plain [supposedly incremental]
> "make" run may sometimes decide that a configure run is needed before
> compiling, and you will want to be ready for that eventuality.)
>
> Best regards,
> Tony.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tim Chase
In reply to this post by Christian Brabandt
On 2017-06-30 22:04, Christian Brabandt wrote:

> The last line, if run successfully, should show this:
> ...
> checking whether we need -D_FORTIFY_SOURCE=1... yes
> checking linker --as-needed support... yes
> configure: updating cache auto/config.cache
> configure: creating auto/config.status
> config.status: creating auto/config.mk
> config.status: creating auto/config.h
>
> You might want to check the log file, something is wrong here.
> Perhaps you are missing some packages? Did you try running
> apt-get build-dep vim-nox

Yes, I've got the build-dep for vim-nox installed, and I see the line
(as quoted previously) about "creating auto/config.h" but no file
appears there.

[scratches head]

Thanks for helping me through this,

-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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tim Chase
On 2017-06-30 15:30, Tim Chase wrote:

> On 2017-06-30 22:04, Christian Brabandt wrote:
> > The last line, if run successfully, should show this:
> > ...
> > checking whether we need -D_FORTIFY_SOURCE=1... yes
> > checking linker --as-needed support... yes
> > configure: updating cache auto/config.cache
> > configure: creating auto/config.status
> > config.status: creating auto/config.mk
> > config.status: creating auto/config.h
> >
> > You might want to check the log file, something is wrong here.
> > Perhaps you are missing some packages? Did you try running
> > apt-get build-dep vim-nox  
>
> Yes, I've got the build-dep for vim-nox installed, and I see the
> line (as quoted previously) about "creating auto/config.h" but no
> file appears there.

Though I do get one extra line after the "creating auto/config.h"
line:

   config.status: auto/config.h is unchanged

I'm not sure how it's determining that, as there's no auto/config.h
file present to compare it to.

-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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Erik Christiansen
On 30.06.17 15:41, Tim Chase wrote:
> Though I do get one extra line after the "creating auto/config.h"
> line:
>
>    config.status: auto/config.h is unchanged
>
> I'm not sure how it's determining that, as there's no auto/config.h
> file present to compare it to.

Tim, what does:

$ locate auto/config.h

show? (If nothing, then a "find /usr/local -name auto/config.h -print",
perhaps?)

Since config can find it, it is likely somewhere unexpected, rather than
nonexistent, I figure.

Erik

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Paul-4
In reply to this post by Tim Chase
This works for me, after a git pull:

make distclean
cd src
rm auto/config.mk
make
cd ..
sudo make install

I don't know about non-standard installation directory. I actually let checkinstall take care of the installation.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Paul-4
In reply to this post by Tim Chase
This works for me, after a git pull:

make distclean
cd src
rm auto/config.mk
make
cd ..
sudo make install

I don't know about non-standard installation directory. I actually let checkinstall take care of the installation.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tim Chase
On 2017-07-01 18:28, Paul wrote:

> This works for me, after a git pull:
>
> make distclean
> cd src
> rm auto/config.mk
> make
> cd ..
> sudo make install
>
> I don't know about non-standard installation directory. I actually
> let checkinstall take care of the installation.
With my modified src/Makefile (putting it in $HOME/local as my
prefix), following your process/suggestion creates a 0-byte
auto/config.h but then building objects/arabic.o fails because a bunch
of missing definitions.  Most of the compiler complaints seem to stem
from a missing definition of "char_u".  I've attached the build-log
in the event it's helpful.

Thanks for attempts to assist,

-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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

vim_build.txt (287K) Download Attachment
Loading...