rubygem is installed but now in LOCAL GEMs database












0















I have a RedHat 7 system and I have installed the ruby 2.0.0.648 and rubygem 2.0.14 package and it has also installed a few dependent gems.



My problem is when I run the
gem list command I don't see any of the gems.



If I cd into the /usr/share/gems/gems/ directory I can see all of the files.



My question is…



How can I force the “gems command” to scan the /usr/share/gems/gems directory and update the
*** LOCAL GEMS *** database?



There has to be a way to manually edit the files to tell the gems command that all of the files are really on the system.










share|improve this question




















  • 1





    Install RVM with curl -sSL https://get.rvm.io | bash -s stable; install Ruby with rvm install 2.0.0. Don't use system Ruby. (and if possible, please use a newer version of Ruby as support for 2.0 ended three years ago)

    – anothermh
    Jan 2 at 18:02











  • This system cannot be added to the internet. (it totally closed off) I'm not an rvm expert but I think that tool works by automatically downloading gems from the network, right? If so then that tool would not work since I dont have any internet access, ls -tr /usr/share/gems/gems/ shows all of the gems. Is there a way to make them appear in the *** LOCAL GEMS *** databse?

    – CooLC
    Jan 2 at 18:05


















0















I have a RedHat 7 system and I have installed the ruby 2.0.0.648 and rubygem 2.0.14 package and it has also installed a few dependent gems.



My problem is when I run the
gem list command I don't see any of the gems.



If I cd into the /usr/share/gems/gems/ directory I can see all of the files.



My question is…



How can I force the “gems command” to scan the /usr/share/gems/gems directory and update the
*** LOCAL GEMS *** database?



There has to be a way to manually edit the files to tell the gems command that all of the files are really on the system.










share|improve this question




















  • 1





    Install RVM with curl -sSL https://get.rvm.io | bash -s stable; install Ruby with rvm install 2.0.0. Don't use system Ruby. (and if possible, please use a newer version of Ruby as support for 2.0 ended three years ago)

    – anothermh
    Jan 2 at 18:02











  • This system cannot be added to the internet. (it totally closed off) I'm not an rvm expert but I think that tool works by automatically downloading gems from the network, right? If so then that tool would not work since I dont have any internet access, ls -tr /usr/share/gems/gems/ shows all of the gems. Is there a way to make them appear in the *** LOCAL GEMS *** databse?

    – CooLC
    Jan 2 at 18:05
















0












0








0








I have a RedHat 7 system and I have installed the ruby 2.0.0.648 and rubygem 2.0.14 package and it has also installed a few dependent gems.



My problem is when I run the
gem list command I don't see any of the gems.



If I cd into the /usr/share/gems/gems/ directory I can see all of the files.



My question is…



How can I force the “gems command” to scan the /usr/share/gems/gems directory and update the
*** LOCAL GEMS *** database?



There has to be a way to manually edit the files to tell the gems command that all of the files are really on the system.










share|improve this question
















I have a RedHat 7 system and I have installed the ruby 2.0.0.648 and rubygem 2.0.14 package and it has also installed a few dependent gems.



My problem is when I run the
gem list command I don't see any of the gems.



If I cd into the /usr/share/gems/gems/ directory I can see all of the files.



My question is…



How can I force the “gems command” to scan the /usr/share/gems/gems directory and update the
*** LOCAL GEMS *** database?



There has to be a way to manually edit the files to tell the gems command that all of the files are really on the system.







ruby rubygems rhel7






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 16:38









Phil Ross

20.4k96171




20.4k96171










asked Jan 2 at 16:31









CooLCCooLC

1




1








  • 1





    Install RVM with curl -sSL https://get.rvm.io | bash -s stable; install Ruby with rvm install 2.0.0. Don't use system Ruby. (and if possible, please use a newer version of Ruby as support for 2.0 ended three years ago)

    – anothermh
    Jan 2 at 18:02











  • This system cannot be added to the internet. (it totally closed off) I'm not an rvm expert but I think that tool works by automatically downloading gems from the network, right? If so then that tool would not work since I dont have any internet access, ls -tr /usr/share/gems/gems/ shows all of the gems. Is there a way to make them appear in the *** LOCAL GEMS *** databse?

    – CooLC
    Jan 2 at 18:05
















  • 1





    Install RVM with curl -sSL https://get.rvm.io | bash -s stable; install Ruby with rvm install 2.0.0. Don't use system Ruby. (and if possible, please use a newer version of Ruby as support for 2.0 ended three years ago)

    – anothermh
    Jan 2 at 18:02











  • This system cannot be added to the internet. (it totally closed off) I'm not an rvm expert but I think that tool works by automatically downloading gems from the network, right? If so then that tool would not work since I dont have any internet access, ls -tr /usr/share/gems/gems/ shows all of the gems. Is there a way to make them appear in the *** LOCAL GEMS *** databse?

    – CooLC
    Jan 2 at 18:05










1




1





