当前位置: 首页 > news >正文

宁波网络建站公司有哪些高端 网站定制

宁波网络建站公司有哪些,高端 网站定制,国外设计网站 绿色的,时代创信网站设计 北京之前的R版本太旧,不少包装不上,需要安装新版本的R: R --version R version 3.6.0 (2019-04-26) -- "Planting of a Tree"于是下载最新版R: 因为没有证书,需要加上最后面的参数. wget https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-4/R-4.2.2.tar.gz --no…

之前的R版本太旧,不少包装不上,需要安装新版本的R:

R --version
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"

于是下载最新版R:

因为没有证书,需要加上最后面的参数.

wget https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-4/R-4.2.2.tar.gz --no-check-certificate

或者使用 

yum install -y ca-certificates

第一次配制报错:

./configure --enable-R-shlib --prefix=/opt/R/R-4.2.2 --with-x=no
...
checking for readline/history.h... no
checking for readline/readline.h... no
checking for rl_callback_read_char in -lreadline... no
checking for main in -lncurses... no
checking for main in -ltinfo... no
checking for main in -ltermcap... no
checking for main in -ltermlib... no
checking for rl_callback_read_char in -lreadline... no
configure: error: --with-readline=yes (default) and headers/libs are not available

这是因为没有装readline这个包:

sudo yum install readline-devel
...
Running transactionInstalling : ncurses-devel-5.9-14.20130511.el7_4.x86_64                   1/2 Installing : readline-devel-6.2-11.el7.x86_64                             2/2 Verifying  : readline-devel-6.2-11.el7.x86_64                             1/2 Verifying  : ncurses-devel-5.9-14.20130511.el7_4.x86_64                   2/2 Installed:readline-devel.x86_64 0:6.2-11.el7                                            Dependency Installed:ncurses-devel.x86_64 0:5.9-14.20130511.el7_4                                  Complete!

然后继续配置:

./configure --enable-R-shlib --prefix=/opt/R/R-4.2.2 --with-x=no  --with-readline=yes --with-libpng=yes --with-blas
...
R is now configured for x86_64-pc-linux-gnuSource directory:            .Installation directory:      /opt/R/R-4.2.2C compiler:                  gcc -std=gnu11  -g -O2Fortran fixed-form compiler: gfortran  -g -O2Default C++ compiler:        g++ -std=gnu++11  -g -O2C++11 compiler:              g++ -std=gnu++11  -g -O2C++14 compiler:                 C++17 compiler:                 C++20 compiler:                 Fortran free-form compiler:  gfortran  -g -O2Obj-C compiler:	        Interfaces supported:        tcltkExternal libraries:          pcre2, readline, curlAdditional capabilities:     PNG, JPEG, TIFF, NLS, ICUOptions enabled:             shared R library, shared BLAS, R profilingCapabilities skipped:        cairoOptions not enabled:         memory profilingRecommended packages:        yesconfigure: WARNING: neither inconsolata.sty nor zi4.sty found: PDF vignettes and package manuals will not be rendered optimally

最后一段警告信息让人不爽. 这是latex的sty包没装,于是装一下:

