Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error "bad variable name" #16

Closed
potash opened this issue Sep 12, 2023 · 4 comments
Closed

Installation error "bad variable name" #16

potash opened this issue Sep 12, 2023 · 4 comments

Comments

@potash
Copy link

potash commented Sep 12, 2023

I am trying to install nanotext for use with mirai and targets. I get the following error:

> install.packages("nanotext")
Installing package into ‘/home/eric/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
Warning message:
package ‘nanotext’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 
> install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev")
Installing package into ‘/home/eric/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://shikokuchuo.r-universe.dev/src/contrib/nanonext_0.10.0.9000.tar.gz'
Content type 'application/x-gzip' length 1164744 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

* installing *source* package ‘nanonext’ ...
** using staged installation
./configure: 16: export: -std: bad variable name
ERROR: configuration failed for package ‘nanonext’
* removing ‘/home/eric/R/x86_64-pc-linux-gnu-library/4.0/nanonext’

The downloaded source packages are in
        ‘/home/eric/tmp/RtmpVhNrdR/downloaded_packages’
Warning message:
In install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev") :
  installation of package ‘nanonext’ had non-zero exit status

Any advice? My R version is 4.0.3 and I am using debian buster. Thank you.

@shikokuchuo
Copy link
Owner

You get the first 'non-available' error because you entered "nanotext" instead of "nanonext". Do you encounter the same issue installing the CRAN version?

If you do then can you let me know the values of the following run from your terminal:

echo $SHELL
R CMD config CC

Thanks.

@potash
Copy link
Author

potash commented Sep 12, 2023

Thanks for the quick reply. Whoops same error with the right spelling:

> install.packages("nanonext")
Installing package into ‘/home/eric/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/nanonext_0.10.0.tar.gz'
Content type 'application/x-gzip' length 862129 bytes (841 KB)
==================================================
downloaded 841 KB

* installing *source* package ‘nanonext’ ...
** package ‘nanonext’ successfully unpacked and MD5 sums checked
** using staged installation
./configure: 16: export: -std: bad variable name
ERROR: configuration failed for package ‘nanonext’
* removing ‘/home/eric/R/x86_64-pc-linux-gnu-library/4.0/nanonext’

The downloaded source packages are in
        ‘/home/eric/tmp/Rtmpl9AyrQ/downloaded_packages’
Warning message:
In install.packages("nanonext") :
  installation of package ‘nanonext’ had non-zero exit status

And your commands:

$ echo $SHELL
/bin/bash
$ R CMD config CC
gcc -std=gnu99

shikokuchuo added a commit that referenced this issue Sep 12, 2023
@shikokuchuo
Copy link
Owner

Thanks for reporting this. The issue is fixed in the latest development build - the configure file did not consider the case where the result of R CMD config CC is a string that contains a space.

If you try installing from R-universe again, it should now work.

@potash
Copy link
Author

potash commented Sep 12, 2023

It worked. Thanks!

@potash potash closed this as completed Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants