Using grun in the apt-get package for ANTLR












0














I have installed a couple of apt-get packages for ANTLR instead of following the instructions on the homepage as I prefer to use a package manager of some kind whenever possible. In particular I have ran:



sudo apt-get install antlr
sudo apt-get install antlr4


The tool antlr4 runs fine and gives the expected output. The antlr grammar testing tool grun, however, does not. Running grun gives:



➜  ~ grun
zsh: command not found: grun


I originally thought there might be another package that needs installation, erroneously tried sudo apt-get install grun which gives an unrelated tool. I also searched using apt search grun and apt search antlr to see if there was any possible grun-esque package that I was missing. Nothing showed up.



However, after looking at the file directories of the antlr4 package there is a /usr/share/antlr4/grun. Sure enough, changing directories I found there was a binary grun and running ./grun gives the expected output.




  1. It seems odd to me why this isn't installed in /usr/bin/. I can't run it as is. Is it expected that /usr/share/ is in my path? Is this a "mistake" in the package?

  2. Or is there some alternative alias that the package provides for grun that I should be calling instead?










share|improve this question



























    0














    I have installed a couple of apt-get packages for ANTLR instead of following the instructions on the homepage as I prefer to use a package manager of some kind whenever possible. In particular I have ran:



    sudo apt-get install antlr
    sudo apt-get install antlr4


    The tool antlr4 runs fine and gives the expected output. The antlr grammar testing tool grun, however, does not. Running grun gives:



    ➜  ~ grun
    zsh: command not found: grun


    I originally thought there might be another package that needs installation, erroneously tried sudo apt-get install grun which gives an unrelated tool. I also searched using apt search grun and apt search antlr to see if there was any possible grun-esque package that I was missing. Nothing showed up.



    However, after looking at the file directories of the antlr4 package there is a /usr/share/antlr4/grun. Sure enough, changing directories I found there was a binary grun and running ./grun gives the expected output.




    1. It seems odd to me why this isn't installed in /usr/bin/. I can't run it as is. Is it expected that /usr/share/ is in my path? Is this a "mistake" in the package?

    2. Or is there some alternative alias that the package provides for grun that I should be calling instead?










    share|improve this question

























      0












      0








      0







      I have installed a couple of apt-get packages for ANTLR instead of following the instructions on the homepage as I prefer to use a package manager of some kind whenever possible. In particular I have ran:



      sudo apt-get install antlr
      sudo apt-get install antlr4


      The tool antlr4 runs fine and gives the expected output. The antlr grammar testing tool grun, however, does not. Running grun gives:



      ➜  ~ grun
      zsh: command not found: grun


      I originally thought there might be another package that needs installation, erroneously tried sudo apt-get install grun which gives an unrelated tool. I also searched using apt search grun and apt search antlr to see if there was any possible grun-esque package that I was missing. Nothing showed up.



      However, after looking at the file directories of the antlr4 package there is a /usr/share/antlr4/grun. Sure enough, changing directories I found there was a binary grun and running ./grun gives the expected output.




      1. It seems odd to me why this isn't installed in /usr/bin/. I can't run it as is. Is it expected that /usr/share/ is in my path? Is this a "mistake" in the package?

      2. Or is there some alternative alias that the package provides for grun that I should be calling instead?










      share|improve this question













      I have installed a couple of apt-get packages for ANTLR instead of following the instructions on the homepage as I prefer to use a package manager of some kind whenever possible. In particular I have ran:



      sudo apt-get install antlr
      sudo apt-get install antlr4


      The tool antlr4 runs fine and gives the expected output. The antlr grammar testing tool grun, however, does not. Running grun gives:



      ➜  ~ grun
      zsh: command not found: grun


      I originally thought there might be another package that needs installation, erroneously tried sudo apt-get install grun which gives an unrelated tool. I also searched using apt search grun and apt search antlr to see if there was any possible grun-esque package that I was missing. Nothing showed up.



      However, after looking at the file directories of the antlr4 package there is a /usr/share/antlr4/grun. Sure enough, changing directories I found there was a binary grun and running ./grun gives the expected output.




      1. It seems odd to me why this isn't installed in /usr/bin/. I can't run it as is. Is it expected that /usr/share/ is in my path? Is this a "mistake" in the package?

      2. Or is there some alternative alias that the package provides for grun that I should be calling instead?







      apt 18.10






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 2 at 0:34









      Dair

      1111




      1111






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1106121%2fusing-grun-in-the-apt-get-package-for-antlr%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


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





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2faskubuntu.com%2fquestions%2f1106121%2fusing-grun-in-the-apt-get-package-for-antlr%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

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b