Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcing Conda environment during R package compilation #240

Closed
m-wells opened this issue Apr 19, 2018 · 2 comments
Closed

Sourcing Conda environment during R package compilation #240

m-wells opened this issue Apr 19, 2018 · 2 comments

Comments

@m-wells
Copy link

m-wells commented Apr 19, 2018

I encounter an issue while installing an R package. I've install the histogram package like so R"install.library('histogram')" without an issue. However, when I do R"install.library('ftnonpar')" it gives me

x86_64-conda_cos6-linux-gnu-gfortran   -fpic  -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -I/home/mark/.julia/v0.6/Conda/deps/usr/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix  -c NPSPCDN.f -o NPSPCDN.o
make: x86_64-conda_cos6-linux-gnu-gfortran: Command not found
make: *** [/home/mark/.julia/v0.6/Conda/deps/usr/lib/R/etc/Makeconf:184: NPSPCDN.o] Error 127
ERROR: compilation failed for package ‘ftnonpar’
* removing ‘/home/mark/.julia/v0.6/Conda/deps/usr/lib/R/library/ftnonpar’

To fix this I located my Conda activate script which is at

/home/mark/.julia/v0.6/Conda/deps/usr/bin/activate

Then I drop out of julia, run source activate, restart julia, and do

using RCall
R"install.library('ftnonpar')"

and it installs and I can use it.

Anyway, maybe this can be useful to someone else.

@randy3k
Copy link
Member

randy3k commented Apr 19, 2018

👍 @m-wells
I could imagine someone will encounter similar issues sooner or later.

@m-wells
Copy link
Author

m-wells commented Apr 19, 2018

To expand upon the above. The reason ftnonpar needed me to source the Conda environment and the histogram package did not is because ftnonpar has NeedsCompilation yes while histogram has NeedsCompilation no.

@palday palday pinned this issue Jul 16, 2024
@palday palday closed this as completed Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants