armgong / rjulia

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

Error in installing rjulia #22

Closed jucheng1992 closed 8 years ago

jucheng1992 commented 8 years ago

Hi,

I am trying to install rjulia in my mac. I was able to install before but I update julia to 0.4.1. I remove the rjulia for 0.3 version and error occurs when installing rjulia:

My julia version is 0.4.1 R version is version 3.2.0

I added export PATH="/Applications/Julia-0.4.1.app/Contents/Resources/julia/bin:$PATH" in my .bash_profile to call julia in terminal

Downloading GitHub repo armgong/rjulia@master
Installing rjulia
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore CMD INSTALL  \
  '/private/var/folders/vh/n28y46q1673ccs_8ln28xcz00000gs/T/Rtmp87oUv1/devtoolscd864a52ae57/armgong-rjulia-d62f4af'  \
  --library='/Users/jucheng/Library/R/3.2/library' --install-tests 

During startup - Warning messages:
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
* installing *source* package ‘rjulia’ ...
** libs
/bin/sh: julia: command not found
/bin/sh: julia: command not found
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/../../src -I/../../src/support -I/../include -I/../include/julia -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c Julia_R.c -o Julia_R.o
Julia_R.c:13:10: fatal error: 'julia.h' file not found
#include <julia.h>
         ^
1 error generated.
make: *** [Julia_R.o] Error 1
ERROR: compilation failed for package ‘rjulia’
* removing ‘/Users/jucheng/Library/R/3.2/library/rjulia’
Error: Command failed (1)

Thank you so much!

jucheng1992 commented 8 years ago

Instead of adding path, I use soft link and it works.