我原来的R版本是4.2.0,因为要安装新的blogdown,要求我把R升级到4.2.1,但是R升级以后,重新安装blogdown又报错了……主要是'digest', 'jsonlite', 'markdown', 'xfun', 'yaml'这几个包安装报错。
[1/6] Installing digest...
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
digest 0.6.29 0.6.30 TRUE
安装源码包'digest'
试开URL’https://cran.rstudio.com/src/contrib/digest_0.6.30.tar.gz'
Content type 'application/x-gzip' length 163424 bytes (159 KB)
==================================================
downloaded 159 KB
* installing *source* package 'digest' ...
** package 'digest' successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -std=gnu++11 -I"D:/R/R-4.2.1/include" -DNDEBUG -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c SpookyV2.cpp -o SpookyV2.o
sh: g++: command not found
make: *** [D:/R/R-4.2.1/etc/x64/Makeconf:260: SpookyV2.o] Error 127
ERROR: compilation failed for package 'digest'
* removing 'D:/R/R-4.2.1/library/digest'
[2/6] Installing jsonlite...
下载的程序包在
'C:\Users\fanfan\AppData\Local\Temp\RtmpsPjKko\downloaded_packages'里
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
jsonlite 1.8.2 1.8.3 TRUE
安装源码包'jsonlite'
试开URL’https://cran.rstudio.com/src/contrib/jsonlite_1.8.3.tar.gz'
Content type 'application/x-gzip' length 1053099 bytes (1.0 MB)
==================================================
downloaded 1.0 MB
* installing *source* package 'jsonlite' ...
** package 'jsonlite' successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -I"D:/R/R-4.2.1/include" -DNDEBUG -Iyajl/api -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c base64.c -o base64.o
sh: gcc: command not found
make: *** [D:/R/R-4.2.1/etc/x64/Makeconf:253: base64.o] Error 127
[3/6] Installing commonmark...
ERROR: compilation failed for package 'jsonlite'
* removing 'D:/R/R-4.2.1/library/jsonlite'
下载的程序包在
'C:\Users\fanfan\AppData\Local\Temp\RtmpsPjKko\downloaded_packages'里
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
commonmark 1.8.0 1.8.1 TRUE
安装源码包'commonmark'
试开URL’https://cran.rstudio.com/src/contrib/commonmark_1.8.1.tar.gz'
Content type 'application/x-gzip' length 139636 bytes (136 KB)
==================================================
downloaded 136 KB
* installing *source* package 'commonmark' ...
** package 'commonmark' successfully unpacked and MD5 sums checked
** using staged installation
rm -f cmark/cmark.o cmark/node.o cmark/iterator.o cmark/blocks.o cmark/inlines.o cmark/scanners.o cmark/utf8.o cmark/buffer.o cmark/references.o cmark/render.o cmark/man.o cmark/xml.o cmark/html.o cmark/commonmark.o cmark/latex.o cmark/houdini_href_e.o cmark/houdini_html_e.o cmark/houdini_html_u.o cmark/cmark_ctype.o cmark/arena.o cmark/linked_list.o cmark/plugin.o cmark/registry.o cmark/syntax_extension.o cmark/plaintext.o cmark/footnotes.o cmark/map.o extensions/autolink.o extensions/core-extensions.o extensions/ext_scanners.o extensions/strikethrough.o extensions/table.o extensions/tagfilter.o extensions/tasklist.o extensions.o init.o wrapper.o commonmark.dll cmark/libstatcmark.a
** libs
gcc -I"D:/R/R-4.2.1/include" -DNDEBUG -Icmark -I. -DCMARK_GFM_STATIC_DEFINE -DCMARK_GFM_EXTENSIONS_STATIC_DEFINE -DR_NO_REMAP -DSTRICT_R_HEADERS -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c extensions.c -o extensions.o
sh: gcc: command not found
make: *** [D:/R/R-4.2.1/etc/x64/Makeconf:253: extensions.o] Error 127
[4/6] Installing xfun...
ERROR: compilation failed for package 'commonmark'
* removing 'D:/R/R-4.2.1/library/commonmark'
下载的程序包在
'C:\Users\fanfan\AppData\Local\Temp\RtmpsPjKko\downloaded_packages'里
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
xfun 0.33 0.34 TRUE
安装源码包'xfun'
试开URL’https://cran.rstudio.com/src/contrib/xfun_0.34.tar.gz'
Content type 'application/x-gzip' length 128092 bytes (125 KB)
==================================================
downloaded 125 KB
* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** using staged installation
gcc -I"D:/R/R-4.2.1/include" -DNDEBUG -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c base64.c -o base64.o
** libs
sh: gcc: command not found
make: *** [D:/R/R-4.2.1/etc/x64/Makeconf:253: base64.o] Error 127
[5/6] Installing markdown...
ERROR: compilation failed for package 'xfun'
* removing 'D:/R/R-4.2.1/library/xfun'
下载的程序包在
'C:\Users\fanfan\AppData\Local\Temp\RtmpsPjKko\downloaded_packages'里
还安装相依关系'commonmark', 'xfun'
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
commonmark 1.8.0 1.8.1 TRUE
xfun 0.33 0.34 TRUE
markdown 1.1 1.3 TRUE
安装源码包'commonmark', 'xfun', 'markdown'
试开URL’https://cran.rstudio.com/src/contrib/commonmark_1.8.1.tar.gz'
Content type 'application/x-gzip' length 139636 bytes (136 KB)
==================================================
downloaded 136 KB
试开URL’https://cran.rstudio.com/src/contrib/xfun_0.34.tar.gz'
Content type 'application/x-gzip' length 128092 bytes (125 KB)
==================================================
downloaded 125 KB
试开URL’https://cran.rstudio.com/src/contrib/markdown_1.3.tar.gz'
Content type 'application/x-gzip' length 44590 bytes (43 KB)
==================================================
downloaded 43 KB
* installing *source* package 'commonmark' ...
** package 'commonmark' successfully unpacked and MD5 sums checked
** using staged installation
** libs
rm -f cmark/cmark.o cmark/node.o cmark/iterator.o cmark/blocks.o cmark/inlines.o cmark/scanners.o cmark/utf8.o cmark/buffer.o cmark/references.o cmark/render.o cmark/man.o cmark/xml.o cmark/html.o cmark/commonmark.o cmark/latex.o cmark/houdini_href_e.o cmark/houdini_html_e.o cmark/houdini_html_u.o cmark/cmark_ctype.o cmark/arena.o cmark/linked_list.o cmark/plugin.o cmark/registry.o cmark/syntax_extension.o cmark/plaintext.o cmark/footnotes.o cmark/map.o extensions/autolink.o extensions/core-extensions.o extensions/ext_scanners.o extensions/strikethrough.o extensions/table.o extensions/tagfilter.o extensions/tasklist.o extensions.o init.o wrapper.o commonmark.dll cmark/libstatcmark.a
gcc -I"D:/R/R-4.2.1/include" -DNDEBUG -Icmark -I. -DCMARK_GFM_STATIC_DEFINE -DCMARK_GFM_EXTENSIONS_STATIC_DEFINE -DR_NO_REMAP -DSTRICT_R_HEADERS -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c extensions.c -o extensions.o
sh: gcc: command not found
make: *** [D:/R/R-4.2.1/etc/x64/Makeconf:253: extensions.o] Error 127
ERROR: compilation failed for package 'commonmark'
* removing 'D:/R/R-4.2.1/library/commonmark'
* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** using staged installation
gcc -I"D:/R/R-4.2.1/include" -DNDEBUG -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c base64.c -o base64.o
** libs
sh: gcc: command not found
make: *** [D:/R/R-4.2.1/etc/x64/Makeconf:253: base64.o] Error 127
ERROR: compilation failed for package 'xfun'
* removing 'D:/R/R-4.2.1/library/xfun'
[6/6] Installing yaml...
ERROR: dependencies 'commonmark', 'xfun' are not available for package 'markdown'
* removing 'D:/R/R-4.2.1/library/markdown'
下载的程序包在
'C:\Users\fanfan\AppData\Local\Temp\RtmpsPjKko\downloaded_packages'里
有二进制版本的,但源代码版本是后来的:
binary source needs_compilation
yaml 2.3.5 2.3.6 TRUE
安装源码包'yaml'
试开URL’https://cran.rstudio.com/src/contrib/yaml_2.3.6.tar.gz'
Content type 'application/x-gzip' length 94304 bytes (92 KB)
==================================================
downloaded 92 KB
* installing *source* package 'yaml' ...
** package 'yaml' successfully unpacked and MD5 sums checked
** using staged installation
gcc -I"D:/R/R-4.2.1/include" -DNDEBUG -I. -DNDEBUG -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c api.c -o api.o
** libs
sh: gcc: command not found
make: *** [D:/R/R-4.2.1/etc/x64/Makeconf:253: api.o] Error 127
ERROR: compilation failed for package 'yaml'
* removing 'D:/R/R-4.2.1/library/yaml'
下载的程序包在
'C:\Users\fanfan\AppData\Local\Temp\RtmpsPjKko\downloaded_packages'里
✔ Packages successfully installed.
Warning messages:
1: In utils::install.packages("digest", repos = "https://cran.rstudio.com/") :
安装程序包'digest'时退出狀態的值不是0
2: In utils::install.packages("jsonlite", repos = "https://cran.rstudio.com/") :
安装程序包'jsonlite'时退出狀態的值不是0
3: In utils::install.packages("commonmark", repos = "https://cran.rstudio.com/") :
安装程序包'commonmark'时退出狀態的值不是0
4: In utils::install.packages("xfun", repos = "https://cran.rstudio.com/") :
安装程序包'xfun'时退出狀態的值不是0
5: In utils::install.packages("markdown", repos = "https://cran.rstudio.com/") :
安装程序包'commonmark'时退出狀態的值不是0
6: In utils::install.packages("markdown", repos = "https://cran.rstudio.com/") :
安装程序包'xfun'时退出狀態的值不是0
7: In utils::install.packages("markdown", repos = "https://cran.rstudio.com/") :
安装程序包'markdown'时退出狀態的值不是0
8: In utils::install.packages("yaml", repos = "https://cran.rstudio.com/") :
安装程序包'yaml'时退出狀態的值不是0