Bad CPU type in executable

22 vues (au cours des 30 derniers jours)
Reuben Addison
Reuben Addison le 13 Avr 2023
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.

Réponses (1)

Dinesh
Dinesh le 4 Mai 2023
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.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by