Getting a CLI error when trying to compileBlank Magento Category pagesFatal error: Class 'Locale' not found magento 2.0.2Getting Allowed memory size error on sample data deployment magento2Adding an attribute programmatically in Magento 2.1Fatal error: Uncaught Error: Class 'Cli' not foundMagento 2 Sending emails triggered by observerNo line number in error?Magento 2 - bin/magento No commands working - Class 'Cli' not found ErrorM2.2 PHP7 CLI silent failsWhen I run CLI commands in magento 2.2

Should I warn a new PhD Student?

Why the "ls" command is showing the permissions of files in a FAT32 partition?

Review your own paper in Mathematics

Identifying "long and narrow" polygons in with Postgis

Possible Eco thriller, man invents a device to remove rain from glass

Proving a complicated language is not a CFL

How to Disable and Drop all Temporal Tables from a database

I'm just a whisper. Who am I?

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

Showing mass murder in a kid's book

Quoting Keynes in a lecture

How to write Quadratic equation with negative coefficient

Pre-Employment Background Check With Consent For Future Checks

Is there a distance limit for minecart tracks?

Do people actually use the word "kaputt" in conversation?

Ways of geometrical multiplication

How would a solely written language work mechanically

Is stochastic gradient descent pseudo-stochastic?

Do I have to know the General Relativity theory to understand the concept of inertial frame?

Unable to disable Microsoft Store in domain environment

Air travel with refrigerated insulin

Why is the principal energy of an electron lower for excited electrons in a higher energy state?

Overlapping circles covering polygon

Cumulative Sum using Java 8 stream API



Getting a CLI error when trying to compile


Blank Magento Category pagesFatal error: Class 'Locale' not found magento 2.0.2Getting Allowed memory size error on sample data deployment magento2Adding an attribute programmatically in Magento 2.1Fatal error: Uncaught Error: Class 'Cli' not foundMagento 2 Sending emails triggered by observerNo line number in error?Magento 2 - bin/magento No commands working - Class 'Cli' not found ErrorM2.2 PHP7 CLI silent failsWhen I run CLI commands in magento 2.2













0















I am getting this error on terminal:



PHP Fatal error: Class 'Cli' not found in /opt/bitnami/apache2/htdocs/bin/magento on line 31


when trying to run these commands:



sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile


Can anyone help?










share|improve this question







New contributor




DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    0















    I am getting this error on terminal:



    PHP Fatal error: Class 'Cli' not found in /opt/bitnami/apache2/htdocs/bin/magento on line 31


    when trying to run these commands:



    sudo php bin/magento setup:upgrade
    sudo php bin/magento setup:di:compile


    Can anyone help?










    share|improve this question







    New contributor




    DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      I am getting this error on terminal:



      PHP Fatal error: Class 'Cli' not found in /opt/bitnami/apache2/htdocs/bin/magento on line 31


      when trying to run these commands:



      sudo php bin/magento setup:upgrade
      sudo php bin/magento setup:di:compile


      Can anyone help?










      share|improve this question







      New contributor




      DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am getting this error on terminal:



      PHP Fatal error: Class 'Cli' not found in /opt/bitnami/apache2/htdocs/bin/magento on line 31


      when trying to run these commands:



      sudo php bin/magento setup:upgrade
      sudo php bin/magento setup:di:compile


      Can anyone help?







      magento2 magento-2.1 php cli






      share|improve this question







      New contributor




      DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 11 mins ago









      DEVDUDEDEVDUDE

      1




      1




      New contributor




      DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      DEVDUDE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Try running it in the htdocs directory?





          share






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            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
            );



            );






            DEVDUDE is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266755%2fgetting-a-cli-error-when-trying-to-compile%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Try running it in the htdocs directory?





            share



























              0














              Try running it in the htdocs directory?





              share

























                0












                0








                0







                Try running it in the htdocs directory?





                share













                Try running it in the htdocs directory?






                share











                share


                share










                answered just now









                brackfostbrackfost

                344217




                344217




















                    DEVDUDE is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    DEVDUDE is a new contributor. Be nice, and check out our Code of Conduct.












                    DEVDUDE is a new contributor. Be nice, and check out our Code of Conduct.











                    DEVDUDE is a new contributor. Be nice, and check out our Code of Conduct.














                    Thanks for contributing an answer to Magento 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%2fmagento.stackexchange.com%2fquestions%2f266755%2fgetting-a-cli-error-when-trying-to-compile%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