R disabled due to incompatible architecture on Mac M2

85 views
Skip to first unread message

Michael Troup

unread,
Jul 7, 2025, 3:35:20 AM7/7/25
to golden-cheetah-users
I installed R on my MacBook pro (M2) with the appropriate arm R pkg file.

When I install GoldenCheetah & configure for R, it says that R is recognised but that it cannot load libraries due to incompatible architecture : "Cannot load library /Library/Frameworks/R.framework/Resources/lib/libR.dylib: (dlopen(/Library/Frameworks/R.framework/Resources/lib/libR.dylib, 0x0005): tried: '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')),..."

Does anyone have any ideas on how I could rectify this?

-----------
message loading GC with R library specified:
-----------
Cannot load library /Library/Frameworks/R.framework/Resources/lib/libR.dylib: (dlopen(/Library/Frameworks/R.framework/Resources/lib/libR.dylib, 0x0005): tried: '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')))
The dynamic library load failed.

R has now been disabled in options.

----------
R version
----------
(installed from R-4.5.1-arm64.pkg)
R version 4.5.1 (2025-06-13) -- "Great Square Root"
Copyright (C) 2025 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20

-----------
Mac details
-----------
MacBook Pro 16 inch 2023
Apple M2 Pro
16GB
macOS Sequoia 15.1.1

------------
GC details
------------
v3.7 build 5005

Ale Martinez

unread,
Jul 7, 2025, 7:28:45 AM7/7/25
to golden-cheetah-users
El lunes, 7 de julio de 2025 a la(s) 4:35:20 a.m. UTC-3, mick....@gmail.com escribió:
I installed R on my MacBook pro (M2) with the appropriate arm R pkg file.

When I install GoldenCheetah & configure for R, it says that R is recognised but that it cannot load libraries due to incompatible architecture : "Cannot load library /Library/Frameworks/R.framework/Resources/lib/libR.dylib: (dlopen(/Library/Frameworks/R.framework/Resources/lib/libR.dylib, 0x0005): tried: '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')),..."

Does anyone have any ideas on how I could rectify this?

macOS doesn’t support mixed libraries, so you have two options:
1) install the x86_64 package of R to use with GoldenCheetah
2) build GoldenCheetah from source to have an ARM binary
The first option is easier, the second has better performance.

Michael Troup

unread,
Jul 7, 2025, 7:42:35 AM7/7/25
to golden-che...@googlegroups.com
Thanks 👍

--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golden-cheetah-users/12b0d727-c0d1-42fb-88be-42f3b41c8fffn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages