Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failing on R 3.5.1 / macOS #95

Closed
mdmadhu opened this issue Jul 12, 2018 · 1 comment
Closed

Installation failing on R 3.5.1 / macOS #95

mdmadhu opened this issue Jul 12, 2018 · 1 comment

Comments

@mdmadhu
Copy link

mdmadhu commented Jul 12, 2018

Hi!

Below is the problem I run into when I try to install gganimate. Based on some searches, I tried a reinstall of the Cairo library via Homebrew, but that didn't help either. Any thoughts on what I may be doing wrong? Thanks!

> devtools::install_github('thomasp85/gganimate')
Downloading GitHub repo thomasp85/gganimate@master
from URL https://api.github.com/repos/thomasp85/gganimate/zipball/master
Installing gganimate
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD  \
  INSTALL  \
  '/private/var/folders/v3/8qnv_799481162wwbnj62fq00000gn/T/RtmpcuWCo6/devtools39ac6b9c4d0b/thomasp85-gganimate-13a9a29'  \
  --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library' --install-tests 

* installing *source* package ‘gganimate’ ...
** R
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so, 6): Library not loaded: /opt/X11/lib/libcairo.2.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so
  Reason: image not found
ERROR: lazy loading failed for package ‘gganimate’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gganimate’
Installation failed: Command failed (1)
@mdmadhu
Copy link
Author

mdmadhu commented Jul 12, 2018

Ok, here's what solved the problem above for me. Although I had XQuartz already installed, I downloaded XQuartz once again, reinstalled it, rebooted the computer, and re-ran the install. It went through this time without problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant