Leap 15.0 R studio - unable install R packages

Hi,

I am using R Studio to run regression, and have to install a R package from CRAN - “alr3”.

I ran into a long list of errors, and I am guessing that it might be a compiler issue?

install.packages("alr3")
library(alr3)

Error:

../inst/include/Eigen/src/Core/PlainObjectBase.h:714:32:   required from ‘Derived& Eigen::PlainObjectBase<Derived>::_set(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Product<Eigen::Product<Eigen::Product<Eigen::Matrix<double, -1, -1>, Eigen::Transpose<const Eigen::Matrix<double, -1, -1> >, 0>, Eigen::Transpose<const Eigen::Map<Eigen::Matrix<double, -1, -1>, 0, Eigen::Stride<0, 0> > >, 0>, Eigen::Map<Eigen::Matrix<double, -1, 1>, 0, Eigen::Stride<0, 0> >, 0>; Derived = Eigen::Matrix<double, -1, 1>]’
../inst/include/Eigen/src/Core/Matrix.h:225:24:   required from ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>& Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::operator=(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Product<Eigen::Product<Eigen::Product<Eigen::Matrix<double, -1, -1>, Eigen::Transpose<const Eigen::Matrix<double, -1, -1> >, 0>, Eigen::Transpose<const Eigen::Map<Eigen::Matrix<double, -1, -1>, 0, Eigen::Stride<0, 0> > >, 0>, Eigen::Map<Eigen::Matrix<double, -1, 1>, 0, Eigen::Stride<0, 0> >, 0>; _Scalar = double; int _Rows = -1; int _Cols = 1; int _Options = 0; int _MaxRows = -1; int _MaxCols = 1]’
fastLm.cpp:179:55:   required from here
../inst/include/Eigen/src/Core/CoreEvaluators.h:960:8: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<double>::type {aka __vector(2) double}’ -Wignored-attributes]
gcc -I"/usr/lib64/R/include" -DNDEBUG  -I"/home/by79/R/x86_64-suse-linux-gnu-library/3.6/Rcpp/include" -I/usr/local/include  -fpic  -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection  -c init.c -o init.o
g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o RcppEigen.so RcppEigen.o RcppExports.o fastLm.o init.o -L/usr/lib64/R/lib -lRlapack -L/usr/lib64/R/lib -lRblas -lgfortran -lm -lquadmath -L/usr/lib64/R/lib -lR
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lgfortran
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lquadmath
collect2: error: ld returned 1 exit status
make: *** [/usr/lib64/R/share/make/shlib.mk:6: RcppEigen.so] Error 1
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/3.6/RcppEigen’
Warning in install.packages :
  installation of package ‘RcppEigen’ had non-zero exit status
ERROR: dependency ‘SparseM’ is not available for package ‘quantreg’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/3.6/quantreg’
Warning in install.packages :
  installation of package ‘quantreg’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘rio’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/3.6/rio’
Warning in install.packages :
  installation of package ‘rio’ had non-zero exit status
ERROR: dependencies ‘minqa’, ‘nloptr’, ‘statmod’, ‘RcppEigen’ are not available for package ‘lme4’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/3.6/lme4’
Warning in install.packages :
  installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/3.6/pbkrtest’
Warning in install.packages :
  installation of package ‘pbkrtest’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘quantreg’, ‘rio’, ‘lme4’ are not available for package ‘car’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/3.6/car’
Warning in install.packages :
  installation of package ‘car’ had non-zero exit status
ERROR: dependency ‘car’ is not available for package ‘alr3’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/3.6/alr3’
Warning in install.packages :
  installation of package ‘alr3’ had non-zero exit status

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

The error issues goes way before this but I went to the start of the console and it is already cropped…besides, maybe the end has more value to identify the problem?

I did a search online

https://community.rstudio.com/t/unable-to-install-any-packages-in-r-rstudio-on-opensuse-42-2-with-everything-up-to-date/41822/10

but has no plans to go to the Cloud.But is it really a Cloud problem or a compiler issue or others?

Please help. TIA

First thing is that you’re still on 15.0 which is past its EOL
Next is the question why you don’t use openSUSE packages on f.e. Leap 15.1

Hi Knurpht,

I just upgraded to Leap 15.1

