Are CentOS 7 binaries the same of Ubuntu or any other GNU distribution?

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












1















I need to compile and run binaries on CentOS 7 but I'm having hard time running my wrapper app due to Python versions and other issues. If I compile and test binaries on Ubuntu (or any other distribution) and then move my binaries to an online CentOS 7 would I run into any binaries-platform problem?



PS: Binaries I am running are of Google's cwebp and ImageMagick. My wrapper is a Node function for AWS Lambda.










share|improve this question


























    1















    I need to compile and run binaries on CentOS 7 but I'm having hard time running my wrapper app due to Python versions and other issues. If I compile and test binaries on Ubuntu (or any other distribution) and then move my binaries to an online CentOS 7 would I run into any binaries-platform problem?



    PS: Binaries I am running are of Google's cwebp and ImageMagick. My wrapper is a Node function for AWS Lambda.










    share|improve this question
























      1












      1








      1








      I need to compile and run binaries on CentOS 7 but I'm having hard time running my wrapper app due to Python versions and other issues. If I compile and test binaries on Ubuntu (or any other distribution) and then move my binaries to an online CentOS 7 would I run into any binaries-platform problem?



      PS: Binaries I am running are of Google's cwebp and ImageMagick. My wrapper is a Node function for AWS Lambda.










      share|improve this question














      I need to compile and run binaries on CentOS 7 but I'm having hard time running my wrapper app due to Python versions and other issues. If I compile and test binaries on Ubuntu (or any other distribution) and then move my binaries to an online CentOS 7 would I run into any binaries-platform problem?



      PS: Binaries I am running are of Google's cwebp and ImageMagick. My wrapper is a Node function for AWS Lambda.







      centos compiling aws binary






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 3 at 13:14









      Lee MoeLee Moe

      61




      61




















          1 Answer
          1






          active

          oldest

          votes


















          1














          Short answer is that binaries from one system are not guaranteed to run correctly on another system, but they may work. They may also appear to work, but have issues.



          Longer answer is that it depends on how those binaries were linked. Statically linked binaries have a better chance of running than dynamically linked binaries. Dynamically linked binaries will have a lot of dependencies that may not be satisfiable by a different distribution.



          In your particular case, your best bet is to create a CentOS 7 virtual machine or container and create the binaries there. If you can, generate statically linked binaries, then deploy those to your restricted production system.






          share|improve this answer























          • Thanks for the answer. There seem to be no short way. I'm doing what you said: compiling on CentOS without testing (I can't test without my wrapper) and then moving the binaries to my host. I hope it works!

            – Lee Moe
            Jan 4 at 16:13











          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%2f492239%2fare-centos-7-binaries-the-same-of-ubuntu-or-any-other-gnu-distribution%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









          1














          Short answer is that binaries from one system are not guaranteed to run correctly on another system, but they may work. They may also appear to work, but have issues.



          Longer answer is that it depends on how those binaries were linked. Statically linked binaries have a better chance of running than dynamically linked binaries. Dynamically linked binaries will have a lot of dependencies that may not be satisfiable by a different distribution.



          In your particular case, your best bet is to create a CentOS 7 virtual machine or container and create the binaries there. If you can, generate statically linked binaries, then deploy those to your restricted production system.






          share|improve this answer























          • Thanks for the answer. There seem to be no short way. I'm doing what you said: compiling on CentOS without testing (I can't test without my wrapper) and then moving the binaries to my host. I hope it works!

            – Lee Moe
            Jan 4 at 16:13
















          1














          Short answer is that binaries from one system are not guaranteed to run correctly on another system, but they may work. They may also appear to work, but have issues.



          Longer answer is that it depends on how those binaries were linked. Statically linked binaries have a better chance of running than dynamically linked binaries. Dynamically linked binaries will have a lot of dependencies that may not be satisfiable by a different distribution.



          In your particular case, your best bet is to create a CentOS 7 virtual machine or container and create the binaries there. If you can, generate statically linked binaries, then deploy those to your restricted production system.






          share|improve this answer























          • Thanks for the answer. There seem to be no short way. I'm doing what you said: compiling on CentOS without testing (I can't test without my wrapper) and then moving the binaries to my host. I hope it works!

            – Lee Moe
            Jan 4 at 16:13














          1












          1








          1







          Short answer is that binaries from one system are not guaranteed to run correctly on another system, but they may work. They may also appear to work, but have issues.



          Longer answer is that it depends on how those binaries were linked. Statically linked binaries have a better chance of running than dynamically linked binaries. Dynamically linked binaries will have a lot of dependencies that may not be satisfiable by a different distribution.



          In your particular case, your best bet is to create a CentOS 7 virtual machine or container and create the binaries there. If you can, generate statically linked binaries, then deploy those to your restricted production system.






          share|improve this answer













          Short answer is that binaries from one system are not guaranteed to run correctly on another system, but they may work. They may also appear to work, but have issues.



          Longer answer is that it depends on how those binaries were linked. Statically linked binaries have a better chance of running than dynamically linked binaries. Dynamically linked binaries will have a lot of dependencies that may not be satisfiable by a different distribution.



          In your particular case, your best bet is to create a CentOS 7 virtual machine or container and create the binaries there. If you can, generate statically linked binaries, then deploy those to your restricted production system.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 3 at 15:14









          peterupeteru

          116




          116












          • Thanks for the answer. There seem to be no short way. I'm doing what you said: compiling on CentOS without testing (I can't test without my wrapper) and then moving the binaries to my host. I hope it works!

            – Lee Moe
            Jan 4 at 16:13


















          • Thanks for the answer. There seem to be no short way. I'm doing what you said: compiling on CentOS without testing (I can't test without my wrapper) and then moving the binaries to my host. I hope it works!

            – Lee Moe
            Jan 4 at 16:13

















          Thanks for the answer. There seem to be no short way. I'm doing what you said: compiling on CentOS without testing (I can't test without my wrapper) and then moving the binaries to my host. I hope it works!

          – Lee Moe
          Jan 4 at 16:13






          Thanks for the answer. There seem to be no short way. I'm doing what you said: compiling on CentOS without testing (I can't test without my wrapper) and then moving the binaries to my host. I hope it works!

          – Lee Moe
          Jan 4 at 16:13


















          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%2f492239%2fare-centos-7-binaries-the-same-of-ubuntu-or-any-other-gnu-distribution%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?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?