ncdisp error on rocky 9 but works fine on ubuntu 24.04
Mostrar comentarios más antiguos
Hi,
We met the problem on "ncdisp" command returning error on the Rocky Linux 9.
The matlab version is 2024b, on MacOS 14, Ubuntu 24.04, the "ncdisp" works fine, and the output is below:

However, there are errors on Rocky 9:

We have googled this problem, some users said it's the SSL certificate issue. We have reinstalled the "ca-certificate" but the errors are still the same.
Is it a compatibility issue on Rocky 9?
Respuestas (1)
I understand that you have already reinstalled the 'ca-certificates' package as a workaround, but from what I can gather, it still appears that the issue is related to the CA certificate. Please follow the steps below to check if this is the case:
Create a file named ".dodsrc" in your current directory with the following content:
HTTP.VERBOSE = 1 % enables verbose
Run the "ncdisp" command in the MATLAB Command Window from the same directory. Use the following command:
>> ncdisp(<URL>); % runs a test command
If the output shows errors mentioning missing or corrupted CA certificate files, it confirms that the issue is due to incorrect certificate links.
To fix the error, add the following lines to the ".dodsrc" file:
HTTP.SSL.CAPATH = <path-to-certificate>
HTTP.SSL.CAINFO = <path-to-certificate>
Create symbolic links to the correct certificate files.
This can be done using the ln command in a Linux terminal:
ln -s <path-to-certificate> <destination> % creates symbolic links to the correct certificate files
I hope this helps, thanks!
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!