Gem install producing “OpenSSL” error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












3















For at least a week now i have been trying to install Bettercap on my Raspberry PI using gem but whenever i type in:



sudo gem install bettercap


i receive an error message that says



 ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources


Every fix that has been suggested to other people yields no results:



Option 1: "http option"



According to the answer by Filippo De Bortoli in this thread on the same issue, disabling the https protocol will solve it. However after running these commands:



gem source -r https://rubygems.org/ 
gem source -a http://rubygems.org/


I still get this error:



ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources


Option 2: rebuild



As suggested by Filippo De Bortoli in the same thread he reinstalled ruby after installing OpenSSL, however my raspbian came with OpenSSL and running sudo apt-get install openssl only confirms i have the latest version. I have also re-built ruby 3 times since i started getting this.



Option 3: install locally



After finding out that you could install the gems locally i installed the source and ran.



sudo gem install --local bettercap-1.6.2b.gem


and got the output:



ERROR: Could not find a valid gem 'em-proxy' (>= 0.1.8, ~> 0.1) in any repository


I am guessing since it is only searching the local disk it can not find the dependencies it needs, so i decided to locally install "em-proxy" only to find it needed dependencies, which also needed dependencies. Great. So i decided to leave it for the sake of my sanity and it was overall impractical.




To wrap up, how do i get rid of this error or at the very least bypass it?



Just in case you wanted to know here is the output of gem -v:



2.4.5


and the output of ruby -v:



ruby 2.2.2p95 (2015-04-13 revision 50295) [armv6l-linux-eabihf]


Hope this helps.
Thank you for sitting through my rant i just hope to get this fixed.