During the upgrade itself, there is a R-studio flag raised but so as not to affect the rest of the installation, I ignore it.



 zypper lr


Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh
---+-------------------------------------+-----------------------------------------+---------+-----------+--------
 1 | NVIDIA                              | NVIDIA                                  | Yes     | (r ) Yes  | Yes    
 2 | google-chrome                       | google-chrome                           | Yes     | ( p) Yes  | Yes    
 3 | http-download.opensuse.org-3d474035 | devel:languages:R:released              | Yes     | (r ) Yes  | Yes    
 4 | libdvdcss                           | libdvdcss                               | Yes     | (r ) Yes  | Yes    
 5 | openSUSE-Leap-15.1-0                | openSUSE-Leap-15.1-0                    | No      | ----      | ----   
 6 | packman                             | packman                                 | Yes     | (r ) Yes  | Yes    
 7 | repo-debug                          | openSUSE-Leap-15.1-Debug                | No      | ----      | ----   
 8 | repo-debug-non-oss                  | openSUSE-Leap-15.1-Debug-Non-Oss        | No      | ----      | ----   

 9 | repo-debug-update                   | openSUSE-Leap-15.1-Update-Debug         | No      | ----      | ----   
10 | repo-debug-update-non-oss           | openSUSE-Leap-15.1-Update-Debug-Non-Oss | No      | ----      | ----   
11 | repo-non-oss                        | openSUSE-Leap-15.1-Non-Oss              | Yes     | (r ) Yes  | Yes    
12 | repo-oss                            | openSUSE-Leap-15.1-Oss                  | Yes     | (r ) Yes  | Yes    
13 | repo-source                         | openSUSE-Leap-15.1-Source               | No      | ----      | ----   
14 | repo-source-non-oss                 | openSUSE-Leap-15.1-Source-Non-Oss       | No      | ----      | ----   
15 | repo-update                         | openSUSE-Leap-15.1-Update               | Yes     | (r ) Yes  | Yes    
16 | repo-update-non-oss                 | openSUSE-Leap-15.1-Update-Non-Oss       | Yes     | (r ) Yes  | Yes    


After the installation, I went to

https://software.opensuse.org/package/rstudio

to install R using YAST,…now I am stuck with:

Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/lib/rstudio/resources/mathjax-26: cpio: File from package already exists as a directory in system

 error: rstudio-1.2.5033-lp151.34.1.x86_64: install failed

 error: rstudio-1.1.423-lp150.1.33.x86_64: erase skipped

 

Remains of some manual install? Try renaming the folder mentioned. Somehow the tarball/zip used was configured differently.

Should I remove R studio and reinstall?

zypper rm rstudio

Will this affect any R scripts I have?

Thanks again.

Try renaming the folder mentioned.

May I know rename to what and how to go about it?

Alternatively, can I remove Rstudio?

zypper rm rstudio

and reinstall from the opensuse link?

If so, will it impact any existing R scripts I have?

Thanks again.

Sorry, correcting myself. Not manual install. Please show


rpm -qa | grep -i rstudio


Here it is:

by79@linux-3ztp:~> rpm -qa | grep -i rstudio
R-rstudioapi-0.11-lp151.1.1.x86_64
rstudio-1.1.423-lp150.1.33.x86_64

So, the Leap 15.0 package is still installed. Do


sudo rpm -e  rstudio-1.1.423-lp150.1.33.x86_64

And then try again to install rstudio from the repo you have active

Thanks Knurpht,

I think it works. I try via YAST, and later rerun your suggestion in xterm

by79@linux-3ztp:~> rpm -qa | grep -i rstudio
R-rstudioapi-0.11-lp151.1.1.x86_64
rstudio-1.2.5033-lp151.34.1.x86_64
by79@linux-3ztp:~> 

However, the RStudio icon/widget is missing from the Applications page in Gnome. Do I need to use some configuration editor? I don’t recall using one for the previous version.

Sorry I still have problem with installing the package but maybe to take a look at what I have now?

I have installed both the rstudio and the rstudio-desktop from:

https://software.opensuse.org/search?utf8=✓&baseproject=ALL&q=r+studio

