0 votes

Hello, 

When I try to load packages in a code environment, there are some packages I can load successfully (e.g., ggplot2), but others that fail. I get the error messages, as contained in the logs below:

In file included from stringdist.h:26:0,
                 from Rstringdist.c:27:
qtree.h:5:10: fatal error: omp.h: No such file or directory
 #include <omp.h>
          ^~~~~~~
compilation terminated.
make: *** [Rstringdist.o] Error 1
ERROR: compilation failed for package ‘stringdist’
* removing ‘/home/dataiku/dss/code-envs/R/env_name/R.lib/stringdist’

In install.packages(toInstall, "/home/dataiku/dss/code-envs/R/env_name/R.lib",  :
  installation of package ‘stringdist’ had non-zero exit status

Can anyone help me?

asked by
What OS are you running Dataiku on? Is it macOS? Or a flavor of Linux?
Hi Alex, I am running Dataiku on macOS. I've done a bit more investigation and I think it is a GCC related issue.

1 Answer

0 votes

Hi Mark,

Indeed this error relates to the GCC setup on your Mac.

One of the ways to solve it on macOS is to install Xcode and its command line tools. Then you can verify the installation by running: 

gcc -v

in your terminal.

Let us know if this solves your issue.

Cheers,

Alex

answered by
992 questions
1,025 answers
1,077 comments
3,154 users

©Dataiku 2012-2018 - Privacy Policy