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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.1, 6.6.0
    • Fix Version/s: 6.6.0
    • Component/s: build, mac-app
    • Labels:
      None
    • Triage:
      Untriaged
    • Story Points:
      1
    • Is this a Regression?:
      Unknown
    • Sprint:
      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

            No work has yet been logged on this issue.

              People

              Assignee:
              arunkumar Arunkumar Senthilnathan
              Reporter:
              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