by79@linux-3ztp:~> zypper lr -d
#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                         | Service
---+-------------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+---------------------------------------------------------------------------------------------+--------
 1 | NVIDIA                              | NVIDIA                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://http.download.nvidia.com/opensuse/leap/15.1                                          |        
 2 | google-chrome                       | google-chrome                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                                         |        
 3 | http-download.opensuse.org-3d474035 | devel:languages:R:released              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/R:/released/openSUSE_Leap_15.1/ |        
 4 | libdvdcss                           | libdvdcss                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.1/                                          |        
 5 | openSUSE-Leap-15.1-0                | openSUSE-Leap-15.1-0                    | No      | ----      | ----    |   99     | yast2  | hd:/?device=/dev/disk/by-id/usb-SanDisk_Ultra_Fit_4C5310015.1725109115.1:0-part1            |        
 6 | packman                             | packman                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.1/                                            |        
 7 | repo-debug                          | openSUSE-Leap-15.1-Debug                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.1/repo/oss/                         |        
 8 | repo-debug-non-oss                  | openSUSE-Leap-15.1-Debug-Non-Oss        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.1/repo/non-oss/                     |        
 9 | repo-debug-update                   | openSUSE-Leap-15.1-Update-Debug         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.1/oss/                                    |        10 | repo-debug-update-non-oss           | openSUSE-Leap-15.1-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.1/non-oss/                                |        
11 | repo-non-oss                        | openSUSE-Leap-15.1-Non-Oss              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/non-oss/                           |        
12 | repo-oss                            | openSUSE-Leap-15.1-Oss                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/oss/                               |        
13 | repo-source                         | openSUSE-Leap-15.1-Source               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.1/repo/oss/                        |        
14 | repo-source-non-oss                 | openSUSE-Leap-15.1-Source-Non-Oss       | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.1/repo/non-oss/                    |        
15 | repo-update                         | openSUSE-Leap-15.1-Update               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/oss/                                          |        
16 | repo-update-non-oss                 | openSUSE-Leap-15.1-Update-Non-Oss       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/non-oss/      

On R studio, I ran

install.packages("alr3")
library(alr3)

It gives me error:

> install.packages("alr3")
Installing package into ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘SparseM’, ‘curl’, ‘minqa’, ‘nloptr’, ‘statmod’, ‘RcppEigen’, ‘pbkrtest’, ‘quantreg’, ‘rio’, ‘lme4’, ‘car’

trying URL 'https://cran.rstudio.com/src/contrib/SparseM_1.78.tar.gz'
Content type 'application/x-gzip' length 735024 bytes (717 KB)
==================================================
downloaded 717 KB

trying URL 'https://cran.rstudio.com/src/contrib/curl_4.3.tar.gz'
Content type 'application/x-gzip' length 673779 bytes (657 KB)
==================================================
downloaded 657 KB

trying URL 'https://cran.rstudio.com/src/contrib/minqa_1.2.4.tar.gz'
Content type 'application/x-gzip' length 53548 bytes (52 KB)
==================================================
downloaded 52 KB

trying URL 'https://cran.rstudio.com/src/contrib/nloptr_1.2.2.1.tar.gz'
Content type 'application/x-gzip' length 2450984 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

trying URL 'https://cran.rstudio.com/src/contrib/statmod_1.4.34.tar.gz'
Content type 'application/x-gzip' length 61829 bytes (60 KB)
==================================================
downloaded 60 KB

trying URL 'https://cran.rstudio.com/src/contrib/RcppEigen_0.3.3.7.0.tar.gz'
Content type 'application/x-gzip' length 1643103 bytes (1.6 MB)
==================================================
downloaded 1.6 MB

trying URL 'https://cran.rstudio.com/src/contrib/pbkrtest_0.4-8.6.tar.gz'
Content type 'application/x-gzip' length 174962 bytes (170 KB)
==================================================
downloaded 170 KB

trying URL 'https://cran.rstudio.com/src/contrib/quantreg_5.55.tar.gz'
Content type 'application/x-gzip' length 995519 bytes (972 KB)
==================================================
downloaded 972 KB

trying URL 'https://cran.rstudio.com/src/contrib/rio_0.5.16.tar.gz'
Content type 'application/x-gzip' length 420489 bytes (410 KB)
==================================================
downloaded 410 KB

