How to install libssl-dev ,libffi-dev on Mac os?











up vote
11
down vote

favorite
3












I can install libssl-dev and libffi-dev on Ubuntu with the command apt-get install libssl-dev libffi-dev, But I can't install on Mac; I have tried using the command: brew install libssl-dev libffi but not working for me.



What do I need to do to get homebrew to install this?










share|improve this question
























  • brew install libffi stackoverflow.com/a/44707470/32453
    – rogerdpack
    Feb 22 at 16:14















up vote
11
down vote

favorite
3












I can install libssl-dev and libffi-dev on Ubuntu with the command apt-get install libssl-dev libffi-dev, But I can't install on Mac; I have tried using the command: brew install libssl-dev libffi but not working for me.



What do I need to do to get homebrew to install this?










share|improve this question
























  • brew install libffi stackoverflow.com/a/44707470/32453
    – rogerdpack
    Feb 22 at 16:14













up vote
11
down vote

favorite
3









up vote
11
down vote

favorite
3






3





I can install libssl-dev and libffi-dev on Ubuntu with the command apt-get install libssl-dev libffi-dev, But I can't install on Mac; I have tried using the command: brew install libssl-dev libffi but not working for me.



What do I need to do to get homebrew to install this?










share|improve this question















I can install libssl-dev and libffi-dev on Ubuntu with the command apt-get install libssl-dev libffi-dev, But I can't install on Mac; I have tried using the command: brew install libssl-dev libffi but not working for me.



What do I need to do to get homebrew to install this?







macos homebrew






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 20 '16 at 3:15









Simon Sheehan

7,582124168




7,582124168










asked Jun 15 '16 at 4:05









Jackie

56113




56113












  • brew install libffi stackoverflow.com/a/44707470/32453
    – rogerdpack
    Feb 22 at 16:14


















  • brew install libffi stackoverflow.com/a/44707470/32453
    – rogerdpack
    Feb 22 at 16:14
















brew install libffi stackoverflow.com/a/44707470/32453
– rogerdpack
Feb 22 at 16:14




brew install libffi stackoverflow.com/a/44707470/32453
– rogerdpack
Feb 22 at 16:14










2 Answers
2






active

oldest

votes

















up vote
16
down vote













Those particular packages do not exist under those names on both MacPorts and Homebrew - hence the errors you are receiving. In order to install these particular packages on OS X, you will want to use openssl. The following command should help you out:



brew install openssl


If you already have openssl installed, try running the following in order to repair it - some users over on Stack Overflow reported this as a fix when trying to get Django working.



brew unlink openssl && brew link openssl --force





share|improve this answer























  • How do you do it without brew and without sudo?
    – tommy.carstensen
    Mar 24 '17 at 22:40


















up vote
1
down vote













I was trying to get Crystal off the ground on MacOS Mojave and ran into a similar issue.



