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

What does Apple's new App Store requirement mean

How to get directions in deep space?

Do we have to expect a queue for the shuttle from Watford Junction to Harry Potter Studio?

Why do some congregations only make noise at certain occasions of Haman?

Why do ¬, ∀ and ∃ have the same precedence?

Can you use Vicious Mockery to win an argument or gain favours?

Stack Interview Code methods made from class Node and Smart Pointers

Why does this expression simplify as such?

Make a Bowl of Alphabet Soup

What (the heck) is a Super Worm Equinox Moon?

How to make money from a browser who sees 5 seconds into the future of any web page?

A Trivial Diagnosis

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

Is there any evidence that Cleopatra and Caesarion considered fleeing to India to escape the Romans?

Is there a RAID 0 Equivalent for RAM?

What to do when eye contact makes your coworker uncomfortable?

Delete multiple columns using awk or sed

How does electrical safety system work on ISS?

What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?

Review your own paper in Mathematics

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

What is the difference between lands and mana?

Taxes on Dividends in a Roth IRA

Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?



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













2















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.




















  • you should run those commands inside your Magento root directory.

    – magefms
    yesterday












  • That's where I am running them.

    – DEVDUDE
    yesterday











  • did it happen during the upgrade or compile?

    – magefms
    yesterday











  • Both. Anytime I run a command that starts with: sudo php bin/magento

    – DEVDUDE
    yesterday











  • I see. can you try to run composer update first then after, try if commands are working

    – magefms
    yesterday
















2















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.




















  • you should run those commands inside your Magento root directory.

    – magefms
    yesterday












  • That's where I am running them.

    – DEVDUDE
    yesterday











  • did it happen during the upgrade or compile?

    – magefms
    yesterday











  • Both. Anytime I run a command that starts with: sudo php bin/magento

    – DEVDUDE
    yesterday











  • I see. can you try to run composer update first then after, try if commands are working

    – magefms
    yesterday














2












2








2








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 yesterday









DEVDUDEDEVDUDE

111




111




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.












  • you should run those commands inside your Magento root directory.

    – magefms
    yesterday












  • That's where I am running them.

    – DEVDUDE
    yesterday











  • did it happen during the upgrade or compile?

    – magefms
    yesterday











  • Both. Anytime I run a command that starts with: sudo php bin/magento

    – DEVDUDE
    yesterday











  • I see. can you try to run composer update first then after, try if commands are working

    – magefms
    yesterday


















  • you should run those commands inside your Magento root directory.

    – magefms
    yesterday












  • That's where I am running them.

    – DEVDUDE
    yesterday











  • did it happen during the upgrade or compile?

    – magefms
    yesterday











  • Both. Anytime I run a command that starts with: sudo php bin/magento

    – DEVDUDE
    yesterday











  • I see. can you try to run composer update first then after, try if commands are working

    – magefms
    yesterday

















you should run those commands inside your Magento root directory.

– magefms
yesterday






you should run those commands inside your Magento root directory.

– magefms
yesterday














That's where I am running them.

– DEVDUDE
yesterday





That's where I am running them.

– DEVDUDE
yesterday













did it happen during the upgrade or compile?

– magefms
yesterday





did it happen during the upgrade or compile?

– magefms
yesterday













Both. Anytime I run a command that starts with: sudo php bin/magento

– DEVDUDE
yesterday





Both. Anytime I run a command that starts with: sudo php bin/magento

– DEVDUDE
yesterday













I see. can you try to run composer update first then after, try if commands are working

– magefms
yesterday






I see. can you try to run composer update first then after, try if commands are working

– magefms
yesterday











1 Answer
1






active

oldest

votes


















0














Enter your php path while running bin/magento commands.



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





share|improve this answer






















    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














    Enter your php path while running bin/magento commands.



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





    share|improve this answer



























      0














      Enter your php path while running bin/magento commands.



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





      share|improve this answer

























        0












        0








        0







        Enter your php path while running bin/magento commands.



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





        share|improve this answer













        Enter your php path while running bin/magento commands.



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






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 21 hours ago









        Adarsh EdiyottilAdarsh Ediyottil

        435




        435




















            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







            Popular posts from this blog

            Sum ergo cogito? 1 nng

            三茅街道4182Guuntc Dn precexpngmageondP