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 of units on 🚩🇨🇳🏹红旗中科 RedFlag Linux (🍥Debian 11) #1

Closed
englianhu opened this issue Aug 24, 2022 · 2 comments

Comments

@englianhu
Copy link

englianhu commented Aug 24, 2022

englianhu@Scibrokes:~$ sudo su - -c "R -e \"install.packages(c('units', 'sf'), repos='https://cran.rstudio.com/')\""                

R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R是自由软件,不带任何担保。
在某些条件下你可以将其自由散布。
用'license()''licence()'来看散布的详细条件。

R是个合作计划,有许多人为之做出了贡献.'contributors()'来看合作者的详细情况
用'citation()'会告诉你如何在出版物中正确地引用RR程序包。

用'demo()'来看一些示范程序,用'help()'来阅读在线帮助文件,或
用'help.start()'通过HTML浏览器来看帮助文件。
用'q()'退出R.

> install.packages(c('units', 'sf'), repos='https://cran.rstudio.com/')
试开URLhttps://cran.rstudio.com/src/contrib/units_0.8-0.tar.gz'
Content type 'application/x-gzip' length 866695 bytes (846 KB)
==================================================
downloaded 846 KB

试开URL’https://cran.rstudio.com/src/contrib/sf_1.0-8.tar.gz'
Content type 'application/x-gzip' length 3472914 bytes (3.3 MB)
==================================================
downloaded 3.3 MB

* installing *source* packageunits...
** 成功将‘units’程序包解包并MD5和检查
** using staged installation
configure: units: 0.8-0
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -std=gnu++14 accepts -g... yes
checking how to run the C++ preprocessor... g++ -std=gnu++14 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking for error_at_line... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for XML_ParserCreate in -lexpat... yes
checking udunits2.h usability... no
checking udunits2.h presence... no
checking for udunits2.h... no
checking udunits2/udunits2.h usability... no
checking udunits2/udunits2.h presence... no
checking for udunits2/udunits2.h... no
checking for ut_read_xml in -ludunits2... no
configure: error: in `/tmp/RtmpyZFyNZ/R.INSTALL13c675cd78d/units':
configure: error: 
--------------------------------------------------------------------------------
  Configuration failed because libudunits2.so was not found. Try installing:
    * deb: libudunits2-dev (Debian, Ubuntu, ...)
    * rpm: udunits2-devel (Fedora, EPEL, ...)
    * brew: udunits (OSX)
  If udunits2 is already installed in a non-standard location, use:
    --configure-args='--with-udunits2-lib=/usr/local/lib'
  if the library was not found, and/or:
    --configure-args='--with-udunits2-include=/usr/include/udunits2'
  if the header was not found, replacing paths with appropriate values.
  You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
--------------------------------------------------------------------------------

See `config.log' for more details
ERROR: configuration failed for packageunits* removing/usr/bin/R/library/unitsERROR: dependencyunitsis not available for packagesf* removing/usr/bin/R/library/sf’

下载的程序包在
        ‘/tmp/Rtmpvx95Ad/downloaded_packages’里
更新'.Library'里的HTML程序包列表
Making 'packages.html' ... 做完了。
Warning messages:
1: In install.packages(c("units", "sf"), repos = "https://cran.rstudio.com/") :
  安装程序包‘units’时退出狀態的值不是0
2: In install.packages(c("units", "sf"), repos = "https://cran.rstudio.com/") :
  安装程序包‘sf’时退出狀態的值不是0
@englianhu
Copy link
Author

englianhu commented Aug 24, 2022

sudo apt install l*units2* -y
sudo apt install libudunits2* -y
sudo su - -c "R -e \"install.packages(c('units', 'sf'), repos='https://cran.rstudio.com/')\""

@gaborcsardi
Copy link

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!

@englianhu englianhu changed the title Installation of units on 🚩Redflag Installation of units on 🚩Redflag Aug 25, 2022
@englianhu englianhu changed the title Installation of units on 🚩Redflag Installation of units on 🚩🇨🇳🏹红旗中科 RedFlag Linux (🍥Debian 11) Aug 29, 2022
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