zlib not detected by `gem install redis`












0















Having issue with making gem install to detect zlib.



I'm trying to install redis api for ruby. This needs zlib. Installed zlib through yum - sudo yum install zlib. Installation is successful (as below).



[~]$ sudo yum install zlib
Loaded plugins: fastestmirror, langpacks, versionlock
Loading mirror speeds from cached hostfile
* base: server>.com
* epel: server>.com
* extras: <server>.com
* hp: server>.com
* updates: server>.com
Package zlib-1.2.7-17.el7.x86_64 already installed and latest version
Nothing to do


But, gem install redis couldn't detect zlib. I get below error when installing redis api.



[~]$ sudo gem install redis
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass


Any reason why gem install couldn't detect the zlib?










share|improve this question



























    0















    Having issue with making gem install to detect zlib.



    I'm trying to install redis api for ruby. This needs zlib. Installed zlib through yum - sudo yum install zlib. Installation is successful (as below).



    [~]$ sudo yum install zlib
    Loaded plugins: fastestmirror, langpacks, versionlock
    Loading mirror speeds from cached hostfile
    * base: server>.com
    * epel: server>.com
    * extras: <server>.com
    * hp: server>.com
    * updates: server>.com
    Package zlib-1.2.7-17.el7.x86_64 already installed and latest version
    Nothing to do


    But, gem install redis couldn't detect zlib. I get below error when installing redis api.



    [~]$ sudo gem install redis
    ERROR: Loading command: install (LoadError)
    cannot load such file -- zlib
    ERROR: While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass


    Any reason why gem install couldn't detect the zlib?










    share|improve this question

























      0












      0








      0








      Having issue with making gem install to detect zlib.



      I'm trying to install redis api for ruby. This needs zlib. Installed zlib through yum - sudo yum install zlib. Installation is successful (as below).



      [~]$ sudo yum install zlib
      Loaded plugins: fastestmirror, langpacks, versionlock
      Loading mirror speeds from cached hostfile
      * base: server>.com
      * epel: server>.com
      * extras: <server>.com
      * hp: server>.com
      * updates: server>.com
      Package zlib-1.2.7-17.el7.x86_64 already installed and latest version
      Nothing to do


      But, gem install redis couldn't detect zlib. I get below error when installing redis api.



      [~]$ sudo gem install redis
      ERROR: Loading command: install (LoadError)
      cannot load such file -- zlib
      ERROR: While executing gem ... (NoMethodError)
      undefined method `invoke_with_build_args' for nil:NilClass


      Any reason why gem install couldn't detect the zlib?










      share|improve this question














      Having issue with making gem install to detect zlib.



      I'm trying to install redis api for ruby. This needs zlib. Installed zlib through yum - sudo yum install zlib. Installation is successful (as below).



      [~]$ sudo yum install zlib
      Loaded plugins: fastestmirror, langpacks, versionlock
      Loading mirror speeds from cached hostfile
      * base: server>.com
      * epel: server>.com
      * extras: <server>.com
      * hp: server>.com
      * updates: server>.com
      Package zlib-1.2.7-17.el7.x86_64 already installed and latest version
      Nothing to do


      But, gem install redis couldn't detect zlib. I get below error when installing redis api.



      [~]$ sudo gem install redis
      ERROR: Loading command: install (LoadError)
      cannot load such file -- zlib
      ERROR: While executing gem ... (NoMethodError)
      undefined method `invoke_with_build_args' for nil:NilClass


      Any reason why gem install couldn't detect the zlib?







      ruby redis zlib






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 18:54









      barathbarath

      14510




      14510
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I suspect you're missing the devel package for zlib. rpm -qa | grep zlib should produce output like the following:



          # rpm -qa | grep zlib
          zlib-devel-1.2.7-15.el7.x86_64
          zlib-1.2.7-15.el7.x86_64


          You'll want to include zlib-devel and then try re-installing the redis gem. If this doesn't solve your issue, please include the output of gem install redis --verbose in your question.






          share|improve this answer


























          • rpm -qa | grep zlib -> zlib-1.2.7-17.el7.x86_64 zlib-devel-1.2.7-17.el7.x86_64

            – barath
            Nov 17 '18 at 0:15











          • zlib-devel exists.

            – barath
            Nov 17 '18 at 0:20











          • @barath can you do a gem install redis --verbose and add the full output to your question?

            – Gavin Miller
            Nov 18 '18 at 16:41











          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%2f53287757%2fzlib-not-detected-by-gem-install-redis%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














          I suspect you're missing the devel package for zlib. rpm -qa | grep zlib should produce output like the following:



          # rpm -qa | grep zlib
          zlib-devel-1.2.7-15.el7.x86_64
          zlib-1.2.7-15.el7.x86_64


          You'll want to include zlib-devel and then try re-installing the redis gem. If this doesn't solve your issue, please include the output of gem install redis --verbose in your question.






          share|improve this answer


























          • rpm -qa | grep zlib -> zlib-1.2.7-17.el7.x86_64 zlib-devel-1.2.7-17.el7.x86_64

            – barath
            Nov 17 '18 at 0:15











          • zlib-devel exists.

            – barath
            Nov 17 '18 at 0:20











          • @barath can you do a gem install redis --verbose and add the full output to your question?

            – Gavin Miller
            Nov 18 '18 at 16:41
















          0














          I suspect you're missing the devel package for zlib. rpm -qa | grep zlib should produce output like the following:



          # rpm -qa | grep zlib
          zlib-devel-1.2.7-15.el7.x86_64
          zlib-1.2.7-15.el7.x86_64


          You'll want to include zlib-devel and then try re-installing the redis gem. If this doesn't solve your issue, please include the output of gem install redis --verbose in your question.






          share|improve this answer


























          • rpm -qa | grep zlib -> zlib-1.2.7-17.el7.x86_64 zlib-devel-1.2.7-17.el7.x86_64

            – barath
            Nov 17 '18 at 0:15











          • zlib-devel exists.

            – barath
            Nov 17 '18 at 0:20











          • @barath can you do a gem install redis --verbose and add the full output to your question?

            – Gavin Miller
            Nov 18 '18 at 16:41














          0












          0








          0







          I suspect you're missing the devel package for zlib. rpm -qa | grep zlib should produce output like the following:



          # rpm -qa | grep zlib
          zlib-devel-1.2.7-15.el7.x86_64
          zlib-1.2.7-15.el7.x86_64


          You'll want to include zlib-devel and then try re-installing the redis gem. If this doesn't solve your issue, please include the output of gem install redis --verbose in your question.






          share|improve this answer















          I suspect you're missing the devel package for zlib. rpm -qa | grep zlib should produce output like the following:



          # rpm -qa | grep zlib
          zlib-devel-1.2.7-15.el7.x86_64
          zlib-1.2.7-15.el7.x86_64


          You'll want to include zlib-devel and then try re-installing the redis gem. If this doesn't solve your issue, please include the output of gem install redis --verbose in your question.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 13 '18 at 19:21

























          answered Nov 13 '18 at 19:14









          Gavin MillerGavin Miller

          33.6k18106169




          33.6k18106169













          • rpm -qa | grep zlib -> zlib-1.2.7-17.el7.x86_64 zlib-devel-1.2.7-17.el7.x86_64

            – barath
            Nov 17 '18 at 0:15











          • zlib-devel exists.

            – barath
            Nov 17 '18 at 0:20











          • @barath can you do a gem install redis --verbose and add the full output to your question?

            – Gavin Miller
            Nov 18 '18 at 16:41



















          • rpm -qa | grep zlib -> zlib-1.2.7-17.el7.x86_64 zlib-devel-1.2.7-17.el7.x86_64

            – barath
            Nov 17 '18 at 0:15











          • zlib-devel exists.

            – barath
            Nov 17 '18 at 0:20











          • @barath can you do a gem install redis --verbose and add the full output to your question?

            – Gavin Miller
            Nov 18 '18 at 16:41

















          rpm -qa | grep zlib -> zlib-1.2.7-17.el7.x86_64 zlib-devel-1.2.7-17.el7.x86_64

          – barath
          Nov 17 '18 at 0:15





          rpm -qa | grep zlib -> zlib-1.2.7-17.el7.x86_64 zlib-devel-1.2.7-17.el7.x86_64

          – barath
          Nov 17 '18 at 0:15













          zlib-devel exists.

          – barath
          Nov 17 '18 at 0:20





          zlib-devel exists.

          – barath
          Nov 17 '18 at 0:20













          @barath can you do a gem install redis --verbose and add the full output to your question?

          – Gavin Miller
          Nov 18 '18 at 16:41





          @barath can you do a gem install redis --verbose and add the full output to your question?

          – Gavin Miller
          Nov 18 '18 at 16:41


















          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%2f53287757%2fzlib-not-detected-by-gem-install-redis%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.

          Danny Elfman

          Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues