Closed yohanyee closed 6 months ago
We have tried this fix and we got this error, We tried this (export LDFLAGS="$LDFLAGS -L$(brew --prefix zlib)/lib") also before opening R in terminal MacOS Monterey 12.6.7, R version 4.3.1
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘RMINC’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/00LOCK-RMINC-master-2/00new/RMINC/libs/RMINC.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/00LOCK-RMINC-master-2/00new/RMINC/libs/RMINC.so, 0x0006): Library not loaded: 'libz.1.dylib'
Referenced from: '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/00LOCK-RMINC-master-2/00new/RMINC/libs/RMINC.so'
Reason: tried: 'libz.1.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libz.1.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libz.1.dylib' (no such file), '/Users/fatemahsakr/Downloads/RMINC-master-2/libz.1.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libz.1.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libz.1.dylib' (no such file)
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/RMINC’
This looks unrelated and is an issue with your zlib library configuration
any idea how to fix zlib configuration ? I have tried to reinstall zlib using brew and the same error happened I even have tried to install RMINC while uninstalled zlib and the same error occur
Fixes the issue caused by hidden length arguments in R>=4.3.0, and addresses issue #314 . Some other minor edits include:
Successfully built with no failing tests on: