2015-11-17 56 views
1

请帮我在R中安装Rmpfr包 结果是: 安装包'Rmpfr'具有非零退出状态,我无法安装它。安装包'Rmpfr'具有非零退出状态

来自R控制台的代码下面贴:

* installing *source* package ‘Rmpfr’ ... 
** package ‘Rmpfr’ successfully unpacked and MD5 sums checked 
checking for gcc... gcc -std=gnu99 
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 gcc -std=gnu99 accepts -g... yes 
checking for gcc -std=gnu99 option to accept ISO C89... none needed 
checking how to run the C preprocessor... gcc -std=gnu99 -E 
checking for grep that handles long lines and -e... /bin/grep 
checking for egrep... /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 mpfr.h usability... no 
checking mpfr.h presence... no 
checking for mpfr.h... no 
configure: error: Header file mpfr.h not found; maybe use --with-mpfr-include=INCLUDE_PATH 
ERROR: configuration failed for package ‘Rmpfr’ 
* removing ‘/home/fbn/R/x86_64-pc-linux-gnu-library/3.2/Rmpfr’ 
Warning in install.packages : 
    installation of package ‘Rmpfr’ had non-zero exit status 

谢谢!

+1

安装 'Rmpfr'?你为什么不在互联网上搜索'mpfr.h'? –

+2

您是否安装了[mpfr库](http://www.mpfr.org/)? [包的描述](https://cran.r-project.org/web/packages/Rmpfr/Rmpfr.pdf)陈述:'SystemRequirementsNote MPFR(MP浮点可靠库, http:// mpfr。 org /)和GMP(GNU Multiple Precision library, http://gmplib.org/)', – RHertel

+0

谢谢RHertel你的回应,我在基本操作系统中使用R - libmpfr4和libgmp-dev和libmpc3按照报告安装来自突触包管理器 –

回答

2

尝试从终端中安装libmpfr-dev的:

sudo apt-get install libmpfr-dev 

再说你为什么不读错误消息来自R

相关问题