Git Product home page Git Product logo

Comments (3)

YingMa0107 avatar YingMa0107 commented on August 21, 2024

Hi @zamlerd

Based on your error, I guess that the installed compiler on your MAC does not support OpenMP. So you have to install the compile which supports the OpenMP. I recommend you to install the compilers such as gcc or clang from homebrew, and after install them, you have to modify variables in your personal makeovers file (~/.R/Makevars). Here is an example of the ~/.R/Makevars files when using gcc as the compiler on the macOS.

VER=-11.0.3
CC=gcc$(VER)
CXX=g++$(VER)
CFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion
CXXFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion
FLIBS=-L/usr/local/Cellar/gcc/11.0.3/lib/gcc/11

The first line is the gcc version on your computer (type gcc --version on your terminal, you will got the information).And you also have to modify the last line according to your version of gcc.

You can use the homebrew to install it, i.e. brew install gcc

If this does not help, here are also other solutions you can follow: RcppCore/RcppArmadillo#143

Hope it helps!

Best,
Ying

from idea.

zamlerd avatar zamlerd commented on August 21, 2024

Hey Ying,

After trying both methods above I am now getting a new error

devtools::install_github('xzhoulab/iDEA')
Registered S3 method overwritten by 'cli':
method from
print.boxx spatstat
Downloading GitHub repo xzhoulab/iDEA@HEAD
Error: Failed to install 'iDEA' from GitHub:
Could not find tools necessary to compile a package
Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.

I have devtools installed and can call it

from idea.

YingMa0107 avatar YingMa0107 commented on August 21, 2024

Hi @zamlerd,

Could you please call the function pkgbuild::check_build_tools(debug = TRUE) to see the output?
For example, this is the output of mine:

pkgbuild::check_build_tools(debug = TRUE)
Trying to compile a simple C file
\Running /usr/lib/R/bin/R CMD SHLIB foo.c
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -O3 -pipe -g -c foo.c -o foo.o
gcc -std=gnu99 -shared -o foo.so foo.o -L/usr/lib/R/lib -lR

Your system is ready to build packages!

Just want to check if you have installed the tools necessary to compile the package.

Thanks!

from idea.

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.