rig icon indicating copy to clipboard operation
rig copied to clipboard

Cannot compile from source on R 4.1.x cannot find make

Open gaborcsardi opened this issue 2 years ago • 1 comments

Our rtools patch is apparently not good enough.

gaborcsardi avatar May 09 '22 14:05 gaborcsardi

Hmmm, this might be a temporary problem if we don't start a new shell? We'll keep this open until I'll know for sure....

gaborcsardi avatar May 10 '22 10:05 gaborcsardi

I think I'm hitting this issue- when using R 4.02, if I try to install a package (e.g. xfun) that needs Rtools, I get Warning in system(paste(cmd, "shlib-clean")) : 'make' not found Warning in system(cmd) : 'make' not found ERROR: compilation failed for package 'xfun'

I tried running rig system update-rtools40, and get the error [ERROR] The system cannot find the path specified. (os error 3).

If it helps, I was already using R 4.2.1 with Rtools42 before I installed rig. Maybe the paths are getting mixed up between the rig-managed install of 4.02. and the original 4.2.1?

Thanks

galenholt avatar Nov 21 '22 00:11 galenholt

@galenholt For R 4.0.x you need Rtools40. rig should install this if you run

rig add rtools

You can also specify it explicitly:

rig add rtools40

gaborcsardi avatar Nov 21 '22 07:11 gaborcsardi

It works fine, even in the same shell.

gaborcsardi avatar Aug 28 '23 09:08 gaborcsardi