computationalstylistics / stylo

R package for stylometric analyses
173 stars 46 forks source link

Can't load library #24

Open kieroneil opened 5 years ago

kieroneil commented 5 years ago

I was going through a post on R-bloggers and got stopped immediately. I was able to get stylo though install.packages(), but when I try to load the library I get the following. > library(stylo) xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Error: package or namespace load failed for ‘stylo’: .onLoad failed in loadNamespace() for 'tcltk', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/tcltk/libs/tcltk.so': dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/tcltk/libs/tcltk.so Reason: image not found In addition: Warning message: running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1

computationalstylistics commented 5 years ago

Hello, if I recall correctly, I had this issue some time ago on one of my machines (it might have been MacOS). Could you please check it the installation instructions described here (section Installation issues) work for you.