# Configuring RStudio(How to install packages without errors)

**URL:** <https://forum.endeavouros.com/t/configuring-rstudio-how-to-install-packages-without-errors/32547>\
**Category:** Newbie\
**Created:** [October 7, 2022, 3:48am UTC](https://forum.endeavouros.com/t/configuring-rstudio-how-to-install-packages-without-errors/32547 "2022-10-07T03:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoAsensio1](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@MarcoAsensio1](https://forum.endeavouros.com/u/MarcoAsensio1)\
**Post date:** [October 7, 2022, 3:48am UTC](https://forum.endeavouros.com/t/configuring-rstudio-how-to-install-packages-without-errors/32547/1 "2022-10-07T03:48:13Z")

</div>

Hello O’sage people of the forum. I am a newbie, and was configuring RStudio on EndeavourOS. First off, Why does it take so long to build Rstudio from AUR(2 hours)?

I tried installing packages/libraries for my Rscripts but they always end up being installed in some /tmp directory or end with exit code 1.

Here is a sample screenshot and console output  
 ![Screenshot from 2022-10-07 09-15-39](https://forum.endeavouros.com/uploads/default/original/3X/1/4/14f7e5b8d6aeadf009297169e558377a1deb514d.png)

```auto
* installing *source* package ‘quadprog’ ...
** package ‘quadprog’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fno-optimize-sibling-calls -fvisibility=hidden -fpic -g -O2 -msse2 -mfpmath=sse -fpic -g -O2 -c aind.f -o aind.o
make: gfortran: No such file or directory
make: *** [/usr/lib64/R/etc/Makeconf:191: aind.o] Error 127
ERROR: compilation failed for package ‘quadprog’
* removing ‘/home/stormageddon/R/x86_64-pc-linux-gnu-library/4.2/quadprog’
Warning in install.packages :
  installation of package ‘quadprog’ had non-zero exit status
* installing *source* package ‘SparseM’ ...
** package ‘SparseM’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fno-optimize-sibling-calls -fpic -g -O2 -c bckslv.f -o bckslv.o
make: gfortran: No such file or directory
make: *** [/usr/lib64/R/etc/Makeconf:191: bckslv.o] Error 127
ERROR: compilation failed for package ‘SparseM’
* removing ‘/home/stormageddon/R/x86_64-pc-linux-gnu-library/4.2/SparseM’
Warning in install.packages :
  installation of package ‘SparseM’ had non-zero exit status
ERROR: dependency ‘quadprog’ is not available for package ‘limSolve’
* removing ‘/home/stormageddon/R/x86_64-pc-linux-gnu-library/4.2/limSolve’
Warning in install.packages :
  installation of package ‘limSolve’ had non-zero exit status
ERROR: dependencies ‘SparseM’, ‘limSolve’ are not available for package ‘baseline’
* removing ‘/home/stormageddon/R/x86_64-pc-linux-gnu-library/4.2/baseline’
Warning in install.packages :
  installation of package ‘baseline’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpMcp14y/downloaded_packages’

```

My Rstudio is the latest one from AUR [here](https://aur.archlinux.org/packages/rstudio-desktop), with Quarto Installed and synced(idk if this is the right term) with Rstudio

---

<div class="post-metadata">

**Author:** ![klv](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/klv/32/58287_2.png) [@klv](https://forum.endeavouros.com/u/klv)\
**Post date:** [October 7, 2022, 4:50am UTC](https://forum.endeavouros.com/t/configuring-rstudio-how-to-install-packages-without-errors/32547/2 "2022-10-07T04:50:14Z")

</div>

> [@MarcoAsensio1](#):
>
> Why does it take so long to build Rstudio from AUR(2 hours)?

Building things from source can take hours. If you don’t want to wait so long, you can try the pre-built binary version `rstudio-desktop-bin.` That seems to be what most people are using (based on AUR popularity).

> [@MarcoAsensio1](#):
>
> `make: gfortran: No such file or directory`

As per [Arch wiki](https://wiki.archlinux.org/title/R#Installation) you need the `gcc-fortran` package to install some R packages. Looks like you don’t have it installed.

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [November 4, 2022, 9:17pm UTC](https://forum.endeavouros.com/t/configuring-rstudio-how-to-install-packages-without-errors/32547/3 "2022-11-04T21:17:14Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
