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
Error loading ROracle after upgrading to RStudio 1.2.5001 #5536
Comments
|
That might have something to do with it. I do have a common directory Library not loaded: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylibwhich references my old 3.5 installation. However, what is odd is that I still get the ROracle error even when I install ROracle with 3.6.1, and the error message changes to reference |
|
I tried removing the common library and installed in > .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/3.6/Resources/library"As before, > library(ROracle)
Loading required package: DBI
Error: package or namespace load failed for ‘ROracle’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ROracle/libs/ROracle.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ROracle/libs/ROracle.so, 6): Library not loaded: @rpath/libclntsh.dylib.12.1
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/ROracle/libs/ROracle.so
Reason: image not foundwith the same reference to |
|
I suspect this is another consequence of the hardened runtime requirements for RStudio on macOS. You can work around this with Let me know if this is sufficient. |
|
That worked, thank you! Something interesting I noticed yesterday is that I installed ROracle (without the information in your fix and without the > install.packages("ROracle")
Warning in install.packages :
unable to access index for repository ...:
cannot open URL ...
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ROracle’
Do you want to attempt to install these from sources? (Yes/no/cancel) yes
installing the source package ‘ROracle’
trying URL 'https://cran.rstudio.com/src/contrib/ROracle_1.3-1.tar.gz'
Content type 'application/x-gzip' length 308252 bytes (301 KB)
==================================================
downloaded 301 KB
* installing *source* package ‘ROracle’ ...
** package ‘ROracle’ successfully unpacked and MD5 sums checked
** using staged installation
configure: creating ./config.status
config.status: creating src/Makevars
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/ora12/instantclient_12_2/sdk/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c rodbi.c -o rodbi.o
rodbi.c:2432:53: warning: format specifies type 'long long' but the argument has type 'sb8' (aka 'long') [-Wformat]
sprintf(err_buf, RODBI_ERR_BIND_VAL_TOOBIG, bndsz);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
rodbi.c:2469:53: warning: format specifies type 'long long' but the argument has type 'sb8' (aka 'long') [-Wformat]
sprintf(err_buf, RODBI_ERR_BIND_VAL_TOOBIG, bndsz);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
rodbi.c:2816:55: warning: format specifies type 'long long' but the argument has type 'sb8' (aka 'long') [-Wformat]
sprintf(err_buf, RODBI_ERR_BIND_VAL_TOOBIG, bndsz);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
rodbi.c:2861:55: warning: format specifies type 'long long' but the argument has type 'sb8' (aka 'long') [-Wformat]
sprintf(err_buf, RODBI_ERR_BIND_VAL_TOOBIG, bndsz);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
4 warnings generated.
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/ora12/instantclient_12_2/sdk/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c rooci.c -o rooci.o
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o ROracle.so rodbi.o rooci.o -L/opt/ora12/instantclient_12_2 -lclntsh -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.6/Resources/library/00LOCK-ROracle/00new/ROracle/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (ROracle)But then I would get the error when I tried to load it: > library(ROracle)
Error: package or namespace load failed for ‘ROracle’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ROracle/libs/ROracle.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ROracle/libs/ROracle.so, 6): Library not loaded: @rpath/libclntsh.dylib.12.1
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/ROracle/libs/ROracle.so
Reason: image not found |
|
It sounds like the underlying issue is now understood and solved, so I believe this can be closed. |
|
@kevinushey I'm okay with closing it, but why would the package install successfully, including ** testing if installed package can be loaded from final locationbut then fail to load when I call |
|
Honestly, I'm not exactly sure. All I know is, based on the error message: it's because |
|
Okay no problem, thanks for the follow-up! |
System details
Steps to reproduce the problem
/opt/ora12/instantclient_12_2/opt/ora12/instantclient_12_2(will create/opt/ora12/instantclient_12_2/sdkand put content there).~/.Renviron:install.packages("ROracle")Describe the problem in detail
Loading ROracle results in an error saying that an image can't be found.
Other info:
Describe the behavior you expected
I expected the ROracle package to load correctly. Note that when I revert to RStudio 1.2.1335 the error does not occur and ROracle loads correctly.
The text was updated successfully, but these errors were encountered: