Bad CPU type in executable

10 次查看(过去 30 天)
Reuben Addison
Reuben Addison 2023-4-13
回答: Dinesh 2023-5-4
I am using the latest iOS Ventura on a M1 Mac. I am running a toolbox in matlab DPARSF and I keep running into errors and I don’t know how to resolve it /bin/bash: ./dcm2nii_mac: Bad CPU type in executable Converting T1 Images:Sub_01 OK Error using DPARSFA_run Index exceeds the number of array elements. Index must not exceed 0.
Error in DPARSFA>pushbuttonRun_Callback (line 1601) [Error]=DPARSFA_run(handles.Cfg);
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in DPARSFA (line 33) gui_mainfcn(gui_State, varargin{:});
Error using msgbox Error while evaluating UIControl Callback.

回答(1 个)

Dinesh
Dinesh 2023-5-4
Hi Reuben.
I think the error that you're encountering ("Bad CPU type in executable") is mostly because the "dcm2nii_mac" executable in the DPARSFA toolbox is not compatible with the M1 Mac architecture. It's because the new M1 Macs use an ARM based processor and I believe the dcm2nii_mac executable might be built for x86 processors, more specifically x86_64 which were used in previous Macs that used Intel.
To resolve this, firstly check if there's an updated version of the DPARSFA toolbox that is compatible for the M1 Mac architecture.
If there is no such update available, then you can use a tool like "Rosetta 2" that allows you to run Intel based apps on M1 Mac.
Here's a link that can help you with the same.

类别

Help CenterFile Exchange 中查找有关 MRI 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by