{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/1632","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/1632/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/1632/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/1632/events","html_url":"https://github.com/dotnet/cli/issues/1632","id":137449341,"number":1632,"title":"`dnx restore` System.Security.Cryptography.Native exception fix on OSX with Macports","user":{"login":"lynxluna","id":76807,"avatar_url":"https://avatars.githubusercontent.com/u/76807?v=3","gravatar_id":"","url":"https://api.github.com/users/lynxluna","html_url":"https://github.com/lynxluna","followers_url":"https://api.github.com/users/lynxluna/followers","following_url":"https://api.github.com/users/lynxluna/following{/other_user}","gists_url":"https://api.github.com/users/lynxluna/gists{/gist_id}","starred_url":"https://api.github.com/users/lynxluna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynxluna/subscriptions","organizations_url":"https://api.github.com/users/lynxluna/orgs","repos_url":"https://api.github.com/users/lynxluna/repos","events_url":"https://api.github.com/users/lynxluna/events{/privacy}","received_events_url":"https://api.github.com/users/lynxluna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T02:41:57Z","updated_at":"2016-03-01T08:44:35Z","closed_at":null,"body":"I think it'll be beneficial for people who do not have homebrew in their OSX system, I know plenty of users still using macports.\r\n\r\nSo whenever I install dotnet/cli I need to link the OpenSSL 1.0.2. But how to do it without using homebrew?\r\n\r\nFirst of all, this is true for all system with homebrew or not, the installer will install to `/usr/local/share/dotnet` and the installer is missing one script so we need to add some compilers to the `PATH`\r\n\r\n```console\r\n% sudo ln -s /usr/local/share/dotnet/bin/{dotnet,fsc,vbc,csc} /usr/local/bin/\r\n```\r\n\r\nand then create a directory and then link the `libcrypto` and `libssl`\r\n\r\n```\r\n% sudo mkdir -p /usr/local/opt/openssl/lib\r\n% sudo ln -s /opt/local/lib/{libcrypto.1.0.0.dylib,libssl.1.0.0.dylib} \\\r\n    /usr/local/opt/openssl/lib\r\n```\r\n\r\nAnd `dotnet restore` command will runs as expected.\r\n\r\n**Notes**\r\nI got the path by using `otool` against the compiled dylib:\r\n\r\n```console\r\n % otool -L /usr/local/share/dotnet/bin/System.Security.Cryptography.Native.dylib\r\n/usr/local/share/dotnet/bin/System.Security.Cryptography.Native.dylib:\r\n\t@rpath/System.Security.Cryptography.Native.dylib (compatibility version 0.0.0, current version 0.0.0)\r\n\t/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t/usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\r\n\t/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)\r\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/190615115","html_url":"https://github.com/dotnet/cli/issues/1632#issuecomment-190615115","issue_url":"https://api.github.com/repos/dotnet/cli/issues/1632","id":190615115,"user":{"login":"davidfowl","id":95136,"avatar_url":"https://avatars.githubusercontent.com/u/95136?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T08:44:35Z","updated_at":"2016-03-01T08:44:35Z","body":"/cc @ellismg "}}