Install RVM with curl -sSL https://get.rvm.io | bash -s stable; install Ruby with rvm install 2.0.0. Don't use system Ruby. (and if possible, please use a newer version of Ruby as support for 2.0 ended three years ago)

– anothermh
Jan 2 at 18:02





Install RVM with curl -sSL https://get.rvm.io | bash -s stable; install Ruby with rvm install 2.0.0. Don't use system Ruby. (and if possible, please use a newer version of Ruby as support for 2.0 ended three years ago)

– anothermh
Jan 2 at 18:02













This system cannot be added to the internet. (it totally closed off) I'm not an rvm expert but I think that tool works by automatically downloading gems from the network, right? If so then that tool would not work since I dont have any internet access, ls -tr /usr/share/gems/gems/ shows all of the gems. Is there a way to make them appear in the *** LOCAL GEMS *** databse?

– CooLC
Jan 2 at 18:05







This system cannot be added to the internet. (it totally closed off) I'm not an rvm expert but I think that tool works by automatically downloading gems from the network, right? If so then that tool would not work since I dont have any internet access, ls -tr /usr/share/gems/gems/ shows all of the gems. Is there a way to make them appear in the *** LOCAL GEMS *** databse?

– CooLC
Jan 2 at 18:05














1 Answer
1






active

oldest

votes


















0














You can change the path to your gems by running the following command in your shell (or by adding it to your shell profile and reloading your shell):



export GEM_PATH=/usr/share/gems/gems


After running this command you can verify that the change has taken effect by running gem env:



RubyGems Environment:
<snipped>
- GEM PATHS:
- /usr/share/gems/gems
<snipped>


It sounds like you are not installing additional gems since your system is not connected to the Internet, but if you were to use the gem install command then you would also want to set GEM_HOME to the same path:



export GEM_HOME=/usr/share/gems/gems


GEM_PATH is where gem and bundler will find gems and GEM_HOME is where gems will be installed.



More details here and here.






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%2f54009880%2frubygem-is-installed-but-now-in-local-gems-database%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














    You can change the path to your gems by running the following command in your shell (or by adding it to your shell profile and reloading your shell):



    export GEM_PATH=/usr/share/gems/gems


    After running this command you can verify that the change has taken effect by running gem env:



    RubyGems Environment:
    <snipped>
    - GEM PATHS:
    - /usr/share/gems/gems
    <snipped>


    It sounds like you are not installing additional gems since your system is not connected to the Internet, but if you were to use the gem install command then you would also want to set GEM_HOME to the same path:



    export GEM_HOME=/usr/share/gems/gems


    GEM_PATH is where gem and bundler will find gems and GEM_HOME is where gems will be installed.



    More details here and here.






    share|improve this answer




























      0














      You can change the path to your gems by running the following command in your shell (or by adding it to your shell profile and reloading your shell):



      export GEM_PATH=/usr/share/gems/gems


      After running this command you can verify that the change has taken effect by running gem env:



      RubyGems Environment:
      <snipped>
      - GEM PATHS:
      - /usr/share/gems/gems
      <snipped>


      It sounds like you are not installing additional gems since your system is not connected to the Internet, but if you were to use the gem install command then you would also want to set GEM_HOME to the same path:



      export GEM_HOME=/usr/share/gems/gems


      GEM_PATH is where gem and bundler will find gems and GEM_HOME is where gems will be installed.



      More details here and here.






      share|improve this answer


























        0












        0








        0







        You can change the path to your gems by running the following command in your shell (or by adding it to your shell profile and reloading your shell):



        export GEM_PATH=/usr/share/gems/gems


        After running this command you can verify that the change has taken effect by running gem env:



        RubyGems Environment:
        <snipped>
        - GEM PATHS:
        - /usr/share/gems/gems
        <snipped>


        It sounds like you are not installing additional gems since your system is not connected to the Internet, but if you were to use the gem install command then you would also want to set GEM_HOME to the same path:



        export GEM_HOME=/usr/share/gems/gems


        GEM_PATH is where gem and bundler will find gems and GEM_HOME is where gems will be installed.



        More details here and here.






        share|improve this answer













        You can change the path to your gems by running the following command in your shell (or by adding it to your shell profile and reloading your shell):



        export GEM_PATH=/usr/share/gems/gems


        After running this command you can verify that the change has taken effect by running gem env:



        RubyGems Environment:
        <snipped>
        - GEM PATHS:
        - /usr/share/gems/gems
        <snipped>


        It sounds like you are not installing additional gems since your system is not connected to the Internet, but if you were to use the gem install command then you would also want to set GEM_HOME to the same path:



        export GEM_HOME=/usr/share/gems/gems


        GEM_PATH is where gem and bundler will find gems and GEM_HOME is where gems will be installed.



        More details here and here.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 23:12









        anothermhanothermh

        3,35431733




        3,35431733
































            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%2f54009880%2frubygem-is-installed-but-now-in-local-gems-database%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

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            How to fix TextFormField cause rebuild widget in Flutter