Cannot load .so file in R - r

I have been trying to load a shared object file ".so" into my R however it continuously comes up with an error (note, my Path is written as [PATH]).
Error in dyn.load("McCOIL_categorical_code.so") :
unable to load shared object '[PATH]/McCOIL_categorical_code.so':
dlopen([PATH]/McCOIL_categorical_code.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.2/Resources/lib/libR.dylib
Referenced from: [PATH]/McCOIL_categorical_code.so
Reason: image not found
Could anyone please advise? Thank you so much in advance!!

Related

using Xpress failed

when I type using Xpress it show me two errors. One is
LoadError: XPRESS cannot be loaded. Please run Pkg.build("Xpress")
and another is
Failed to precompile Xpress [9e70acf3-d6c9-5be6-b5bd-4e2c73e3e054] to C:\Users\cys\.julia\compiled\v1.6\Xpress\jl_7C6D.tmp.
I tried to solve it by Pkg.build("Xpress") but it show me
ERROR: Error building `Xpress`:
ERROR: LoadError: Unable to locate Xpress installation.
Please check your enviroment variable XPRESSDIR.
Note that Xpress must be obtained separately from fico.com.
using XpressPkg.build("Xpress")
Please follow the installation instructions mentioned here: https://github.com/jump-dev/Xpress.jl#install which go into the perquisites installs required before you can successfully type using Xpress.

R package requiring dll

I am now trying to use an R package named gepR. I followed instructions provided by the demo and encountered an error saying that: LoadLibrary failure: the specified module could not be found.
I have tried many solutions posted online, including edit environment variable of the system, put gepR.dll in the system directory (like C:/Windows/system), etc. But none of them works. So I think the error message is not about gepR.dll but some other files. I realized it may be caused by some missing files but I am not sure about how to do the troubleshooting.
Error message:
Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object: .../my/working/directory:
LoadLibrary failure: the specified module could not be found.
Really sorry that I know merely a little about how computers work and really need your help. Thanks!

Android Studio 4 Build ERROR : Execution failed for task ':app:mergeDebugResources'

Hello this is my first time make android program and found this error but the code not have an error point. the error message is below :
Execution failed for task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Failed to transform aapt2-4.1.1-6503028-windows.jar (com.android.tools.build:aapt2:4.1.1-6503028) to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for Aapt2Extractor: C:\Users\lenovo.gradle\caches\modules-2\files-2.1\com.android.tools.build\aapt2\4.1.1-6503028\cc838ebadee3649d47e07d029371bc1054e2200d\aapt2-4.1.1-6503028-windows.jar.
> java.io.IOException: Unable to delete directory 'C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
- C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc\aapt2-4.1.1-6503028-windows
can someone tell me how to fix it ?
i had same problem in linux
tried many ways and asked some question.
finally found out there is file missing named aap2 in build-tools
i couldn't find that file to place it in destination so i deleted whole file and re Download it with sdk manager and if it doesn't work too i guess u should try reinstall android studio
yes its not a good answer but it was all experience i had with this error.

Authentication issue with R's bigrquery

This post makes it clear that the function bq_auth() should be used to authenticate BigQuery in R. However, I have created a BigQuery-Admin service account, downloaded a service account key, and have passed that key into the bq_auth() function, yet I continue to receive the error:
> bigrquery::bq_auth(path = '/Users/nicholas/Downloads/just_downladed_this_key.json')
trying token_fetch()
trying credentials_service_account()
adding 'userinfo.email' scope
Error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/openssl/libs/openssl.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/openssl/libs/openssl.so, 6): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/openssl/libs/openssl.so
Reason: image not found
trying credentials_app_default()
file exists at ADC path: /Users/nicholas/.config/gcloud
Error: parse error: premature EOF
(right here) ------^
trying credentials_gce()
Error: argument is of length zero
trying credentials_byo_oauth()
Error: inherits(token, "Token2.0") is not TRUE
trying credentials_user_oauth2()
Gargle2.0 initialize
attempt from: bigrquery
adding 'userinfo.email' scope
loading token from the cache
Error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/openssl/libs/openssl.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/openssl/libs/openssl.so, 6): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/openssl/libs/openssl.so
Reason: image not found
It looks like I've got an openssl / libssl issue on my hands...
Reinstalling the openssl library in R, and then rebooting R, did the trick. Running options(gargle_quiet = FALSE) to expose the logs of the error is what really did the trick tho, because it exposed the problem.

Running a video with QMediaPlayer : undefined symbol

I’m trying to run a simple application that plays a video with Qt Multimedia, but I got the following error:
`(TestMultimedia:17734): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-0.10/libgstfcdec.so': /usr/lib64/gstreamer-0.10/libgstfcdec.so: undefined symbol: __gst_debug_min`
It looks like I have a wrong version of libgstfcdec.so. Am i right and how to solve this issue?
Can any one help me, please?
Thanks in advance.

Resources