Why am I getting a load error when I try to use gem commands on my Mac?












0















I am trying to install sass on my mac, but every time I try to use any gem command like gem install sass or gem update --system I get the following errors:



/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.3.0/rubygems.rb:1395:in `<top (required)>'
from <internal:gem_prelude>:4:in `require'
from <internal:gem_prelude>:4:in `<internal:gem_prelude>'


This also happens when I try to install homebrew.



My ruby version using ruby -v gives



ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]


I am using macOS 10.14.2.



Why am I getting this error, and how do I fix it?



Thanks.










share|improve this question





























    0















    I am trying to install sass on my mac, but every time I try to use any gem command like gem install sass or gem update --system I get the following errors:



    /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Site/2.3.0/rubygems.rb:1395:in `<top (required)>'
    from <internal:gem_prelude>:4:in `require'
    from <internal:gem_prelude>:4:in `<internal:gem_prelude>'


    This also happens when I try to install homebrew.



    My ruby version using ruby -v gives



    ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]


    I am using macOS 10.14.2.



    Why am I getting this error, and how do I fix it?



    Thanks.










    share|improve this question



























      0












      0








      0


      1






      I am trying to install sass on my mac, but every time I try to use any gem command like gem install sass or gem update --system I get the following errors:



      /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)
      from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      from /Library/Ruby/Site/2.3.0/rubygems.rb:1395:in `<top (required)>'
      from <internal:gem_prelude>:4:in `require'
      from <internal:gem_prelude>:4:in `<internal:gem_prelude>'


      This also happens when I try to install homebrew.



      My ruby version using ruby -v gives



      ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]


      I am using macOS 10.14.2.



      Why am I getting this error, and how do I fix it?



      Thanks.










      share|improve this question
















      I am trying to install sass on my mac, but every time I try to use any gem command like gem install sass or gem update --system I get the following errors:



      /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)
      from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      from /Library/Ruby/Site/2.3.0/rubygems.rb:1395:in `<top (required)>'
      from <internal:gem_prelude>:4:in `require'
      from <internal:gem_prelude>:4:in `<internal:gem_prelude>'


      This also happens when I try to install homebrew.



      My ruby version using ruby -v gives



      ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]


      I am using macOS 10.14.2.



      Why am I getting this error, and how do I fix it?



      Thanks.







      mac ruby






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 24 '18 at 0:17







      Kat W

















      asked Dec 24 '18 at 0:08









      Kat WKat W

      13




      13






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Ok I found a short term solution



          https://stackoverflow.com/questions/25328019/cannot-load-such-file-rubygems-rb



          Installing rvm and doing this above worked for me.



          My usr/bin/ruby is still not working, so I would assume isn't a full fix for the system ruby. ruby works for me now. I wasn't able to install brew before, but now I am able to.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f1387243%2fwhy-am-i-getting-a-load-error-when-i-try-to-use-gem-commands-on-my-mac%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














            Ok I found a short term solution



            https://stackoverflow.com/questions/25328019/cannot-load-such-file-rubygems-rb



            Installing rvm and doing this above worked for me.



            My usr/bin/ruby is still not working, so I would assume isn't a full fix for the system ruby. ruby works for me now. I wasn't able to install brew before, but now I am able to.






            share|improve this answer






























              0














              Ok I found a short term solution



              https://stackoverflow.com/questions/25328019/cannot-load-such-file-rubygems-rb



              Installing rvm and doing this above worked for me.



              My usr/bin/ruby is still not working, so I would assume isn't a full fix for the system ruby. ruby works for me now. I wasn't able to install brew before, but now I am able to.






              share|improve this answer




























                0












                0








                0







                Ok I found a short term solution



                https://stackoverflow.com/questions/25328019/cannot-load-such-file-rubygems-rb



                Installing rvm and doing this above worked for me.



                My usr/bin/ruby is still not working, so I would assume isn't a full fix for the system ruby. ruby works for me now. I wasn't able to install brew before, but now I am able to.






                share|improve this answer















                Ok I found a short term solution



                https://stackoverflow.com/questions/25328019/cannot-load-such-file-rubygems-rb



                Installing rvm and doing this above worked for me.



                My usr/bin/ruby is still not working, so I would assume isn't a full fix for the system ruby. ruby works for me now. I wasn't able to install brew before, but now I am able to.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 2 at 15:23

























                answered Jan 2 at 15:02









                user3651225user3651225

                11




                11






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1387243%2fwhy-am-i-getting-a-load-error-when-i-try-to-use-gem-commands-on-my-mac%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

                    Сан-Квентин

                    8-я гвардейская общевойсковая армия

                    Алькесар