This is the error message I was seeing:



Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/mymbp/.cache/crystal/crystal-run-server.tmp'  -rdynamic  
`command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs
--silence-errors libcrypto || printf %s '-lcrypto'` -lz -lpcre -lgc -lpthread
/usr/local/Cellar/crystal/0.27.0/src/ext/libcrystal.a -levent -liconv -ldl -
L/usr/lib -L/usr/local/lib`


Searching /usr/local/lib I noticed there was no mention of libssl.



So I added a symlink and that seemed to fix it.



ln -s /usr/local/Cellar/openssl/1.0.2p/lib/libssl.dylib /usr/local/lib/


Note: The current version of openssl that brew drops is 1.0.2p, your version may be different.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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%2fsuperuser.com%2fquestions%2f1089390%2fhow-to-install-libssl-dev-libffi-dev-on-mac-os%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    16
    down vote













    Those particular packages do not exist under those names on both MacPorts and Homebrew - hence the errors you are receiving. In order to install these particular packages on OS X, you will want to use openssl. The following command should help you out:



    brew install openssl


    If you already have openssl installed, try running the following in order to repair it - some users over on Stack Overflow reported this as a fix when trying to get Django working.



    brew unlink openssl && brew link openssl --force





    share|improve this answer























    • How do you do it without brew and without sudo?
      – tommy.carstensen
      Mar 24 '17 at 22:40















    up vote
    16
    down vote













    Those particular packages do not exist under those names on both MacPorts and Homebrew - hence the errors you are receiving. In order to install these particular packages on OS X, you will want to use openssl. The following command should help you out:



    brew install openssl


    If you already have openssl installed, try running the following in order to repair it - some users over on Stack Overflow reported this as a fix when trying to get Django working.



    brew unlink openssl && brew link openssl --force





    share|improve this answer























    • How do you do it without brew and without sudo?
      – tommy.carstensen
      Mar 24 '17 at 22:40













    up vote
    16
    down vote










    up vote
    16
    down vote









    Those particular packages do not exist under those names on both MacPorts and Homebrew - hence the errors you are receiving. In order to install these particular packages on OS X, you will want to use openssl. The following command should help you out:



    brew install openssl


    If you already have openssl installed, try running the following in order to repair it - some users over on Stack Overflow reported this as a fix when trying to get Django working.



    brew unlink openssl && brew link openssl --force





    share|improve this answer














    Those particular packages do not exist under those names on both MacPorts and Homebrew - hence the errors you are receiving. In order to install these particular packages on OS X, you will want to use openssl. The following command should help you out:



    brew install openssl


    If you already have openssl installed, try running the following in order to repair it - some users over on Stack Overflow reported this as a fix when trying to get Django working.



    brew unlink openssl && brew link openssl --force






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 23 '17 at 12:41









    Community

    1




    1










    answered Jun 20 '16 at 3:21









    Simon Sheehan

    7,582124168




    7,582124168












    • How do you do it without brew and without sudo?
      – tommy.carstensen
      Mar 24 '17 at 22:40


















    • How do you do it without brew and without sudo?
      – tommy.carstensen
      Mar 24 '17 at 22:40
















    How do you do it without brew and without sudo?
    – tommy.carstensen
    Mar 24 '17 at 22:40




    How do you do it without brew and without sudo?
    – tommy.carstensen
    Mar 24 '17 at 22:40












    up vote
    1
    down vote













    I was trying to get Crystal off the ground on MacOS Mojave and ran into a similar issue.



    This is the error message I was seeing:



    Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/mymbp/.cache/crystal/crystal-run-server.tmp'  -rdynamic  
    `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs
    --silence-errors libcrypto || printf %s '-lcrypto'` -lz -lpcre -lgc -lpthread
    /usr/local/Cellar/crystal/0.27.0/src/ext/libcrystal.a -levent -liconv -ldl -
    L/usr/lib -L/usr/local/lib`


    Searching /usr/local/lib I noticed there was no mention of libssl.



    So I added a symlink and that seemed to fix it.



    ln -s /usr/local/Cellar/openssl/1.0.2p/lib/libssl.dylib /usr/local/lib/


    Note: The current version of openssl that brew drops is 1.0.2p, your version may be different.






    share|improve this answer

























      up vote
      1
      down vote













      I was trying to get Crystal off the ground on MacOS Mojave and ran into a similar issue.



      This is the error message I was seeing:



      Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/mymbp/.cache/crystal/crystal-run-server.tmp'  -rdynamic  
      `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs
      --silence-errors libcrypto || printf %s '-lcrypto'` -lz -lpcre -lgc -lpthread
      /usr/local/Cellar/crystal/0.27.0/src/ext/libcrystal.a -levent -liconv -ldl -
      L/usr/lib -L/usr/local/lib`


      Searching /usr/local/lib I noticed there was no mention of libssl.



      So I added a symlink and that seemed to fix it.



      ln -s /usr/local/Cellar/openssl/1.0.2p/lib/libssl.dylib /usr/local/lib/


      Note: The current version of openssl that brew drops is 1.0.2p, your version may be different.






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        I was trying to get Crystal off the ground on MacOS Mojave and ran into a similar issue.



        This is the error message I was seeing:



        Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/mymbp/.cache/crystal/crystal-run-server.tmp'  -rdynamic  
        `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs
        --silence-errors libcrypto || printf %s '-lcrypto'` -lz -lpcre -lgc -lpthread
        /usr/local/Cellar/crystal/0.27.0/src/ext/libcrystal.a -levent -liconv -ldl -
        L/usr/lib -L/usr/local/lib`


        Searching /usr/local/lib I noticed there was no mention of libssl.



        So I added a symlink and that seemed to fix it.



        ln -s /usr/local/Cellar/openssl/1.0.2p/lib/libssl.dylib /usr/local/lib/


        Note: The current version of openssl that brew drops is 1.0.2p, your version may be different.






        share|improve this answer












        I was trying to get Crystal off the ground on MacOS Mojave and ran into a similar issue.



        This is the error message I was seeing:



        Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/mymbp/.cache/crystal/crystal-run-server.tmp'  -rdynamic  
        `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs
        --silence-errors libcrypto || printf %s '-lcrypto'` -lz -lpcre -lgc -lpthread
        /usr/local/Cellar/crystal/0.27.0/src/ext/libcrystal.a -levent -liconv -ldl -
        L/usr/lib -L/usr/local/lib`


        Searching /usr/local/lib I noticed there was no mention of libssl.



        So I added a symlink and that seemed to fix it.



        ln -s /usr/local/Cellar/openssl/1.0.2p/lib/libssl.dylib /usr/local/lib/


        Note: The current version of openssl that brew drops is 1.0.2p, your version may be different.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 at 11:12









        kroolk

        1112




        1112






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1089390%2fhow-to-install-libssl-dev-libffi-dev-on-mac-os%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

            Список кардиналов, возведённых папой римским Каликстом III

            Deduzione

            Mysql.sock missing - “Can't connect to local MySQL server through socket”