Winfried Moser
2019-Jan-04 22:23 UTC
[R] g++ error causes non-zero exit status for package installation
dear community, i get a *non-zero exit status* installing the survey-package in R version 3.5.2 on ubuntu 18.04. the problem seems to be related to *g++* and/or the package *minqa*. in the output of the installation procedure i found the following g++ related lines: g++ -I"/usr/share/R/include" -DNDEBUG -I"/home/winfried/rlibs/Rcpp/include" -f [...] g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o minqa.so altm [...] g++: error: R: Datei oder Verzeichnis nicht gefunden g++: error: version: Datei oder Verzeichnis nicht gefunden g++: error: 3.5.2: Datei oder Verzeichnis nicht gefunden g++: error: (2018-12-20): Datei oder Verzeichnis nicht gefunden can someone help or point me in a direction? several packages, that i use frequently, are conserned (survey, lme4, effects) best, winfried [[alternative HTML version deleted]]
Dirk Eddelbuettel
2019-Jan-05 14:10 UTC
[R] g++ error causes non-zero exit status for package installation
On 4 January 2019 at 23:23, Winfried Moser wrote: | dear community, | | i get a *non-zero exit status* installing the survey-package in R version | 3.5.2 on ubuntu 18.04. the problem seems to be related to *g++* and/or the | package *minqa*. in the output of the installation procedure i found the | following g++ related lines: | | g++ -I"/usr/share/R/include" -DNDEBUG -I"/home/winfried/rlibs/Rcpp/include" | -f | [...] | g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o | minqa.so altm | [...] | g++: error: R: Datei oder Verzeichnis nicht gefunden | g++: error: version: Datei oder Verzeichnis nicht gefunden | g++: error: 3.5.2: Datei oder Verzeichnis nicht gefunden | g++: error: (2018-12-20): Datei oder Verzeichnis nicht gefunden | | can someone help or point me in a direction? several packages, that i use | frequently, are conserned (survey, lme4, effects) Wrong mailing list. Please subscribe to r-sig-debian and post there. Someone posted a similar looking error recently (in a GitHub issue I can't find now) but we did not solve it. Somehow the call goes funky meaning that the values in /etc/R/Makeconf got altted or affected or corrupted. No idea why -- thousands of people use R on Ubuntu daily, myself included. The good new is that you can (and maybe should !) consider prebuilt binaries. These packages are all in Ubuntu as r-cran-survey, r-cran-lme4, r-cran-effects -- and the Rutter PPAs give you even newer version. Read the first four paragraphs, and particularly the fourth, of https://cloud.r-project.org/bin/linux/ubuntu/README.html and enjoy the availability of 4000+ r-cran-* binary packages. I am still interested in understanding the bug report but please bring it to r-sig-debian. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
William Dunlap
2019-Jan-05 17:14 UTC
[R] g++ error causes non-zero exit status for package installation
You would get these errors ("R: file or directory not found, version: file or directory not found...") if you had a ~/.Rprofile file containing the line 'cat(version$version.string, sep="\n"). Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Jan 5, 2019 at 1:23 AM Winfried Moser <winfried.moser at gmail.com> wrote:> dear community, > > i get a *non-zero exit status* installing the survey-package in R version > 3.5.2 on ubuntu 18.04. the problem seems to be related to *g++* and/or the > package *minqa*. in the output of the installation procedure i found the > following g++ related lines: > > g++ -I"/usr/share/R/include" -DNDEBUG -I"/home/winfried/rlibs/Rcpp/include" > -f > [...] > g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o > minqa.so altm > [...] > g++: error: R: Datei oder Verzeichnis nicht gefunden > g++: error: version: Datei oder Verzeichnis nicht gefunden > g++: error: 3.5.2: Datei oder Verzeichnis nicht gefunden > g++: error: (2018-12-20): Datei oder Verzeichnis nicht gefunden > > can someone help or point me in a direction? several packages, that i use > frequently, are conserned (survey, lme4, effects) > > best, winfried > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Dirk Eddelbuettel
2019-Jan-05 17:40 UTC
[R] g++ error causes non-zero exit status for package installation
On 5 January 2019 at 09:14, William Dunlap via R-help wrote: | You would get these errors ("R: file or directory not found, version: file | or directory not found...") if you had a ~/.Rprofile file containing the | line 'cat(version$version.string, sep="\n"). Well spotted -- very much so. That is bound to break use within src/Makevars and alike. If you must do something in ~/.Rprofile either make it silent, or make it conditional based on if (interactive()) { ...that_code_here... } Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org