Compile Git to use OpenSSL library libssl.so.1.0.1

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











up vote
0
down vote

favorite












Running a system that only has full support for OpenSSL version 0.9.8.



Installed in parallel is OpenSSL 1.0.1 libraries (Supported by Distro)



Git still preferentially uses the 0.9.8 libraries but we need it to use 1.0.1.



Can Git be built from source to use libssl.so.1.0.0 libraries so we can interact with https://github.com using TLS v1.2 ?



For E.g:




/usr/lib64/git/git-http-fetch -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6c78000)
/usr/lib64/git/git-http-push -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
/usr/lib64/git/git-imap-send -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff7d56000)
/usr/lib64/git/git-remote-ftp -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
/usr/lib64/git/git-remote-ftps -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
/usr/lib64/git/git-remote-http -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
/usr/lib64/git/git-remote-https -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)



Need to link to libssl.so.1.0.0







share|improve this question

























    up vote
    0
    down vote

    favorite












    Running a system that only has full support for OpenSSL version 0.9.8.



    Installed in parallel is OpenSSL 1.0.1 libraries (Supported by Distro)



    Git still preferentially uses the 0.9.8 libraries but we need it to use 1.0.1.



    Can Git be built from source to use libssl.so.1.0.0 libraries so we can interact with https://github.com using TLS v1.2 ?



    For E.g:




    /usr/lib64/git/git-http-fetch -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6c78000)
    /usr/lib64/git/git-http-push -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
    /usr/lib64/git/git-imap-send -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff7d56000)
    /usr/lib64/git/git-remote-ftp -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
    /usr/lib64/git/git-remote-ftps -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
    /usr/lib64/git/git-remote-http -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
    /usr/lib64/git/git-remote-https -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)



    Need to link to libssl.so.1.0.0







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Running a system that only has full support for OpenSSL version 0.9.8.



      Installed in parallel is OpenSSL 1.0.1 libraries (Supported by Distro)



      Git still preferentially uses the 0.9.8 libraries but we need it to use 1.0.1.



      Can Git be built from source to use libssl.so.1.0.0 libraries so we can interact with https://github.com using TLS v1.2 ?



      For E.g:




      /usr/lib64/git/git-http-fetch -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6c78000)
      /usr/lib64/git/git-http-push -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
      /usr/lib64/git/git-imap-send -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff7d56000)
      /usr/lib64/git/git-remote-ftp -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
      /usr/lib64/git/git-remote-ftps -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
      /usr/lib64/git/git-remote-http -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
      /usr/lib64/git/git-remote-https -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)



      Need to link to libssl.so.1.0.0







      share|improve this question













      Running a system that only has full support for OpenSSL version 0.9.8.



      Installed in parallel is OpenSSL 1.0.1 libraries (Supported by Distro)



      Git still preferentially uses the 0.9.8 libraries but we need it to use 1.0.1.



      Can Git be built from source to use libssl.so.1.0.0 libraries so we can interact with https://github.com using TLS v1.2 ?



      For E.g:




      /usr/lib64/git/git-http-fetch -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6c78000)
      /usr/lib64/git/git-http-push -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
      /usr/lib64/git/git-imap-send -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff7d56000)
      /usr/lib64/git/git-remote-ftp -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
      /usr/lib64/git/git-remote-ftps -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
      /usr/lib64/git/git-remote-http -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)
      /usr/lib64/git/git-remote-https -> libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007ffff6a4d000)



      Need to link to libssl.so.1.0.0









      share|improve this question












      share|improve this question




      share|improve this question








      edited Apr 18 at 14:39
























      asked Apr 18 at 13:13









      Bee Min

      158




      158




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          This seemed to work (for testing purposes)
          With thanks to
          Shawna Jean



          Building Git against the libraries we wanted.



          export LD_LIBRARY_PATH=~/git-test-inst/lib
          mkdir git-test-inst

          cd git-test-inst/
          wget https://dl.uxnr.de/mirror/curl/curl-7.59.0.tar.gz
          wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
          wget https://github.com/git/git/archive/v2.16.3.tar.gz
          mv v2.16.3 git-2.16.3.tar.gz

          tar -xf openssl-1.1.0h.tar.gz
          cd openssl-1.1.0h
          ./config --prefix=/home/$USER/git-test-inst
          make -j16
          make -j16 install
          cd ../

          tar xf curl-7.59.0.tar.gz
          cd curl-7.59.0
          ./configure --with-ssl=/home/$USER/git-test-inst/ --prefix=/home/$USER/git-test-inst/
          make -j16
          make install
          ldd /home/$USER/git-test-inst/lib/libcurl.so.4.5.0
          cd ..

          tar xf git-2.16.3.tar.gz
          cd git-2.16.3
          make configure
          ./configure --prefix=/home/$USER/git-test-inst/ --with-openssl=/home/$USER/git-test-inst/ --with-curl=/home/$USER/git-test-inst/
          make -j16
          make install
          ldd /home/$USER/git-test-inst/libexec/git-core/git-remote-https


          And the tested against repos Github.com






          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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f438504%2fcompile-git-to-use-openssl-library-libssl-so-1-0-1%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            This seemed to work (for testing purposes)
            With thanks to
            Shawna Jean



            Building Git against the libraries we wanted.



            export LD_LIBRARY_PATH=~/git-test-inst/lib
            mkdir git-test-inst

            cd git-test-inst/
            wget https://dl.uxnr.de/mirror/curl/curl-7.59.0.tar.gz
            wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
            wget https://github.com/git/git/archive/v2.16.3.tar.gz
            mv v2.16.3 git-2.16.3.tar.gz

            tar -xf openssl-1.1.0h.tar.gz
            cd openssl-1.1.0h
            ./config --prefix=/home/$USER/git-test-inst
            make -j16
            make -j16 install
            cd ../

            tar xf curl-7.59.0.tar.gz
            cd curl-7.59.0
            ./configure --with-ssl=/home/$USER/git-test-inst/ --prefix=/home/$USER/git-test-inst/
            make -j16
            make install
            ldd /home/$USER/git-test-inst/lib/libcurl.so.4.5.0
            cd ..

            tar xf git-2.16.3.tar.gz
            cd git-2.16.3
            make configure
            ./configure --prefix=/home/$USER/git-test-inst/ --with-openssl=/home/$USER/git-test-inst/ --with-curl=/home/$USER/git-test-inst/
            make -j16
            make install
            ldd /home/$USER/git-test-inst/libexec/git-core/git-remote-https


            And the tested against repos Github.com






            share|improve this answer



























              up vote
              0
              down vote













              This seemed to work (for testing purposes)
              With thanks to
              Shawna Jean



              Building Git against the libraries we wanted.



              export LD_LIBRARY_PATH=~/git-test-inst/lib
              mkdir git-test-inst

              cd git-test-inst/
              wget https://dl.uxnr.de/mirror/curl/curl-7.59.0.tar.gz
              wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
              wget https://github.com/git/git/archive/v2.16.3.tar.gz
              mv v2.16.3 git-2.16.3.tar.gz

              tar -xf openssl-1.1.0h.tar.gz
              cd openssl-1.1.0h
              ./config --prefix=/home/$USER/git-test-inst
              make -j16
              make -j16 install
              cd ../

              tar xf curl-7.59.0.tar.gz
              cd curl-7.59.0
              ./configure --with-ssl=/home/$USER/git-test-inst/ --prefix=/home/$USER/git-test-inst/
              make -j16
              make install
              ldd /home/$USER/git-test-inst/lib/libcurl.so.4.5.0
              cd ..

              tar xf git-2.16.3.tar.gz
              cd git-2.16.3
              make configure
              ./configure --prefix=/home/$USER/git-test-inst/ --with-openssl=/home/$USER/git-test-inst/ --with-curl=/home/$USER/git-test-inst/
              make -j16
              make install
              ldd /home/$USER/git-test-inst/libexec/git-core/git-remote-https


              And the tested against repos Github.com






              share|improve this answer

























                up vote
                0
                down vote










                up vote
                0
                down vote









                This seemed to work (for testing purposes)
                With thanks to
                Shawna Jean



                Building Git against the libraries we wanted.



                export LD_LIBRARY_PATH=~/git-test-inst/lib
                mkdir git-test-inst

                cd git-test-inst/
                wget https://dl.uxnr.de/mirror/curl/curl-7.59.0.tar.gz
                wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
                wget https://github.com/git/git/archive/v2.16.3.tar.gz
                mv v2.16.3 git-2.16.3.tar.gz

                tar -xf openssl-1.1.0h.tar.gz
                cd openssl-1.1.0h
                ./config --prefix=/home/$USER/git-test-inst
                make -j16
                make -j16 install
                cd ../

                tar xf curl-7.59.0.tar.gz
                cd curl-7.59.0
                ./configure --with-ssl=/home/$USER/git-test-inst/ --prefix=/home/$USER/git-test-inst/
                make -j16
                make install
                ldd /home/$USER/git-test-inst/lib/libcurl.so.4.5.0
                cd ..

                tar xf git-2.16.3.tar.gz
                cd git-2.16.3
                make configure
                ./configure --prefix=/home/$USER/git-test-inst/ --with-openssl=/home/$USER/git-test-inst/ --with-curl=/home/$USER/git-test-inst/
                make -j16
                make install
                ldd /home/$USER/git-test-inst/libexec/git-core/git-remote-https


                And the tested against repos Github.com






                share|improve this answer















                This seemed to work (for testing purposes)
                With thanks to
                Shawna Jean



                Building Git against the libraries we wanted.



                export LD_LIBRARY_PATH=~/git-test-inst/lib
                mkdir git-test-inst

                cd git-test-inst/
                wget https://dl.uxnr.de/mirror/curl/curl-7.59.0.tar.gz
                wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
                wget https://github.com/git/git/archive/v2.16.3.tar.gz
                mv v2.16.3 git-2.16.3.tar.gz

                tar -xf openssl-1.1.0h.tar.gz
                cd openssl-1.1.0h
                ./config --prefix=/home/$USER/git-test-inst
                make -j16
                make -j16 install
                cd ../

                tar xf curl-7.59.0.tar.gz
                cd curl-7.59.0
                ./configure --with-ssl=/home/$USER/git-test-inst/ --prefix=/home/$USER/git-test-inst/
                make -j16
                make install
                ldd /home/$USER/git-test-inst/lib/libcurl.so.4.5.0
                cd ..

                tar xf git-2.16.3.tar.gz
                cd git-2.16.3
                make configure
                ./configure --prefix=/home/$USER/git-test-inst/ --with-openssl=/home/$USER/git-test-inst/ --with-curl=/home/$USER/git-test-inst/
                make -j16
                make install
                ldd /home/$USER/git-test-inst/libexec/git-core/git-remote-https


                And the tested against repos Github.com







                share|improve this answer















                share|improve this answer



                share|improve this answer








                edited Aug 2 at 20:27









                riskcog

                31




                31











                answered Apr 19 at 13:17









                Bee Min

                158




                158






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438504%2fcompile-git-to-use-openssl-library-libssl-so-1-0-1%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

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

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?