Skip to content

Installation error on Mac #45

@JingyuHe

Description

@JingyuHe

I’m writing to report a compiling error of the R osqp package, when I try to install it on a Mac, I saw the following error message

Error: package or namespace load failed for ‘osqp’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/opt/homebrew/lib/R/4.4/site-library/00LOCK-osqp/00new/osqp/libs/[osqp.so](https://github.com/osqp/osqp-r/issues/osqp.so)':
  dlopen(/opt/homebrew/lib/R/4.4/site-library/00LOCK-osqp/00new/osqp/libs/[osqp.so](https://github.com/osqp/osqp-r/issues/osqp.so), 0x0006): symbol not found in flat namespace '_csc_matrix'
Error: loading failed
Execution halted
ERROR: loading failed

It looks to be some error related to the symbol of sparse matrix.

I’m using R version 4.4.3, LLVM compiler 20.1.2. I have been using this package for a while, it worked before (same package version) but not recently. I guess it might be related to the latest version of the compiler or the R.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions