Closed VtheRtech closed 6 days ago
sh: line 1: make: command not found
Is it installed on your system?
You have to fix this:
sh: line 1: make: command not found
Install gcc
and make
.
ah okay, I'm using nixos there so I need to create a shell with make & gcc in it. I will post again when I have a fix.
gonna look through here to find the packages for that. https://search.nixos.org/packages
gnumake #depedency for r.nvim
libgcc #depedency for r.nvim
gccgo #depedency for r.nvim
These where the three unsatifiied dependencies, it would be nice if these where specificed in your documentation.
I use Debian and I created a meta package that doesn't install any files but depends on many other packages that are necessary to compile R and R packages that include C code. The advantage of having a meta package is that I never inadvertently uninstall a useful package. Here is how I created the meta package:
I created a file named build-r
with the following contents:
Package: build-r
Priority: optional
Version: 4.2.2
Maintainer: Your Name <yourname@email>
Architecture: all
Section: metapackages
Depends: bash-completion,
bison,
g++,
gcc,
gfortran,
groff-base,
tidy,
libblas-dev,
libbz2-dev,
libcairo2-dev,
libcurl4-openssl-dev | libcurl4-dev,
libgdal-dev,
libjpeg-dev,
liblapack-dev,
libudunits2-dev,
libpoppler-cpp-dev,
libmagick++-dev,
liblzma-dev,
libncurses5-dev,
libpango1.0-dev,
libpcre2-dev,
libpcre3-dev,
libpng-dev,
libreadline-dev,
libtiff5-dev,
libx11-dev,
libxt-dev,
mpack,
tcl8.6-dev,
texinfo,
texlive-base,
texlive-extra-utils,
texlive-fonts-recommended,
texlive-latex-base,
texlive-latex-extra,
texlive-latex-recommended,
texlive-plain-generic,
tk8.6-dev,
x11proto-core-dev,
xauth,
xdg-utils,
xfonts-base,
xvfb,
zlib1g-dev
Description: r building dependencies
This is a metapackage which depends on all
packages necessary to compile R and some R packages.
Then, in a terminal emulator:
equivs-build build-r
sudo dpkg -i build-r_4.2.2_all.deb
Right after the installation, build-r_4.2.2
is in a broken state because the dependencies are not installed. Then, finally, I start aptitude
and install the dependencies of build-r
.
I got the list of dependencies to build R from the Debian source package r-base
. Later, I added other dependencies as they were needed to build some R libraries.
NixOS isn't Debian based, but the procedure that I described above might be helpful for people using Debian, Ubuntu, Mint, or other Debian based Linux distro.
The documentation has this:
- The R package `nvimcom` is included in R.nvim and is automatically
installed and updated whenever necessary. The package requires
compilation by a C compiler (e.g. `gcc` or `clang`).
I will change it to make it clearer that make
and gcc
are dependencies.
Hello I keep getting this error message when I try running my R.nvim
these are the configs Im using
please note I tried using this in my R profile to try and circumvent the issue.
I had also disscuseed the issue here: on another repo
I also get this error up launching r.nvim