Can someone help me to solve the prophet library loading for Mac in R? I have successfully installed the package, and when I try to load the library I get the following result:
'''
library(prophet)
> Error: package or namespace load failed for ‘prophet’
> in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared
> object
> '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/prophet/libs/prophet.so':
> dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/prophet/libs/prophet.so,
> 6): Library not loaded: @rpath/libtbb.dylib Referenced from:
> /Library/Frameworks/R.framework/Versions/4.0/Resources/library/prophet/libs/prophet.so
> Reason: image not found
'''
R version is R version 4.0.2, Built for Catalina
However, I don't think that's the problem looking more closely at it. @rpath isn't referring to R's library paths. That's an error being thrown from .so file which is a compiled library. It's looking for another library at runtime.
@rpath stands for Run path search path. So it's a search path for the linker. Runtime Search Path instructs the dynamic linker to search a list of paths in order, to locate the dynamic library.
When you installed the package, was it built from source? If so, I think prophet.so is not finding libtbb.dylib in the locations it was assumed it would be in. Does libttb.dylib exist anywhere on your system?
Seems like libttd.dylib does not exist anywere in my system.
The files prophet.so and prophet.so.DSYM are located in a folder called libs.
Edit: the folder called libs is located in this path: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/prophet
I finally managed to solve it by uninstalling r completely and installing an older version (3.6 instead of 4.0). Not sure what the exact issue was in the end