trying URL 'https://cran.rstudio.com/src/contrib/lme4_1.1-23.tar.gz'
Content type 'application/x-gzip' length 4137774 bytes (3.9 MB)
==================================================
downloaded 3.9 MB

trying URL 'https://cran.rstudio.com/src/contrib/car_3.0-7.tar.gz'
Content type 'application/x-gzip' length 497735 bytes (486 KB)
==================================================
downloaded 486 KB

trying URL 'https://cran.rstudio.com/src/contrib/alr3_2.0.8.tar.gz'
Content type 'application/x-gzip' length 458818 bytes (448 KB)
==================================================
downloaded 448 KB

* installing *source* package ‘SparseM’ ...
** package ‘SparseM’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fno-optimize-sibling-calls  -fpic  -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection  -c bckslv.f -o bckslv.o
make: gfortran: Command not found
make: *** [/usr/lib64/R/etc/Makeconf:190: bckslv.o] Error 127
ERROR: compilation failed for package ‘SparseM’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/SparseM’
Warning in install.packages :
  installation of package ‘SparseM’ had non-zero exit status
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/curl’
Warning in install.packages :
  installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fno-optimize-sibling-calls  -fpic  -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection  -c altmov.f -o altmov.o
make: gfortran: Command not found
make: *** [/usr/lib64/R/etc/Makeconf:190: altmov.o] Error 127
ERROR: compilation failed for package ‘minqa’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/minqa’
Warning in install.packages :
  installation of package ‘minqa’ had non-zero exit status
* installing *source* package ‘nloptr’ ...
** package ‘nloptr’ successfully unpacked and MD5 sums checked
** using staged installation
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking whether the C++ compiler works... yes

I cropped the error msg as it is too long…from the above …Could it be the compiler that is missing?

make: gfortran: Command not found

Is there additional R related packages that I need to download?

Thanks again

Hi
So is gcc-fortran installed, thats what provides /usr/bin/gfortran;


cnf gfortran
                          
The program 'gfortran' can be found in the following package:
  * gcc-fortran  path: /usr/bin/gfortran, repository: zypp (download.opensuse.org-oss) ]

Try installing with:
    zypper install gcc-fortran

Thanks malcolmlewis,

I did

 zypper install gcc-fortran

The gfortran issue is gone but the other remain…any idea I need to install more packages for libcurl?

trying URL 'https://cran.rstudio.com/src/contrib/alr3_2.0.8.tar.gz'
Content type 'application/x-gzip' length 458818 bytes (448 KB)
==================================================
downloaded 448 KB

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/curl’
Warning in install.packages :
  installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘nloptr’ ...
** package ‘nloptr’ successfully unpacked and MD5 sums checked
** using staged installation
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking whether the C++ compiler works... yes

Hi
Yes, libcurl-devel is what you need now :wink:

Still no luck…there is a list of running code in the console but I am not able to retrieve the whole list…I tried based on what I can and is the below enough to give further indications what to do for the next step?

g++: error: /tmp/RtmpXg2qr0/R.INSTALL7d0265956b48/nloptr/src/nlopt_src/lib/libnlopt_cxx.a: No such file or directory
make: *** [/usr/lib64/R/share/make/shlib.mk:6: nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/nloptr’
Warning in install.packages :
  installation of package ‘nloptr’ had non-zero exit status
ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/lme4’
Warning in install.packages :
  installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/pbkrtest’
Warning in install.packages :
  installation of package ‘pbkrtest’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘lme4’ are not available for package ‘car’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/car’
Warning in install.packages :
  installation of package ‘car’ had non-zero exit status
ERROR: dependency ‘car’ is not available for package ‘alr3’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/alr3’
Warning in install.packages :
  installation of package ‘alr3’ had non-zero exit status

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

Thanks again!

Hi
Is it downloading and building packages? Wherever it’s obtaining nloptr from is missing the static lib file (libnlopt_cxx.a).

I tried installing several R packages and have problems which I suspect to come from the same source…but more specifically for “nloptr”, as an example, I found the below issue…I am not too sure whether it is a R Studio issue or something related to the system that requires attention…

DIRsubrout.c: In function 'void direct_dirinit_(doublereal*, fp, doublereal*, integer*, integer*, integer*, integer*, integer*, FILE*, integer*, integer*, integer*, doublereal*, doublereal*, doublereal*, doublereal*, doublereal*, integer*, doublereal*, doublereal*, integer*, const integer*, integer*, integer*, doublereal*, integer*, integer*, integer*, void*, integer, double, double, int*)':
DIRsubrout.c:1157:16: warning: variable 'costmin' set but not used -Wunused-but-set-variable]
     doublereal costmin;
                ^~~~~~~