wget http://mirrors.ctan.org/fonts/inconsolata.zipunzip inconsolata.zip
Archive:  inconsolata.zipcreating: inconsolata/...inflating: inconsolata/tex/inconsolata.sty ...cp -R inconsolata/* /usr/share/texmf/sudo yum install texlivesudo texhash
texhash: Updating /usr/share/texlive/texmf/ls-R... 
texhash: Updating /usr/share/texlive/texmf-config/ls-R... 
texhash: Updating /usr/share/texlive/texmf-dist/ls-R... 
texhash: Updating /usr/share/texlive/texmf-local///ls-R... 
texhash: Updating /usr/share/texlive/texmf-var/ls-R... 
texhash: Done.

然后再配置就不会有警告信息了:

./configure --enable-R-shlib --prefix=/opt/R/R-4.2.2 --with-x=no  --with-readline=yes --with-libpng=yes --with-blas
...
R is now configured for x86_64-pc-linux-gnuSource directory:            .Installation directory:      /opt/R/R-4.2.2C compiler:                  gcc -std=gnu11  -g -O2Fortran fixed-form compiler: gfortran  -g -O2Default C++ compiler:        g++ -std=gnu++11  -g -O2C++11 compiler:              g++ -std=gnu++11  -g -O2C++14 compiler:                 C++17 compiler:                 C++20 compiler:                 Fortran free-form compiler:  gfortran  -g -O2Obj-C compiler:	        Interfaces supported:        tcltkExternal libraries:          pcre2, readline, curlAdditional capabilities:     PNG, JPEG, TIFF, NLS, ICUOptions enabled:             shared R library, shared BLAS, R profilingCapabilities skipped:        cairoOptions not enabled:         memory profilingRecommended packages:        yes

configuare 参数说明:

–enable-R-shlib 表示生成libR.so库,当需要进行gcc等编译的时候很重要,确保之后安装R-studio-server时会出现 找不到"lib.so"文件的错误。

–with-readline=yes表示用于R shell条件下的调试优化

–with-libpng=yes表示可导出png图片

–with-blas表示优化R运算并生成libRblas.so库

–prefix 设定安装路径,否则make install会去安装到/usr/lib文件夹下,非root用户没有权限.

然后再

make
make install

最后将R指向新装的R

which R
sudo mv /usr/bin/R /usr/bin/R.3.6
ln -s /opt/R/R-4.2.2/bin/R /usr/bin/R
RR version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

Innocent and Trusting...ok....重启Rstudio...

但悲剧还没结束, Rstudio版本太旧, 不匹配R4.2.2里的图形引擎:

 

 

ref:

Ubntu 14.04 LTS 下编译安装R Source Code_Linux教程_Linux公社-Linux系统门户网站

全网最全:新处理器安装R所出现的报错问题 - 简书

linux服务器上装r,linux服务器安装R语言及Rstudio server_weixin_39595085的博客-CSDN博客

http://www.yayakq.cn/news/669440/

相关文章:

  • 合肥企业建站系统企业申请完域名以后 怎么把网站运行起来
  • phpcms v9 网站搬家网络营销的职能有哪些
  • 什么企业适合做网站网站 网页数量
  • 网站备案 动态ip长春建站的费用
  • 软件开发是学什么英文网站seo方案
  • 宣城 网站建设个人网站怎么命名
  • 制作手机网站哪家好百度关键词优化是什么意思
  • 网站流量 seo界面设计最好的网站
  • 南京建设网站要多少钱天津建设项目验收公示网站
  • 帮朋友免费做网站建设工程施工合同范本2017免费下载
  • 公司网站无法收录奢侈品网站排名
  • 网站建设有哪些平台微信公众号小程序制作
  • 宁波怎么做外贸公司网站怎么做网约车
  • 怎么制作自己的小网站网站底部悬浮代码wordpress
  • 网站建设教程搭建管理平台系统登录入口
  • 做网站的要多钱柳州建设网栗园新居
  • 做企业网站都有什么平台周到的网站建设
  • 二手设备回收做哪个网站好手机制作个人简历表格
  • 企业网站seo维护注册登录
  • 福州网站微信公众号建站手机网站
  • 简洁大方网站模板技术支持海安网站建设
  • 银川网站建设公司哪家好房产信息查询官网
  • 邢台市建设局网站双语企业网站
  • 做网站的公司怎么找客户网站可以用ai做吗
  • 响应式网站 模版网页设计综合案例
  • 新手做自己的网站怎样解除拦截网站设置
  • 任务发布网站建设湖北省建设工程信息网官网
  • 大型门户网站建设服务代售网站建设
  • 饭店的网站建设进行评价网页视频怎么下载到本地手机
  • win7的iis怎么制作网站黄埔做网站的公