Invalid MEX file ubuntu 24.04

Hi,

I have the following problem of
invalid MEX file ‘/usr/share/psychtoolbox-3/PsychBasic/moglcore.mexa64’: libglut.so.3: cannot open shared object file: No such file or directory,

when running VBLSyncTest with pschtoolbox-3, version 3.0.19 - Flavor: Debian package - psychtoolbox-3 (3.0.19.14.dfsg1-1~nd24.04+1) on ubuntu 24.04, Matlab R2024b.
Installing freeglut3-dev (3.4.0-1build1) doesn’t help.

I am using my paid ticket.
79V22UTV-20241221213159:aa836fac28f82986ff7e271f30a2442abc21754a36b63e57c1728734e1e68226

 >> VBLSyncTest

Tried to prepare a new configuration phase via PsychImaging(‘PrepareConfiguration’), but did not finalize the previous phase yet.
You must call the PsychImaging(‘OpenWindow’, …); command at least once to open an onscreen
window according to the provided settings, before you can specify settings for additional onscreen windows.

The most likely reason you see this error message is because your script aborted with some error
before it managed to open the onscreen window. In that case it is best practice to execute a ‘clear all’
command at the Matlab/Octave prompt before you restart your script.

I will restart configuration now and forget the previously made PsychImaging(‘AddTask’, …); settings.
警告: Tried to prepare a new configuration phase, but you did not finalize the previous phase yet!

PsychImaging (行 1779) 内
VBLSyncTest (行 281) 内

PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.19 - Build date: Jun 22 2024).
PTB-INFO: OS support status: Linux 6.8.0-51-generic Supported.
PTB-INFO: Type ‘PsychtoolboxVersion’ for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file ‘License.txt’ in the Psychtoolbox root folder for the exact licensing conditions.

PTB-INFO: For information about paid support, support memberships and other commercial services, please type
PTB-INFO: ‘PsychPaidSupportAndServices’.

PTB-INFO: OpenGL-Renderer is AMD :: AMD Radeon RX 6600 (radeonsi, navi23, LLVM 17.0.6, DRM 3.57, 6.8.0-51-generic) :: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.3
PTB-INFO: VBL startline = 1080 , VBL Endline = -1
PTB-INFO: Measured monitor refresh interval from VBLsync = 16.666279 ms [60.001396 Hz]. (50 valid samples taken, stddev=0.000462 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 16.666667 ms [60.000000 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
次を使用中のエラー: glGetError (行 15)
無効な MEX ファイル ‘/usr/share/psychtoolbox-3/PsychBasic/moglcore.mexa64’: libglut.so.3: 共有オブジェクトファイルを開けません: そのようなファイルやディレクトリはありません

エラー: PsychImaging (行 2612)
glerr = glGetError;
^^^^^^^^^^^^^^^^^^^
エラー: VBLSyncTest (行 295)
w = PsychImaging(‘OpenWindow’,screenNumber, 0, , , , stereo);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I was wrong. I think I just forgot to run PsychLinuxConfiguration.m .
Now everything looks fine.