armgong / rjulia

R package which integrating R and Julia
GNU General Public License v2.0
145 stars 23 forks source link

RStudio does not find julia under Windows #61

Open jazzguitar1986 opened 6 years ago

jazzguitar1986 commented 6 years ago

When trying to install julia from RStudio (v. 1.0.136) using R (v. 3.3.0), i receive the following error message:

> devtools::install_github("armgong/rjulia", args = "--no-multiarch")# or ref="0.3" if using Julia v0.3
Downloading GitHub repo armgong/rjulia@master
from URL https://api.github.com/repos/armgong/rjulia/zipball/master
Installing rjulia
"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/besitzer/AppData/Local/Temp/Rtmpa82XMk/devtools133815d635c2/armgong-rjulia-9c946cf"  \
  --library="C:/Users/besitzer/Documents/R/win-library/3.3" --install-tests --no-multiarch 

* installing *source* package 'rjulia' ...
** libs
julia: not found
julia: not found
C:/RBuildTools/3.4/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.0/include" -DNDEBUG -I/../../src -I/../../src/support -I/../include -I/../include/julia -D_WIN32_WINNT=0x0600    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -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
 #include <julia.h>
                   ^
compilation terminated.
make: *** [Julia_R.o] Error 1
Warnung: Ausführung von Kommando 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-33~1.0/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-33~1.0/share/make/winshlib.mk" SHLIB="rjulia.dll" WIN=64 TCLBIN=64 OBJECTS="Julia_R.o R_Julia.o dataframe.o embedding.o"' ergab Status 2
ERROR: compilation failed for package 'rjulia'
* removing 'C:/Users/besitzer/Documents/R/win-library/3.3/rjulia'
Installation failed: Command failed (1)

I added the julia installation path to my system PATH variables. (Variable called Julia contains the path C:\Users\besitzer\AppData\Local\Julia-0.6.2\bin in my case).

What am I doing wrong?

mmd52 commented 6 years ago

Hey! I am getting a similar error, did you find any solution for this?

jazzguitar1986 commented 6 years ago

Unfortunately not, sorry

On Tue 31. Jul 2018 at 11:17, Mohammed Topiwalla notifications@github.com wrote:

Hey! I am getting a similar error, did you find any solution for this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/armgong/rjulia/issues/61#issuecomment-409153533, or mute the thread https://github.com/notifications/unsubscribe-auth/AhMXWIlPdnsUEFeUCGvgV0lokZZep6Jfks5uMCCAgaJpZM4RL2Kq .

-- Dr. Armin Müller Enge Gasse 20 74081 Heilbronn