Error using H5ML.hdf5lib2 Invalid MEX-file '...': The specified procedure could not be found.
    7 views (last 30 days)
  
       Show older comments
    
    MathWorks Support Team
    
 on 15 Sep 2022
  
    
    
    
    
    Answered: MathWorks Support Team
    
 on 29 Dec 2022
            I am running into the following error after upgrading to MATLAB R2022a from MATLAB R2020b: "Error using H5ML.hdf5lib2
Invalid MEX-file 'C:\Program Files\MATLAB\R2022a\toolbox\matlab\imagesci\+H5ML\hdf5lib2.mexw64': The specified procedure could not be found."
My script was running perfectly fine before upgrading to R2022a. I ran the DependenciesGUI Program on the "hdf5lib2.mexw64" file and found several missing internal MATLAB dependencies.
Accepted Answer
  MathWorks Support Team
    
 on 15 Sep 2022
        This may be an issue with the MEX-file not searching for the correct MATLAB bin path. This can happen after upgrading to a newer version of MATLAB when the older version of the MATLAB bin appears before the newer version of the MATLAB bin on the system "Path" environment variable. This can be solved on Windows OS by updating your system "Path" environment variable.
To check your system "Path" environment variable, please type “environment variables” in the Windows search on the taskbar. Click on the option that says “Edit the system environment variables”. The system properties window should appear, click on the “Environment Variables” button on the bottom right. The environment Variables window should appear, click on "Path" under the system variables section (bottom half section) and click on the “Edit” button.
Check if the following path is included as one of the system paths: C:\Program Files\MATLAB\R2022a\bin\win64
If the above path is not present in the list of paths, please click on the “New” button and add the path.
Once the path is created or if the path was already present, please make sure that this path is above, the C:\Program Files\MATLAB\R2020a\bin\win64 path on the list. If the R2022a path is not above the R2020a path, click on the R2022a path and click on the “Move Up” button until the R2022a path is above all other MATLAB paths. Once you have completed these steps and the R2022a path is the first MATLAB path shown on the list, please restart your computer.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!