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

Package load fails on OS X 10.11 despite openssl fix #246

Open
bsmoliak opened this issue Jul 6, 2016 · 3 comments
Open

Package load fails on OS X 10.11 despite openssl fix #246

bsmoliak opened this issue Jul 6, 2016 · 3 comments

Comments

@bsmoliak
Copy link

bsmoliak commented Jul 6, 2016

I'm having trouble installing git2r from master in spite of the openssl fix in #162. In the loading test, _git_buf__initbuf cannot be found.

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib/R/3.3/site-library/git2r/libs/git2r.so':
  dlopen(/usr/local/lib/R/3.3/site-library/git2r/libs/git2r.so, 6): Symbol not found: _git_buf__initbuf
  Referenced from: /usr/local/lib/R/3.3/site-library/git2r/libs/git2r.so
  Expected in: flat namespace
 in /usr/local/lib/R/3.3/site-library/git2r/libs/git2r.so

My system is configured with brew-installed versions of openssl, libssh2, and R. A gist containing the results of brew config, brew doctor, and make install can be found here: https://gist.github.com/bsmoliak/75c4cf9447bf9b14bc5d202f81000ec2

@clarkfitzg
Copy link

@bsmoliak I ran into the same issue today when using a homebrew installation of R. I downloaded the latest version of R from CRAN and now it works fine, installed as a dependency of devtools.

> install.packages('devtools')
> library(devtools)
> library(git2r)

Here's the error message for reference, looks a little different:

*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib/R/3.3/site-library/git2r/libs/git2r.so':
  dlopen(/usr/local/lib/R/3.3/site-library/git2r/libs/git2r.so, 6): Library not loaded: libz.1.dylib
  Referenced from: /usr/local/lib/R/3.3/site-library/git2r/libs/git2r.so
  Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/3.3/site-library/git2r’

@bsmoliak
Copy link
Author

bsmoliak commented Jul 8, 2016

@clarkfitzg For the record, I am now getting the same error message as you posted when I try to install the package from source.

I was able to install git2r as a binary from CRAN, install.packages('git2r', type='mac.binary.mavericks'). Any reason that I shouldn't use that as a workaround?

@clarkfitzg
Copy link

Seems fine to me.

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

2 participants