Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-40403

curl binary fails no working @rpath on OS-X and macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.6.0
    • 6.5.1, 6.6.0
    • build, mac-app
    • None
    • Untriaged
    • 1
    • Unknown
    • Build Team 2020 Sprint 14

    Description

      This is something that was missed when https://issues.couchbase.com/browse/MB-37768 was resolved for 'cbc' binary prior to 6.5.1 GA.

      The issue is with the 'curl' binary in 6.5.1, in fact all binaries should be checked on MacOS (not just curl) by setting the couchbase bin directory first in the path.

      PATH=/Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin:$PATH

      Overview

      After installing 6.5.1 GA on a Mac, the curl executable will not work due to a @rpath issue as such none of them work after install

      /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/curl
      dyld: Library not loaded: @rpath/libssl.1.1.dylib
        Referenced from: /Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/curl
        Reason: image not found
      Abort trap: 6
      

      A quick fix to currently installed Mac deployments (should be in release notes)

      A simple fix for both MacOS 10.14.6 “Mojave” can be made as follows:

      cd /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin
      install_name_tool -add_rpath @executable_path/../lib curl

       
       
       

       
       
       

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-40403
          # Subject Branch Project Status CR V

          Activity

            People

              arunkumar Arunkumar Senthilnathan (Inactive)
              jon.strabala Jon Strabala
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty