Git Product home page Git Product logo

Comments (7)

emjbishop avatar emjbishop commented on July 29, 2024 1

I have two mac users who also experience the ld: library 'crypto' not found error (no solution yet). As far as I can tell the 'crypto' package is related to cryptocurrency so this seems really odd (perhaps sketchy?).

from cytoml.

davnovak avatar davnovak commented on July 29, 2024 1

Installing OpenSSL and updating PATH resolves this issue on at least some machines.

In terminal:

brew install openssl

In R session:

Sys.setenv(LIBRARY_PATH = '/opt/homebrew/lib')
Sys.setenv(LDFLAGS = '-L/opt/homebrew/lib')
Sys.setenv(CPPFLAGS = '-I/opt/homebrew/include')

If this works consistently, it should enable the package authors to include Apple Silicon install instructions and to provide a macOS arm64 binary on Bioconductor if they choose to.

from cytoml.

spribitzer avatar spribitzer commented on July 29, 2024

We have been running into this issue as well and would appreciate a fix. Installation from source (bioconductor, github) yields the following error message:

clang++ -arch arm64 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o CytoML.so cpp11.o parseFlowJoWorkspace.o /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cytolib/lib/libcytolib.a /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhdf5lib/lib/libhdf5_cpp.a /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhdf5lib/lib/libhdf5.a -L/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhdf5lib/lib -lcrypto -lcurl -lsz -laec -lz -ldl -lm -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lxml2 -lz -lpthread -licucore -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: ignoring duplicate libraries: '-lm', '-lz'
ld: library 'crypto' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [CytoML.so] Error 1
ERROR: compilation failed for package ‘CytoML’

I have tried sourcing CytoML.so and building CytoML on other machines, but was not successful:

  • If the package was built on Macs with x86 architecture the package won't load with a complaint that the wrong architecture was used.
  • If I use an R docker image (ubuntu), and build CytoML, I get an arm64 built, but library(CytoML) then errors with CytoML.so' (not a mach-o file)

from cytoml.

Tetsuichi avatar Tetsuichi commented on July 29, 2024

I am using the M3 chip and I too am having trouble installing it with the same error.

from cytoml.

davnovak avatar davnovak commented on July 29, 2024

Using an Apple M1 chip with macOS Sonoma 14.1.1, R version 4.3.3., I also have this problem, also with ld: library 'crypto' not found. Using the x86_64 version of R does not fix this problem (same error message). Any work-arounds for this?

from cytoml.

Tetsuichi avatar Tetsuichi commented on July 29, 2024

Installing OpenSSL and updating PATH resolves this issue on at least some machines.

In terminal:

brew install openssl

In R session:

Sys.setenv(LIBRARY_PATH = '/opt/homebrew/lib')
Sys.setenv(LDFLAGS = '-L/opt/homebrew/lib')
Sys.setenv(CPPFLAGS = '-I/opt/homebrew/include')

If this works consistently, it should enable the package authors to include Apple Silicon install instructions and to provide a macOS arm64 binary on Bioconductor if they choose to.

This worked! Thank you!

from cytoml.

spribitzer avatar spribitzer commented on July 29, 2024

@davnovak thanks. That worked for me. Adding the PATHs worked. Interestingly, most of the times that I have brew dependencies, I can launch R from the command line and compile from source then. But that did not work for CytoML.
But manually setting the paths did! So thank you, learned something new.

from cytoml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.