How to install libraries (mysql connector cpp) on Mac using terminal and make things simple as in the case of...











up vote
1
down vote

favorite












I will share an example.



I had to install mysql connector c++ libraries for my project.
To install connector c++ on my Mac, i had to build it from the source code and it takes a lot of effort because you get errors sometimes and then it is troublesome, something which should have been done in a short time.



In case of Ubuntu, I just had to write one command in the terminal, and wow, everything just got done automatically.



apt-get install libmysqlcppconn7


Does anybody know any similar command in mac, using brew or macports?
I tried to find but I guess I didn't get any results to satisfaction.



And if there is not, can anyone guide me so that I can make it possible, like I think it's possible for mac, if it is possible in ubuntu.
Please guide me, an answer in a bit detail would be so much appreciated.










share|improve this question




























    up vote
    1
    down vote

    favorite












    I will share an example.



    I had to install mysql connector c++ libraries for my project.
    To install connector c++ on my Mac, i had to build it from the source code and it takes a lot of effort because you get errors sometimes and then it is troublesome, something which should have been done in a short time.



    In case of Ubuntu, I just had to write one command in the terminal, and wow, everything just got done automatically.



    apt-get install libmysqlcppconn7


    Does anybody know any similar command in mac, using brew or macports?
    I tried to find but I guess I didn't get any results to satisfaction.



    And if there is not, can anyone guide me so that I can make it possible, like I think it's possible for mac, if it is possible in ubuntu.
    Please guide me, an answer in a bit detail would be so much appreciated.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I will share an example.



      I had to install mysql connector c++ libraries for my project.
      To install connector c++ on my Mac, i had to build it from the source code and it takes a lot of effort because you get errors sometimes and then it is troublesome, something which should have been done in a short time.



      In case of Ubuntu, I just had to write one command in the terminal, and wow, everything just got done automatically.



      apt-get install libmysqlcppconn7


      Does anybody know any similar command in mac, using brew or macports?
      I tried to find but I guess I didn't get any results to satisfaction.



      And if there is not, can anyone guide me so that I can make it possible, like I think it's possible for mac, if it is possible in ubuntu.
      Please guide me, an answer in a bit detail would be so much appreciated.










      share|improve this question















      I will share an example.



      I had to install mysql connector c++ libraries for my project.
      To install connector c++ on my Mac, i had to build it from the source code and it takes a lot of effort because you get errors sometimes and then it is troublesome, something which should have been done in a short time.



      In case of Ubuntu, I just had to write one command in the terminal, and wow, everything just got done automatically.



      apt-get install libmysqlcppconn7


      Does anybody know any similar command in mac, using brew or macports?
      I tried to find but I guess I didn't get any results to satisfaction.



      And if there is not, can anyone guide me so that I can make it possible, like I think it's possible for mac, if it is possible in ubuntu.
      Please guide me, an answer in a bit detail would be so much appreciated.







      macos ubuntu terminal mysql-connector package-managers






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday

























      asked Nov 10 at 16:02









      Shray

      135




      135
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Probably the nearest thing to apt-get on a mac is brew



          Once it is set up (and this isn't difficult) "brew install mysql-connector-c++" will install on the mac






          share|improve this answer























          • Sir, thanks but I already know that. But there is no such "blah" for mysql cpp connector library
            – Shray
            Nov 10 at 16:18













          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',
          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%2f53240764%2fhow-to-install-libraries-mysql-connector-cpp-on-mac-using-terminal-and-make-th%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
          1
          down vote













          Probably the nearest thing to apt-get on a mac is brew



          Once it is set up (and this isn't difficult) "brew install mysql-connector-c++" will install on the mac






          share|improve this answer























          • Sir, thanks but I already know that. But there is no such "blah" for mysql cpp connector library
            – Shray
            Nov 10 at 16:18

















          up vote
          1
          down vote













          Probably the nearest thing to apt-get on a mac is brew



          Once it is set up (and this isn't difficult) "brew install mysql-connector-c++" will install on the mac






          share|improve this answer























          • Sir, thanks but I already know that. But there is no such "blah" for mysql cpp connector library
            – Shray
            Nov 10 at 16:18















          up vote
          1
          down vote










          up vote
          1
          down vote









          Probably the nearest thing to apt-get on a mac is brew



          Once it is set up (and this isn't difficult) "brew install mysql-connector-c++" will install on the mac






          share|improve this answer














          Probably the nearest thing to apt-get on a mac is brew



          Once it is set up (and this isn't difficult) "brew install mysql-connector-c++" will install on the mac







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 10 at 16:27

























          answered Nov 10 at 16:08









          Vorsprung

          21.2k31940




          21.2k31940












          • Sir, thanks but I already know that. But there is no such "blah" for mysql cpp connector library
            – Shray
            Nov 10 at 16:18




















          • Sir, thanks but I already know that. But there is no such "blah" for mysql cpp connector library
            – Shray
            Nov 10 at 16:18


















          Sir, thanks but I already know that. But there is no such "blah" for mysql cpp connector library
          – Shray
          Nov 10 at 16:18






          Sir, thanks but I already know that. But there is no such "blah" for mysql cpp connector library
          – Shray
          Nov 10 at 16:18




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240764%2fhow-to-install-libraries-mysql-connector-cpp-on-mac-using-terminal-and-make-th%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine