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;








1















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?










share|improve this question
























  • 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

















1















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?










share|improve this question
























  • 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













1












1








1








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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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

















  • 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
















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










4 Answers
4






active

oldest

votes


















1














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 the autoconf package if you haven't already

  • make -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-options

  • make

  • 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.






share|improve this answer






























    4














    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.)






    share|improve this answer
































      2














      "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).






      share|improve this answer

























      • 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











      • 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











      • Take a look in Makefile.aut (grep helps).

        – Thomas Dickey
        Sep 17 '18 at 8:04


















      0














      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





      share|improve this answer























        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
        );



        );













        draft saved

        draft discarded


















        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









        1














        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 the autoconf package if you haven't already

        • make -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-options

        • make

        • 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.






        share|improve this answer



























          1














          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 the autoconf package if you haven't already

          • make -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-options

          • make

          • 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.






          share|improve this answer

























            1












            1








            1







            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 the autoconf package if you haven't already

            • make -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-options

            • make

            • 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.






            share|improve this answer













            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 the autoconf package if you haven't already

            • make -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-options

            • make

            • 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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 5 at 2:07









            Keith ThompsonKeith Thompson

            14.2k43438




            14.2k43438























                4














                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.)






                share|improve this answer





























                  4














                  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.)






                  share|improve this answer



























                    4












                    4








                    4







                    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.)






                    share|improve this answer















                    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.)







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Sep 11 '18 at 11:57

























                    answered Sep 11 '18 at 8:58









                    Stephen KittStephen Kitt

                    180k25409488




                    180k25409488





















                        2














                        "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).






                        share|improve this answer

























                        • 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











                        • 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











                        • Take a look in Makefile.aut (grep helps).

                          – Thomas Dickey
                          Sep 17 '18 at 8:04















                        2














                        "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).






                        share|improve this answer

























                        • 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











                        • 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











                        • Take a look in Makefile.aut (grep helps).

                          – Thomas Dickey
                          Sep 17 '18 at 8:04













                        2












                        2








                        2







                        "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).






                        share|improve this answer















                        "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).







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        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











                        • 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 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

















                        • 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











                        • 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











                        • Take a look in Makefile.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











                        0














                        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





                        share|improve this answer



























                          0














                          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





                          share|improve this answer

























                            0












                            0








                            0







                            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





                            share|improve this answer













                            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






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 17 '18 at 8:26









                            Igor LiferenkoIgor Liferenko

                            283111




                            283111



























                                draft saved

                                draft discarded
















































                                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.




                                draft saved


                                draft discarded














                                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





















































                                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







                                Popular posts from this blog

                                getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                                Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                                Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.