make[2]: *** [Makefile:394: DIRsubrout.lo] Error 1
make[1]: *** [Makefile:574: all-recursive] Interrupt
make: *** [Makefile:438: all] Interrupt
ERROR: configuration failed for package ‘nloptr’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/nloptr’

Hi
That is only a warning (so won’t stop processing) and no output that warnings are set to be errors (which will stop processing)?


DIRsubrout.c:1157:16: *** warning: variable 'costmin' set but not used -Wunused-but-set-variable] ***

Need to look at the upstream source it’s grabbing…


g++: error: /tmp/RtmpXg2qr0/R.INSTALL7d0265956b48/nloptr/src/nlopt_src/lib/libnlopt_cxx.a: No such file or directory

Sorry I am not clear…when I tried to install the packages, the R console will produce a lot of code which I don’t understand and I am not able to capture in one screen.

If I Iet R run till the end, I will see this:

g++: error: /tmp/RtmpXg2qr0/R.INSTALL7d0265956b48/nloptr/src/nlopt_src/lib/libnlopt_cxx.a: No such file or directory
make: *** [/usr/lib64/R/share/make/shlib.mk:6: nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/nloptr’
Warning in install.packages :
  installation of package ‘nloptr’ had non-zero exit status
ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/lme4’
Warning in install.packages :
  installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/pbkrtest’
Warning in install.packages :
  installation of package ‘pbkrtest’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘lme4’ are not available for package ‘car’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/car’
Warning in install.packages :
  installation of package ‘car’ had non-zero exit status
ERROR: dependency ‘car’ is not available for package ‘alr3’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/alr3’
Warning in install.packages :
  installation of package ‘alr3’ had non-zero exit status

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





and like what you say, it is probably something upstream…and so I rerun the package installation and tried to stop the processing as soon as I see an error…which leads me to

DIRsubrout.c: In function 'void direct_dirinit_(doublereal*, fp, doublereal*, integer*, integer*, integer*, integer*, integer*, FILE*, integer*, integer*, integer*, doublereal*, doublereal*, doublereal*, doublereal*, doublereal*, integer*, doublereal*, doublereal*, integer*, const integer*, integer*, integer*, doublereal*, integer*, integer*, integer*, void*, integer, double, double, int*)':
DIRsubrout.c:1157:16: warning: variable 'costmin' set but not used -Wunused-but-set-variable]
     doublereal costmin;
                ^~~~~~~
make[2]: *** [Makefile:394: DIRsubrout.lo] Error 1
make[1]: *** [Makefile:574: all-recursive] Interrupt
make: *** [Makefile:438: all] Interrupt
ERROR: configuration failed for package ‘nloptr’
* removing ‘/home/by79/R/x86_64-suse-linux-gnu-library/4.0/nloptr’

Noted your feedback…

That is only a warning (so won’t stop processing) and no output that warnings are set to be errors (which will stop processing)?

 Code:
 DIRsubrout.c:1157:16: *** warning: variable 'costmin' set but not used -Wunused-but-set-variable] *** 

But how about this:

make[2]: *** [Makefile:394: DIRsubrout.lo] Error 1
make[1]: *** [Makefile:574: all-recursive] Interrupt
make: *** [Makefile:438: all] Interrupt
ERROR: configuration failed for package ‘nloptr’

Hi
Can you not see the error here?


g++: error: /tmp/RtmpXg2qr0/R.INSTALL7d0265956b48/nloptr/src/nlopt_src/lib/**libnlopt_cxx.a: No such file or directory**

That is part of what you are downloading, the error shows it’s missing the static library “libnlopt_cxx.a” that is an upstream (as in you need to talk to the developer) issue if it can’t find it. Nothing to do with any application…