Skip to content

Missing @loader_path/../lib in openstudio.bundle #5574

@macumber

Description

@macumber

Description

openstudio.bundle is installed in ./Ruby and libopenstudiolib.dylib is installed in ./lib. However, there is no @loader_path/../lib in openstudio.bundle which means that trying to load openstudio in system ruby fails.

Current Behavior

ruby -I /path/to/os/Ruby/ -e "require 'openstudio' will fail due to libopenstudiolib.dylib not found

Expected Behavior

@loader_path/../lib in openstudio.bundle will allow libopenstudiolib.dylib to be found

Steps to reproduce

  1. ruby -I /path/to/os/Ruby/ -e "require 'openstudio'

Possible Solution

Could possibly set this similar to where it is set for Python bindings: https://github.com/NREL/OpenStudio/blob/develop/ProjectMacros.cmake#L392

Operating System affected

macOS arm64, macOS x86_64

Environment

N/A

Version of OpenStudio

3.11.0-rc2

Context

No response

Metadata

Metadata

Assignees

Labels

TriageIssue needs to be assessed and labeled, further information on reported might be needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions