R源码安装

操作系统环境:Debian9(stretch)

这次安装R,系统缺的库比较多。

安装之前,可以先安装以下图片库

aptitude install libpng-dev

aptitude install libtiff-dev


1. 执行:./configure --prefix=/Path/to/R3.5.0 --enable-R-shlib

        1) 问题:configure: error: No F77 compiler found

             解决:aptitude install gfortran

         2)问题: configure: error: --with-readline=yes (default) and headers/libs are not available

             解决: aptitude install libreadline-dev

          3)问题:configure: error: --with-x=yes (default) and X11 headers/libs are not available

              解决:aptitude install libxt-dev

           4)问题:checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required

                解决:aptitude install libbz2-dev

            5)问题:checking whether PCRE support suffices... configure: error: pcre >= 8.20 library and headers are required

                解决:wget https://nchc.dl.sourceforge.net/project/pcre/pcre/8.42/pcre-8.42.tar.gz

                             tar zxvf pcre-8.42.tar.gz

                              cd pcre-8.42

                               ./configure --enable-utf8

                               make

                                make install

                     6)问题:configure: error: libcurl >= 7.22.0 library and headers are required with support for https

                           解决:wget https://curl.haxx.se/download/curl-7.64.1.tar.gz

                                        tar zxvf curl-7.64.1.tar.gz

                                         cd curl-7.64.1

                                         aptitude install libssl-dev (https基于ssl)

                                         ./configure --with-ssl

                                         make

                                          make install

       2. make -j 8 (多线程编译)

       3. make install

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容