Homebrew installation on Mac OS X Failed to connect to raw.githubusercontent.com port 443












5















When I try to install Homebrew, I am getting following connection refused error. Please help me to solve this problem.



$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused









share|improve this question





























    5















    When I try to install Homebrew, I am getting following connection refused error. Please help me to solve this problem.



    $ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused









    share|improve this question



























      5












      5








      5


      4






      When I try to install Homebrew, I am getting following connection refused error. Please help me to solve this problem.



      $ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused









      share|improve this question
















      When I try to install Homebrew, I am getting following connection refused error. Please help me to solve this problem.



      $ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused






      ruby curl terminal homebrew






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 3 '16 at 8:31









      Trix

      9,91785174




      9,91785174










      asked Apr 28 '15 at 4:15









      Yosuva AYosuva A

      1242518




      1242518
























          4 Answers
          4






          active

          oldest

          votes


















          16














          Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection.



          Can you get to the same URL via a browser?



          https://raw.githubusercontent.com/Homebrew/install/master/install



          If you get an error there too, you know what your problem is. (Talk to your network admin)



          If that works...maybe try doing just the "curl" command in your terminal to see if curl gives a more specific error?



          Also, if that does work, save that file to a file on your computer (brew_install.rb) and then run it via



          ruby brew_install.rb





          share|improve this answer





















          • 1





            Downloading the file and running the script locally on terminal worked. Thanks!

            – Haresh Chaudhary
            Oct 5 '18 at 2:13



















          6














          It was a company proxy problem for me and the solution as mentioned here worked for me.



          export HTTPS_PROXY=https://<proxy.mycompany>:<port>



          git config --global https.proxy $HTTPS_PROXY



          git config --global --get https.proxy






          share|improve this answer































            1














            I've seen this a few times on other people's machines and it seems to be fixed after you install xcode, i.e. xcode-select --install






            share|improve this answer































              1














              These steps solved the problem:




              1. xcode-select --install

              2. restart the Mac


              3. Execute this command:



                /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



              and it should work.






              share|improve this answer

























                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                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%2fstackoverflow.com%2fquestions%2f29910217%2fhomebrew-installation-on-mac-os-x-failed-to-connect-to-raw-githubusercontent-com%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









                16














                Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection.



                Can you get to the same URL via a browser?



                https://raw.githubusercontent.com/Homebrew/install/master/install



                If you get an error there too, you know what your problem is. (Talk to your network admin)



                If that works...maybe try doing just the "curl" command in your terminal to see if curl gives a more specific error?



                Also, if that does work, save that file to a file on your computer (brew_install.rb) and then run it via



                ruby brew_install.rb





                share|improve this answer





















                • 1





                  Downloading the file and running the script locally on terminal worked. Thanks!

                  – Haresh Chaudhary
                  Oct 5 '18 at 2:13
















                16














                Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection.



                Can you get to the same URL via a browser?



                https://raw.githubusercontent.com/Homebrew/install/master/install



                If you get an error there too, you know what your problem is. (Talk to your network admin)



                If that works...maybe try doing just the "curl" command in your terminal to see if curl gives a more specific error?



                Also, if that does work, save that file to a file on your computer (brew_install.rb) and then run it via



                ruby brew_install.rb





                share|improve this answer





















                • 1





                  Downloading the file and running the script locally on terminal worked. Thanks!

                  – Haresh Chaudhary
                  Oct 5 '18 at 2:13














                16












                16








                16







                Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection.



                Can you get to the same URL via a browser?



                https://raw.githubusercontent.com/Homebrew/install/master/install



                If you get an error there too, you know what your problem is. (Talk to your network admin)



                If that works...maybe try doing just the "curl" command in your terminal to see if curl gives a more specific error?



                Also, if that does work, save that file to a file on your computer (brew_install.rb) and then run it via



                ruby brew_install.rb





                share|improve this answer















                Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection.



                Can you get to the same URL via a browser?



                https://raw.githubusercontent.com/Homebrew/install/master/install



                If you get an error there too, you know what your problem is. (Talk to your network admin)



                If that works...maybe try doing just the "curl" command in your terminal to see if curl gives a more specific error?



                Also, if that does work, save that file to a file on your computer (brew_install.rb) and then run it via



                ruby brew_install.rb






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jun 15 '16 at 4:57









                Fawzan

                2,84442355




                2,84442355










                answered Apr 28 '15 at 7:35









                GalGal

                2,2781419




                2,2781419








                • 1





                  Downloading the file and running the script locally on terminal worked. Thanks!

                  – Haresh Chaudhary
                  Oct 5 '18 at 2:13














                • 1





                  Downloading the file and running the script locally on terminal worked. Thanks!

                  – Haresh Chaudhary
                  Oct 5 '18 at 2:13








                1




                1





                Downloading the file and running the script locally on terminal worked. Thanks!

                – Haresh Chaudhary
                Oct 5 '18 at 2:13





                Downloading the file and running the script locally on terminal worked. Thanks!

                – Haresh Chaudhary
                Oct 5 '18 at 2:13













                6














                It was a company proxy problem for me and the solution as mentioned here worked for me.



                export HTTPS_PROXY=https://<proxy.mycompany>:<port>



                git config --global https.proxy $HTTPS_PROXY



                git config --global --get https.proxy






                share|improve this answer




























                  6














                  It was a company proxy problem for me and the solution as mentioned here worked for me.



                  export HTTPS_PROXY=https://<proxy.mycompany>:<port>



                  git config --global https.proxy $HTTPS_PROXY



                  git config --global --get https.proxy






                  share|improve this answer


























                    6












                    6








                    6







                    It was a company proxy problem for me and the solution as mentioned here worked for me.



                    export HTTPS_PROXY=https://<proxy.mycompany>:<port>



                    git config --global https.proxy $HTTPS_PROXY



                    git config --global --get https.proxy






                    share|improve this answer













                    It was a company proxy problem for me and the solution as mentioned here worked for me.



                    export HTTPS_PROXY=https://<proxy.mycompany>:<port>



                    git config --global https.proxy $HTTPS_PROXY



                    git config --global --get https.proxy







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 22 '16 at 18:18









                    blueskinblueskin

                    4,90555181




                    4,90555181























                        1














                        I've seen this a few times on other people's machines and it seems to be fixed after you install xcode, i.e. xcode-select --install






                        share|improve this answer




























                          1














                          I've seen this a few times on other people's machines and it seems to be fixed after you install xcode, i.e. xcode-select --install






                          share|improve this answer


























                            1












                            1








                            1







                            I've seen this a few times on other people's machines and it seems to be fixed after you install xcode, i.e. xcode-select --install






                            share|improve this answer













                            I've seen this a few times on other people's machines and it seems to be fixed after you install xcode, i.e. xcode-select --install







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 18 '15 at 17:12









                            jmccurejmccure

                            834613




                            834613























                                1














                                These steps solved the problem:




                                1. xcode-select --install

                                2. restart the Mac


                                3. Execute this command:



                                  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



                                and it should work.






                                share|improve this answer






























                                  1














                                  These steps solved the problem:




                                  1. xcode-select --install

                                  2. restart the Mac


                                  3. Execute this command:



                                    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



                                  and it should work.






                                  share|improve this answer




























                                    1












                                    1








                                    1







                                    These steps solved the problem:




                                    1. xcode-select --install

                                    2. restart the Mac


                                    3. Execute this command:



                                      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



                                    and it should work.






                                    share|improve this answer















                                    These steps solved the problem:




                                    1. xcode-select --install

                                    2. restart the Mac


                                    3. Execute this command:



                                      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



                                    and it should work.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Nov 13 '18 at 19:42









                                    zx485

                                    14k122947




                                    14k122947










                                    answered Nov 13 '18 at 19:24









                                    Hugo CorreaHugo Correa

                                    111




                                    111






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • 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%2fstackoverflow.com%2fquestions%2f29910217%2fhomebrew-installation-on-mac-os-x-failed-to-connect-to-raw-githubusercontent-com%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

                                        Florida Star v. B. J. F.

                                        Error while running script in elastic search , gateway timeout

                                        Adding quotations to stringified JSON object values