在R中安装RJulia软件包

时间:2015-09-17 12:50:50

标签: r julia

我正在尝试在Windows上安装RJulia软件包:

朱莉娅版本:0.4

R版本:3.2.1

RStudio版本:0.99.467

您可以找到相关的R代码:

library(devtools)
Sys.setenv(JULIA_SRC="C:/Users/user/AppData/Local/Julia-0.4.0-rc1")
Sys.setenv(LD_LIBRARY_PATH=":/Users/user/AppData/Local/Julia-0.4.0-rc1/lib/julia")
devtools::install_github("armgong/RJulia", ref="0.4")# or ref="0.4" if using Julia v0.4

但是我收到以下错误:

julia: not found
julia: not found
gcc -m32 -I"C:/PROGRA~1/R/R-32~1.1/include" -DNDEBUG -I/../../src -I/../../src/support -I/../include -I/../include/julia -D_WIN32_WINNT=0x0600    -I"d:/RCompile/r-compiling/local/local320/include"     -O3 -Wall  -std=gnu99 -mtune=core2 -c Julia_R.c -o Julia_R.o
Julia_R.c:13:19: fatal error: julia.h: No such file or directory
compilation terminated.
make: *** [Julia_R.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-32~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.1/share/make/winshlib.mk" SHLIB="rjulia.dll" OBJECTS="Julia_R.o R_Julia.o dataframe.o embedding.o"' had status 2
ERROR: compilation failed for package 'rjulia'

感谢任何建议!

1 个答案:

答案 0 :(得分:0)

我重新安装了最新版本的RStudio 0.99.484并在@rawr建议之后重新配置了系统PATH(我有两个julia v.0.4和v.0.3.11的安装路径,我保留了稳定版本)它似乎有效。