How to compile LESS pager?Getting 'rxvt-unicode': unknown capability while compiling urxvt 9.22How do I install Apache as a “service unit”?Compiling Wine 1.7.1 from git in GentooWhy is the .config file not copied to /boot after installing new kernel?Is there any automatic tool for installing required libraries to compile a program from source?How to use my cross-compiler to compile something?Problems compiling VASPCompiling driver from Github ErrorUsing Andy Lutomirski's Arch Linux NVMe patch with another distroFifth Browser - how do I get the configure script to recognise a dependency?Automake distcheck of symlinked sourcesWARNING “[something]” has no CRC
How do I create uniquely male characters?
How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?
Is there really no realistic way for a skeleton monster to move around without magic?
Shell script can be run only with sh command
How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)
How can the DM most effectively choose 1 out of an odd number of players to be targeted by an attack or effect?
How to make payment on the internet without leaving a money trail?
Modification to Chariots for Heavy Cavalry Analogue for 4-armed race
Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)
Email Account under attack (really) - anything I can do?
Can I interfere when another PC is about to be attacked?
A Journey Through Space and Time
Schwarzchild Radius of the Universe
Why has Russell's definition of numbers using equivalence classes been finally abandoned? ( If it has actually been abandoned).
Why don't electron-positron collisions release infinite energy?
Is there a minimum number of transactions in a block?
How to calculate implied correlation via observed market price (Margrabe option)
What would the Romans have called "sorcery"?
N.B. ligature in Latex
How does one intimidate enemies without having the capacity for violence?
Can I make popcorn with any corn?
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)
Why is this code 6.5x slower with optimizations enabled?
How to compile LESS pager?
Getting 'rxvt-unicode': unknown capability while compiling urxvt 9.22How do I install Apache as a “service unit”?Compiling Wine 1.7.1 from git in GentooWhy is the .config file not copied to /boot after installing new kernel?Is there any automatic tool for installing required libraries to compile a program from source?How to use my cross-compiler to compile something?Problems compiling VASPCompiling driver from Github ErrorUsing Andy Lutomirski's Arch Linux NVMe patch with another distroFifth Browser - how do I get the configure script to recognise a dependency?Automake distcheck of symlinked sourcesWARNING “[something]” has no CRC
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I would like to compile less
with latest fixes.
I do this:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make
But make
says this:
make: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
There are no Makefile rules that create funcs.h
So, how to compile less
from source?
compiling less
add a comment |
I would like to compile less
with latest fixes.
I do this:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make
But make
says this:
make: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
There are no Makefile rules that create funcs.h
So, how to compile less
from source?
compiling less
Then what happened?
– ctrl-alt-delor
Sep 11 '18 at 11:11
It seems runningmake -f Makefile.aut funcs.h
beforemake
fixes the problem. But I'm not sure if this sequence is correct.
– Igor Liferenko
Sep 17 '18 at 8:21
add a comment |
I would like to compile less
with latest fixes.
I do this:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make
But make
says this:
make: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
There are no Makefile rules that create funcs.h
So, how to compile less
from source?
compiling less
I would like to compile less
with latest fixes.
I do this:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make
But make
says this:
make: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
There are no Makefile rules that create funcs.h
So, how to compile less
from source?
compiling less
compiling less
edited Sep 17 '18 at 6:35
Igor Liferenko
asked Sep 11 '18 at 8:48
Igor LiferenkoIgor Liferenko
283111
283111
Then what happened?
– ctrl-alt-delor
Sep 11 '18 at 11:11
It seems runningmake -f Makefile.aut funcs.h
beforemake
fixes the problem. But I'm not sure if this sequence is correct.
– Igor Liferenko
Sep 17 '18 at 8:21
add a comment |
Then what happened?
– ctrl-alt-delor
Sep 11 '18 at 11:11
It seems runningmake -f Makefile.aut funcs.h
beforemake
fixes the problem. But I'm not sure if this sequence is correct.
– Igor Liferenko
Sep 17 '18 at 8:21
Then what happened?
– ctrl-alt-delor
Sep 11 '18 at 11:11
Then what happened?
– ctrl-alt-delor
Sep 11 '18 at 11:11
It seems running
make -f Makefile.aut funcs.h
before make
fixes the problem. But I'm not sure if this sequence is correct.– Igor Liferenko
Sep 17 '18 at 8:21
It seems running
make -f Makefile.aut funcs.h
before make
fixes the problem. But I'm not sure if this sequence is correct.– Igor Liferenko
Sep 17 '18 at 8:21
add a comment |
4 Answers
4
active
oldest
votes
Here's the method I just successfully used on Ubuntu 18.04:
git clone https://github.com/gwsw/less.git
cd less
autoreconf -i
# install theautoconf
package if you haven't alreadymake -f Makefile.aut dist
This creates a directory release/less-550
containing less-550.tar.gz
and less-550.zip
. It also attempts to create a gpg signature for less-550.tar.gz
. That hung on my system, so I killed the gpg --detach-sign ...
process from another window. You could also just kill the make
process.
less-550.tar.gz
is a standard buildable source tarball, which you can install as usual:
tar xf less-550.tar.gz
cd less-550
./configure --prefix=
some-directory other-optionsmake
make install
The most interesting options for ./configure
are probably:
--with-regex=LIB select regular expression library
(LIB is one of
auto,none,gnu,pcre,pcre2,posix,
regcmp,re_comp,regcomp,regcomp-local) [auto]
--with-editor=PROGRAM use PROGRAM as the default editor [vi]
Run ./configure --help
for a full list of options.
add a comment |
As explained in Thomas Dickey’s answer, the git repository needs preparation before it can be used to build, and one required file can’t be recreated using the provided files.
To build less, download its latest release tarball and build that:
wget http://greenwoodsoftware.com/less/less-530.tar.gz
tar xf less-530.tar.gz
cd less-530
./configure && make
Note however that version 530 has a few annoying bugs which are fixed in the git repository. (This could be why the Debian package hasn’t been updated.)
Alternatively, you can update the Debian package:
sudo apt build-dep less
sudo apt install devscripts
apt source less
cd less-487
uscan
cd ..
tar xf less_530.orig.tar.gz
cd less-530
cp -a ../less-487/debian .
dch -v 530-0.1 "New upstream release."
dch -r ignored
debuild -uc -uc
This will produce a less_530-0.1_yourarch.deb
(where yourarch
is probably amd64
), which you can install using sudo dpkg -i
. As JdeBP points out, this will ensure that the Debian patches are applied, and that the appropriate configure
options are used; it will also give you the benefits of using a package instead of a manual installation.
For gbp
fans like myself, the following recipe uses a git repository which makes any changes more obvious:
sudo apt build-dep less
sudo apt install devscripts git-buildpackage
gbp import-dsc --pristine-tar apt://less/sid
cd less
gbp import-orig --pristine-tar --uscan
dch -v 530-0.1 "New upstream release."
dch -r ignored
gbp buildpackage -us -uc --git-ignore-new
(In both cases, strictly speaking you should use dch -n
and dch -v
, or at least add “Non-maintainer upload.” to the changelog, but that’s harder to do in a copy-pastable way.)
add a comment |
"Makefile.in" is an input to "configure", which generates "Makefile". You need not specify "Makefile" in the make-command. So this should work better:
./configure
make
(though you may have left files in that directory which should be removed before re-running configure).
Running from git, you're missing the distribution files such as configure. If you have a suitable version of autoconf installed, you would have to prepare the build by first running
autoconf
However, the git tree also omits "defines.h.in" — more preparation is needed: none of the files in git appears to match the needed template. You might be able to reuse the corresponding file from a release tar-ball, though that's unreliable (like any other source-file, it changes). Since the documentation doesn't mention this step, a bug report to the developer might help.
The revised question asks about funcs.h
, which can be created using the rule in Makefile.aut
("Makefile for authoring less", according to the comment at the top of the file). But as of 2018/09/17, there still is no rule to create defines.h.in
(use grep to answer these questions).
I've sent bug report.
– Igor Liferenko
Sep 12 '18 at 7:43
Runningautoheader
beforeautoconf
seems to help. Butmake
saysmake: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
...
– Igor Liferenko
Sep 15 '18 at 14:58
There's a makefile rule for creating that file (the makefile doesn't have dependencies telling it to make the file before trying to compile).
– Thomas Dickey
Sep 15 '18 at 16:14
There are no Makefile targets that createfuncs.h
.
– Igor Liferenko
Sep 17 '18 at 3:01
Take a look inMakefile.aut
(grep helps).
– Thomas Dickey
Sep 17 '18 at 8:04
add a comment |
This sequence does the job, but I'm not sure that it is correct:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make -f Makefile.aut funcs.h
make
make -f Makefile.aut less.nro
make -f Makefile.aut lesskey.nro
make -f Makefile.aut lessecho.nro
make install
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468215%2fhow-to-compile-less-pager%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here's the method I just successfully used on Ubuntu 18.04:
git clone https://github.com/gwsw/less.git
cd less
autoreconf -i
# install theautoconf
package if you haven't alreadymake -f Makefile.aut dist
This creates a directory release/less-550
containing less-550.tar.gz
and less-550.zip
. It also attempts to create a gpg signature for less-550.tar.gz
. That hung on my system, so I killed the gpg --detach-sign ...
process from another window. You could also just kill the make
process.
less-550.tar.gz
is a standard buildable source tarball, which you can install as usual:
tar xf less-550.tar.gz
cd less-550
./configure --prefix=
some-directory other-optionsmake
make install
The most interesting options for ./configure
are probably:
--with-regex=LIB select regular expression library
(LIB is one of
auto,none,gnu,pcre,pcre2,posix,
regcmp,re_comp,regcomp,regcomp-local) [auto]
--with-editor=PROGRAM use PROGRAM as the default editor [vi]
Run ./configure --help
for a full list of options.
add a comment |
Here's the method I just successfully used on Ubuntu 18.04:
git clone https://github.com/gwsw/less.git
cd less
autoreconf -i
# install theautoconf
package if you haven't alreadymake -f Makefile.aut dist
This creates a directory release/less-550
containing less-550.tar.gz
and less-550.zip
. It also attempts to create a gpg signature for less-550.tar.gz
. That hung on my system, so I killed the gpg --detach-sign ...
process from another window. You could also just kill the make
process.
less-550.tar.gz
is a standard buildable source tarball, which you can install as usual:
tar xf less-550.tar.gz
cd less-550
./configure --prefix=
some-directory other-optionsmake
make install
The most interesting options for ./configure
are probably:
--with-regex=LIB select regular expression library
(LIB is one of
auto,none,gnu,pcre,pcre2,posix,
regcmp,re_comp,regcomp,regcomp-local) [auto]
--with-editor=PROGRAM use PROGRAM as the default editor [vi]
Run ./configure --help
for a full list of options.
add a comment |
Here's the method I just successfully used on Ubuntu 18.04:
git clone https://github.com/gwsw/less.git
cd less
autoreconf -i
# install theautoconf
package if you haven't alreadymake -f Makefile.aut dist
This creates a directory release/less-550
containing less-550.tar.gz
and less-550.zip
. It also attempts to create a gpg signature for less-550.tar.gz
. That hung on my system, so I killed the gpg --detach-sign ...
process from another window. You could also just kill the make
process.
less-550.tar.gz
is a standard buildable source tarball, which you can install as usual:
tar xf less-550.tar.gz
cd less-550
./configure --prefix=
some-directory other-optionsmake
make install
The most interesting options for ./configure
are probably:
--with-regex=LIB select regular expression library
(LIB is one of
auto,none,gnu,pcre,pcre2,posix,
regcmp,re_comp,regcomp,regcomp-local) [auto]
--with-editor=PROGRAM use PROGRAM as the default editor [vi]
Run ./configure --help
for a full list of options.
Here's the method I just successfully used on Ubuntu 18.04:
git clone https://github.com/gwsw/less.git
cd less
autoreconf -i
# install theautoconf
package if you haven't alreadymake -f Makefile.aut dist
This creates a directory release/less-550
containing less-550.tar.gz
and less-550.zip
. It also attempts to create a gpg signature for less-550.tar.gz
. That hung on my system, so I killed the gpg --detach-sign ...
process from another window. You could also just kill the make
process.
less-550.tar.gz
is a standard buildable source tarball, which you can install as usual:
tar xf less-550.tar.gz
cd less-550
./configure --prefix=
some-directory other-optionsmake
make install
The most interesting options for ./configure
are probably:
--with-regex=LIB select regular expression library
(LIB is one of
auto,none,gnu,pcre,pcre2,posix,
regcmp,re_comp,regcomp,regcomp-local) [auto]
--with-editor=PROGRAM use PROGRAM as the default editor [vi]
Run ./configure --help
for a full list of options.
answered Apr 5 at 2:07
Keith ThompsonKeith Thompson
14.2k43438
14.2k43438
add a comment |
add a comment |
As explained in Thomas Dickey’s answer, the git repository needs preparation before it can be used to build, and one required file can’t be recreated using the provided files.
To build less, download its latest release tarball and build that:
wget http://greenwoodsoftware.com/less/less-530.tar.gz
tar xf less-530.tar.gz
cd less-530
./configure && make
Note however that version 530 has a few annoying bugs which are fixed in the git repository. (This could be why the Debian package hasn’t been updated.)
Alternatively, you can update the Debian package:
sudo apt build-dep less
sudo apt install devscripts
apt source less
cd less-487
uscan
cd ..
tar xf less_530.orig.tar.gz
cd less-530
cp -a ../less-487/debian .
dch -v 530-0.1 "New upstream release."
dch -r ignored
debuild -uc -uc
This will produce a less_530-0.1_yourarch.deb
(where yourarch
is probably amd64
), which you can install using sudo dpkg -i
. As JdeBP points out, this will ensure that the Debian patches are applied, and that the appropriate configure
options are used; it will also give you the benefits of using a package instead of a manual installation.
For gbp
fans like myself, the following recipe uses a git repository which makes any changes more obvious:
sudo apt build-dep less
sudo apt install devscripts git-buildpackage
gbp import-dsc --pristine-tar apt://less/sid
cd less
gbp import-orig --pristine-tar --uscan
dch -v 530-0.1 "New upstream release."
dch -r ignored
gbp buildpackage -us -uc --git-ignore-new
(In both cases, strictly speaking you should use dch -n
and dch -v
, or at least add “Non-maintainer upload.” to the changelog, but that’s harder to do in a copy-pastable way.)
add a comment |
As explained in Thomas Dickey’s answer, the git repository needs preparation before it can be used to build, and one required file can’t be recreated using the provided files.
To build less, download its latest release tarball and build that:
wget http://greenwoodsoftware.com/less/less-530.tar.gz
tar xf less-530.tar.gz
cd less-530
./configure && make
Note however that version 530 has a few annoying bugs which are fixed in the git repository. (This could be why the Debian package hasn’t been updated.)
Alternatively, you can update the Debian package:
sudo apt build-dep less
sudo apt install devscripts
apt source less
cd less-487
uscan
cd ..
tar xf less_530.orig.tar.gz
cd less-530
cp -a ../less-487/debian .
dch -v 530-0.1 "New upstream release."
dch -r ignored
debuild -uc -uc
This will produce a less_530-0.1_yourarch.deb
(where yourarch
is probably amd64
), which you can install using sudo dpkg -i
. As JdeBP points out, this will ensure that the Debian patches are applied, and that the appropriate configure
options are used; it will also give you the benefits of using a package instead of a manual installation.
For gbp
fans like myself, the following recipe uses a git repository which makes any changes more obvious:
sudo apt build-dep less
sudo apt install devscripts git-buildpackage
gbp import-dsc --pristine-tar apt://less/sid
cd less
gbp import-orig --pristine-tar --uscan
dch -v 530-0.1 "New upstream release."
dch -r ignored
gbp buildpackage -us -uc --git-ignore-new
(In both cases, strictly speaking you should use dch -n
and dch -v
, or at least add “Non-maintainer upload.” to the changelog, but that’s harder to do in a copy-pastable way.)
add a comment |
As explained in Thomas Dickey’s answer, the git repository needs preparation before it can be used to build, and one required file can’t be recreated using the provided files.
To build less, download its latest release tarball and build that:
wget http://greenwoodsoftware.com/less/less-530.tar.gz
tar xf less-530.tar.gz
cd less-530
./configure && make
Note however that version 530 has a few annoying bugs which are fixed in the git repository. (This could be why the Debian package hasn’t been updated.)
Alternatively, you can update the Debian package:
sudo apt build-dep less
sudo apt install devscripts
apt source less
cd less-487
uscan
cd ..
tar xf less_530.orig.tar.gz
cd less-530
cp -a ../less-487/debian .
dch -v 530-0.1 "New upstream release."
dch -r ignored
debuild -uc -uc
This will produce a less_530-0.1_yourarch.deb
(where yourarch
is probably amd64
), which you can install using sudo dpkg -i
. As JdeBP points out, this will ensure that the Debian patches are applied, and that the appropriate configure
options are used; it will also give you the benefits of using a package instead of a manual installation.
For gbp
fans like myself, the following recipe uses a git repository which makes any changes more obvious:
sudo apt build-dep less
sudo apt install devscripts git-buildpackage
gbp import-dsc --pristine-tar apt://less/sid
cd less
gbp import-orig --pristine-tar --uscan
dch -v 530-0.1 "New upstream release."
dch -r ignored
gbp buildpackage -us -uc --git-ignore-new
(In both cases, strictly speaking you should use dch -n
and dch -v
, or at least add “Non-maintainer upload.” to the changelog, but that’s harder to do in a copy-pastable way.)
As explained in Thomas Dickey’s answer, the git repository needs preparation before it can be used to build, and one required file can’t be recreated using the provided files.
To build less, download its latest release tarball and build that:
wget http://greenwoodsoftware.com/less/less-530.tar.gz
tar xf less-530.tar.gz
cd less-530
./configure && make
Note however that version 530 has a few annoying bugs which are fixed in the git repository. (This could be why the Debian package hasn’t been updated.)
Alternatively, you can update the Debian package:
sudo apt build-dep less
sudo apt install devscripts
apt source less
cd less-487
uscan
cd ..
tar xf less_530.orig.tar.gz
cd less-530
cp -a ../less-487/debian .
dch -v 530-0.1 "New upstream release."
dch -r ignored
debuild -uc -uc
This will produce a less_530-0.1_yourarch.deb
(where yourarch
is probably amd64
), which you can install using sudo dpkg -i
. As JdeBP points out, this will ensure that the Debian patches are applied, and that the appropriate configure
options are used; it will also give you the benefits of using a package instead of a manual installation.
For gbp
fans like myself, the following recipe uses a git repository which makes any changes more obvious:
sudo apt build-dep less
sudo apt install devscripts git-buildpackage
gbp import-dsc --pristine-tar apt://less/sid
cd less
gbp import-orig --pristine-tar --uscan
dch -v 530-0.1 "New upstream release."
dch -r ignored
gbp buildpackage -us -uc --git-ignore-new
(In both cases, strictly speaking you should use dch -n
and dch -v
, or at least add “Non-maintainer upload.” to the changelog, but that’s harder to do in a copy-pastable way.)
edited Sep 11 '18 at 11:57
answered Sep 11 '18 at 8:58
Stephen KittStephen Kitt
180k25409488
180k25409488
add a comment |
add a comment |
"Makefile.in" is an input to "configure", which generates "Makefile". You need not specify "Makefile" in the make-command. So this should work better:
./configure
make
(though you may have left files in that directory which should be removed before re-running configure).
Running from git, you're missing the distribution files such as configure. If you have a suitable version of autoconf installed, you would have to prepare the build by first running
autoconf
However, the git tree also omits "defines.h.in" — more preparation is needed: none of the files in git appears to match the needed template. You might be able to reuse the corresponding file from a release tar-ball, though that's unreliable (like any other source-file, it changes). Since the documentation doesn't mention this step, a bug report to the developer might help.
The revised question asks about funcs.h
, which can be created using the rule in Makefile.aut
("Makefile for authoring less", according to the comment at the top of the file). But as of 2018/09/17, there still is no rule to create defines.h.in
(use grep to answer these questions).
I've sent bug report.
– Igor Liferenko
Sep 12 '18 at 7:43
Runningautoheader
beforeautoconf
seems to help. Butmake
saysmake: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
...
– Igor Liferenko
Sep 15 '18 at 14:58
There's a makefile rule for creating that file (the makefile doesn't have dependencies telling it to make the file before trying to compile).
– Thomas Dickey
Sep 15 '18 at 16:14
There are no Makefile targets that createfuncs.h
.
– Igor Liferenko
Sep 17 '18 at 3:01
Take a look inMakefile.aut
(grep helps).
– Thomas Dickey
Sep 17 '18 at 8:04
add a comment |
"Makefile.in" is an input to "configure", which generates "Makefile". You need not specify "Makefile" in the make-command. So this should work better:
./configure
make
(though you may have left files in that directory which should be removed before re-running configure).
Running from git, you're missing the distribution files such as configure. If you have a suitable version of autoconf installed, you would have to prepare the build by first running
autoconf
However, the git tree also omits "defines.h.in" — more preparation is needed: none of the files in git appears to match the needed template. You might be able to reuse the corresponding file from a release tar-ball, though that's unreliable (like any other source-file, it changes). Since the documentation doesn't mention this step, a bug report to the developer might help.
The revised question asks about funcs.h
, which can be created using the rule in Makefile.aut
("Makefile for authoring less", according to the comment at the top of the file). But as of 2018/09/17, there still is no rule to create defines.h.in
(use grep to answer these questions).
I've sent bug report.
– Igor Liferenko
Sep 12 '18 at 7:43
Runningautoheader
beforeautoconf
seems to help. Butmake
saysmake: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
...
– Igor Liferenko
Sep 15 '18 at 14:58
There's a makefile rule for creating that file (the makefile doesn't have dependencies telling it to make the file before trying to compile).
– Thomas Dickey
Sep 15 '18 at 16:14
There are no Makefile targets that createfuncs.h
.
– Igor Liferenko
Sep 17 '18 at 3:01
Take a look inMakefile.aut
(grep helps).
– Thomas Dickey
Sep 17 '18 at 8:04
add a comment |
"Makefile.in" is an input to "configure", which generates "Makefile". You need not specify "Makefile" in the make-command. So this should work better:
./configure
make
(though you may have left files in that directory which should be removed before re-running configure).
Running from git, you're missing the distribution files such as configure. If you have a suitable version of autoconf installed, you would have to prepare the build by first running
autoconf
However, the git tree also omits "defines.h.in" — more preparation is needed: none of the files in git appears to match the needed template. You might be able to reuse the corresponding file from a release tar-ball, though that's unreliable (like any other source-file, it changes). Since the documentation doesn't mention this step, a bug report to the developer might help.
The revised question asks about funcs.h
, which can be created using the rule in Makefile.aut
("Makefile for authoring less", according to the comment at the top of the file). But as of 2018/09/17, there still is no rule to create defines.h.in
(use grep to answer these questions).
"Makefile.in" is an input to "configure", which generates "Makefile". You need not specify "Makefile" in the make-command. So this should work better:
./configure
make
(though you may have left files in that directory which should be removed before re-running configure).
Running from git, you're missing the distribution files such as configure. If you have a suitable version of autoconf installed, you would have to prepare the build by first running
autoconf
However, the git tree also omits "defines.h.in" — more preparation is needed: none of the files in git appears to match the needed template. You might be able to reuse the corresponding file from a release tar-ball, though that's unreliable (like any other source-file, it changes). Since the documentation doesn't mention this step, a bug report to the developer might help.
The revised question asks about funcs.h
, which can be created using the rule in Makefile.aut
("Makefile for authoring less", according to the comment at the top of the file). But as of 2018/09/17, there still is no rule to create defines.h.in
(use grep to answer these questions).
edited Sep 17 '18 at 8:11
answered Sep 11 '18 at 8:51
Thomas DickeyThomas Dickey
54.2k5106179
54.2k5106179
I've sent bug report.
– Igor Liferenko
Sep 12 '18 at 7:43
Runningautoheader
beforeautoconf
seems to help. Butmake
saysmake: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
...
– Igor Liferenko
Sep 15 '18 at 14:58
There's a makefile rule for creating that file (the makefile doesn't have dependencies telling it to make the file before trying to compile).
– Thomas Dickey
Sep 15 '18 at 16:14
There are no Makefile targets that createfuncs.h
.
– Igor Liferenko
Sep 17 '18 at 3:01
Take a look inMakefile.aut
(grep helps).
– Thomas Dickey
Sep 17 '18 at 8:04
add a comment |
I've sent bug report.
– Igor Liferenko
Sep 12 '18 at 7:43
Runningautoheader
beforeautoconf
seems to help. Butmake
saysmake: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
...
– Igor Liferenko
Sep 15 '18 at 14:58
There's a makefile rule for creating that file (the makefile doesn't have dependencies telling it to make the file before trying to compile).
– Thomas Dickey
Sep 15 '18 at 16:14
There are no Makefile targets that createfuncs.h
.
– Igor Liferenko
Sep 17 '18 at 3:01
Take a look inMakefile.aut
(grep helps).
– Thomas Dickey
Sep 17 '18 at 8:04
I've sent bug report.
– Igor Liferenko
Sep 12 '18 at 7:43
I've sent bug report.
– Igor Liferenko
Sep 12 '18 at 7:43
Running
autoheader
before autoconf
seems to help. But make
says make: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
...– Igor Liferenko
Sep 15 '18 at 14:58
Running
autoheader
before autoconf
seems to help. But make
says make: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
...– Igor Liferenko
Sep 15 '18 at 14:58
There's a makefile rule for creating that file (the makefile doesn't have dependencies telling it to make the file before trying to compile).
– Thomas Dickey
Sep 15 '18 at 16:14
There's a makefile rule for creating that file (the makefile doesn't have dependencies telling it to make the file before trying to compile).
– Thomas Dickey
Sep 15 '18 at 16:14
There are no Makefile targets that create
funcs.h
.– Igor Liferenko
Sep 17 '18 at 3:01
There are no Makefile targets that create
funcs.h
.– Igor Liferenko
Sep 17 '18 at 3:01
Take a look in
Makefile.aut
(grep helps).– Thomas Dickey
Sep 17 '18 at 8:04
Take a look in
Makefile.aut
(grep helps).– Thomas Dickey
Sep 17 '18 at 8:04
add a comment |
This sequence does the job, but I'm not sure that it is correct:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make -f Makefile.aut funcs.h
make
make -f Makefile.aut less.nro
make -f Makefile.aut lesskey.nro
make -f Makefile.aut lessecho.nro
make install
add a comment |
This sequence does the job, but I'm not sure that it is correct:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make -f Makefile.aut funcs.h
make
make -f Makefile.aut less.nro
make -f Makefile.aut lesskey.nro
make -f Makefile.aut lessecho.nro
make install
add a comment |
This sequence does the job, but I'm not sure that it is correct:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make -f Makefile.aut funcs.h
make
make -f Makefile.aut less.nro
make -f Makefile.aut lesskey.nro
make -f Makefile.aut lessecho.nro
make install
This sequence does the job, but I'm not sure that it is correct:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make -f Makefile.aut funcs.h
make
make -f Makefile.aut less.nro
make -f Makefile.aut lesskey.nro
make -f Makefile.aut lessecho.nro
make install
answered Sep 17 '18 at 8:26
Igor LiferenkoIgor Liferenko
283111
283111
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468215%2fhow-to-compile-less-pager%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Then what happened?
– ctrl-alt-delor
Sep 11 '18 at 11:11
It seems running
make -f Makefile.aut funcs.h
beforemake
fixes the problem. But I'm not sure if this sequence is correct.– Igor Liferenko
Sep 17 '18 at 8:21