share|improve this question


























    3















    For at least a week now i have been trying to install Bettercap on my Raspberry PI using gem but whenever i type in:



    sudo gem install bettercap


    i receive an error message that says



     ERROR: While executing gem ... (Gem::Exception)
    Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources


    Every fix that has been suggested to other people yields no results:



    Option 1: "http option"



    According to the answer by Filippo De Bortoli in this thread on the same issue, disabling the https protocol will solve it. However after running these commands:



    gem source -r https://rubygems.org/ 
    gem source -a http://rubygems.org/


    I still get this error:



    ERROR: While executing gem ... (Gem::Exception)
    Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources


    Option 2: rebuild



    As suggested by Filippo De Bortoli in the same thread he reinstalled ruby after installing OpenSSL, however my raspbian came with OpenSSL and running sudo apt-get install openssl only confirms i have the latest version. I have also re-built ruby 3 times since i started getting this.



    Option 3: install locally



    After finding out that you could install the gems locally i installed the source and ran.



    sudo gem install --local bettercap-1.6.2b.gem


    and got the output:



    ERROR: Could not find a valid gem 'em-proxy' (>= 0.1.8, ~> 0.1) in any repository


    I am guessing since it is only searching the local disk it can not find the dependencies it needs, so i decided to locally install "em-proxy" only to find it needed dependencies, which also needed dependencies. Great. So i decided to leave it for the sake of my sanity and it was overall impractical.




    To wrap up, how do i get rid of this error or at the very least bypass it?



    Just in case you wanted to know here is the output of gem -v:



    2.4.5


    and the output of ruby -v:



    ruby 2.2.2p95 (2015-04-13 revision 50295) [armv6l-linux-eabihf]


    Hope this helps.
    Thank you for sitting through my rant i just hope to get this fixed.










    share|improve this question
























      3












      3








      3


      1






      For at least a week now i have been trying to install Bettercap on my Raspberry PI using gem but whenever i type in:



      sudo gem install bettercap


      i receive an error message that says



       ERROR: While executing gem ... (Gem::Exception)
      Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources


      Every fix that has been suggested to other people yields no results:



      Option 1: "http option"



      According to the answer by Filippo De Bortoli in this thread on the same issue, disabling the https protocol will solve it. However after running these commands:



      gem source -r https://rubygems.org/ 
      gem source -a http://rubygems.org/


      I still get this error:



      ERROR: While executing gem ... (Gem::Exception)
      Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources


      Option 2: rebuild



      As suggested by Filippo De Bortoli in the same thread he reinstalled ruby after installing OpenSSL, however my raspbian came with OpenSSL and running sudo apt-get install openssl only confirms i have the latest version. I have also re-built ruby 3 times since i started getting this.



      Option 3: install locally



      After finding out that you could install the gems locally i installed the source and ran.



      sudo gem install --local bettercap-1.6.2b.gem


      and got the output:



      ERROR: Could not find a valid gem 'em-proxy' (>= 0.1.8, ~> 0.1) in any repository


      I am guessing since it is only searching the local disk it can not find the dependencies it needs, so i decided to locally install "em-proxy" only to find it needed dependencies, which also needed dependencies. Great. So i decided to leave it for the sake of my sanity and it was overall impractical.




      To wrap up, how do i get rid of this error or at the very least bypass it?



      Just in case you wanted to know here is the output of gem -v:



      2.4.5


      and the output of ruby -v:



      ruby 2.2.2p95 (2015-04-13 revision 50295) [armv6l-linux-eabihf]


      Hope this helps.
      Thank you for sitting through my rant i just hope to get this fixed.










      share|improve this question














      For at least a week now i have been trying to install Bettercap on my Raspberry PI using gem but whenever i type in:



      sudo gem install bettercap


      i receive an error message that says



       ERROR: While executing gem ... (Gem::Exception)
      Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources


      Every fix that has been suggested to other people yields no results:



      Option 1: "http option"



      According to the answer by Filippo De Bortoli in this thread on the same issue, disabling the https protocol will solve it. However after running these commands:



      gem source -r https://rubygems.org/ 
      gem source -a http://rubygems.org/


      I still get this error:



      ERROR: While executing gem ... (Gem::Exception)
      Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources


      Option 2: rebuild



      As suggested by Filippo De Bortoli in the same thread he reinstalled ruby after installing OpenSSL, however my raspbian came with OpenSSL and running sudo apt-get install openssl only confirms i have the latest version. I have also re-built ruby 3 times since i started getting this.



      Option 3: install locally



      After finding out that you could install the gems locally i installed the source and ran.



      sudo gem install --local bettercap-1.6.2b.gem


      and got the output:



      ERROR: Could not find a valid gem 'em-proxy' (>= 0.1.8, ~> 0.1) in any repository


      I am guessing since it is only searching the local disk it can not find the dependencies it needs, so i decided to locally install "em-proxy" only to find it needed dependencies, which also needed dependencies. Great. So i decided to leave it for the sake of my sanity and it was overall impractical.




      To wrap up, how do i get rid of this error or at the very least bypass it?



      Just in case you wanted to know here is the output of gem -v:



      2.4.5


      and the output of ruby -v:



      ruby 2.2.2p95 (2015-04-13 revision 50295) [armv6l-linux-eabihf]


      Hope this helps.
      Thank you for sitting through my rant i just hope to get this fixed.







      openssl ruby gem






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 29 '17 at 20:37









      aidanaidan

      164




      164




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Was struggling with this as well when compiling ruby 2.3.6 from source on Debian/Ubuntu. Solved it by install pkg-config additionally to libssl-dev, e.g. the full instructions:




          $ sudo apt install
          make
          gcc
          pkg-config
          libssl1.0-dev
          libreadline-dev
          libgdbm-dev
          zlib1g-dev
          libyaml-dev
          libffi-dev
          libgmp-dev
          openssl
          $ ./configure --disable-install-rdoc
          $ make -j2
          $ sudo make install



          Note, that the libssl-dev package is not compatible with ruby2.3 (see: https://github.com/rvm/rvm/issues/3862#issuecomment-277512130) so on Debian/Stretch or Ubuntu/Xenial you need to install libssl1.0-dev instead.






          share|improve this answer






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f382641%2fgem-install-producing-openssl-error%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














            Was struggling with this as well when compiling ruby 2.3.6 from source on Debian/Ubuntu. Solved it by install pkg-config additionally to libssl-dev, e.g. the full instructions:




            $ sudo apt install
            make
            gcc
            pkg-config
            libssl1.0-dev
            libreadline-dev
            libgdbm-dev
            zlib1g-dev
            libyaml-dev
            libffi-dev
            libgmp-dev
            openssl
            $ ./configure --disable-install-rdoc
            $ make -j2
            $ sudo make install



            Note, that the libssl-dev package is not compatible with ruby2.3 (see: https://github.com/rvm/rvm/issues/3862#issuecomment-277512130) so on Debian/Stretch or Ubuntu/Xenial you need to install libssl1.0-dev instead.






            share|improve this answer



























              0














              Was struggling with this as well when compiling ruby 2.3.6 from source on Debian/Ubuntu. Solved it by install pkg-config additionally to libssl-dev, e.g. the full instructions:




              $ sudo apt install
              make
              gcc
              pkg-config
              libssl1.0-dev
              libreadline-dev
              libgdbm-dev
              zlib1g-dev
              libyaml-dev
              libffi-dev
              libgmp-dev
              openssl
              $ ./configure --disable-install-rdoc
              $ make -j2
              $ sudo make install



              Note, that the libssl-dev package is not compatible with ruby2.3 (see: https://github.com/rvm/rvm/issues/3862#issuecomment-277512130) so on Debian/Stretch or Ubuntu/Xenial you need to install libssl1.0-dev instead.






              share|improve this answer

























                0












                0








                0







                Was struggling with this as well when compiling ruby 2.3.6 from source on Debian/Ubuntu. Solved it by install pkg-config additionally to libssl-dev, e.g. the full instructions:




                $ sudo apt install
                make
                gcc
                pkg-config
                libssl1.0-dev
                libreadline-dev
                libgdbm-dev
                zlib1g-dev
                libyaml-dev
                libffi-dev
                libgmp-dev
                openssl
                $ ./configure --disable-install-rdoc
                $ make -j2
                $ sudo make install



                Note, that the libssl-dev package is not compatible with ruby2.3 (see: https://github.com/rvm/rvm/issues/3862#issuecomment-277512130) so on Debian/Stretch or Ubuntu/Xenial you need to install libssl1.0-dev instead.






                share|improve this answer













                Was struggling with this as well when compiling ruby 2.3.6 from source on Debian/Ubuntu. Solved it by install pkg-config additionally to libssl-dev, e.g. the full instructions:




                $ sudo apt install
                make
                gcc
                pkg-config
                libssl1.0-dev
                libreadline-dev
                libgdbm-dev
                zlib1g-dev
                libyaml-dev
                libffi-dev
                libgmp-dev
                openssl
                $ ./configure --disable-install-rdoc
                $ make -j2
                $ sudo make install



                Note, that the libssl-dev package is not compatible with ruby2.3 (see: https://github.com/rvm/rvm/issues/3862#issuecomment-277512130) so on Debian/Stretch or Ubuntu/Xenial you need to install libssl1.0-dev instead.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 17 '18 at 19:59









                lifeofguenterlifeofguenter

                1011




                1011



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux 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%2funix.stackexchange.com%2fquestions%2f382641%2fgem-install-producing-openssl-error%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

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay