💾 Archived View for thrig.me › tech › openbsd › R.gmi captured on 2023-05-24 at 19:09:33. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-04-19)
-=-=-=-=-=-=-
This is a custom compile for OpenBSD, as the R port requires gcc 8.x, and I want the latest gcc for other things. It lacks various features, but that's okay as I'm not using much of R.
#!/bin/sh set -e arch=`localarchdir` # OpenBSD7.3-amd64 (or so forth) export CFLAGS="-I/usr/local/include" export LDFLAGS="-L/usr/local/lib" FC=egfortran \ ./configure --prefix=/home/jmates/usr/"$arch"/R-4.2.3 \ --with-recommended-packages=no \ --disable-java make make install
And then you'll need to link R into a PATH directory. Or you could use something like stow to do that for you?
tags #r #openbsd