Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-995

Provide a way to build tools from source on OS X 10.11

    • Type: Icon: Question Question
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: All Tools
    • Labels:
    • Environment:
      OSX 10.11.1 El Capitan

      When I try to compile mongorestore with ssl support on OSX 10.11.1 I get the following error:

      ```
      ~/Documents/projects/mongo-tools$ go build -o bin/mongorestore -tags "ssl" mongorestore/main/mongorestore.go

      1. github.com/spacemonkeygo/openssl
        vendor/src/github.com/spacemonkeygo/openssl/bio.go:21:10: fatal error: 'openssl/bio.h' file not found
        #include <openssl/bio.h>
        ^
        1 error generated.
        ```

      I assume this is related to the issue that Apple removed shipping openssl with 10.11

      ```
      $ ls /usr/include/openssl
      ls: /usr/include/openssl: No such file or directory
      ```

      I installed openssl with brew and also force-linked it
      ```
      brew unlink openssl && brew link openssl --force
      ```

      But that still produces me the error with the missing openssl header include.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            afu@nezasa.com Andreas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: