Hi,
I am running matlab R2010a on macOSX 10.6.8 and every time I try to use the InitializePsychSound command, I get the following error:
In place of the expected mex file this placeholder file was executed:
PsychPortAudio
This mex file seems to be missing or inaccessible on your Matlab path or it is dysfunctional:
PsychPortAudio.mexmaci
Another reason could be insufficient access permissions or
some missing 3rd party libraries on your system.
Failed to load PsychPortAudio driver!
The most likely cause is that the helper library libportaudio.0.0.19.dylib is not
stored in one of the library directories. This is the case at first use of the new
sound driver.
A copy of this file can be found in /Applications/Psychtoolbox/PsychSound/libportaudio.0.0.19.dylib
You need to copy that file into one of the following directories, then retry:
If you have administrator permissions, copy it to (at your option): /usr/local/lib
or /usr/lib -- you may need to create that directories first.
If you are a normal user, you can also create a subdirectory lib/ in your home folder
then copy the file there. E.g., your user name is lisa, then copy the file into
/Users/lisa/lib/
Please try this steps, then restart your script.
The exact error message of the linker was: Error using ==> AssertMex at 210
Missing or dysfunctional Psychtoolbox Mex file for this operating system. Read the help text above carefully!!
??? Error using ==> InitializePsychSound at 140
Failed to load PsychPortAudio driver.
I followed the instructions exactly and copied the helper library file into /usr/lib and also tried reinstalling both matlab and psychtoolbox but it still keeps giving me this same error. Any ideas?
Thanks so much,
Laura
I am running matlab R2010a on macOSX 10.6.8 and every time I try to use the InitializePsychSound command, I get the following error:
In place of the expected mex file this placeholder file was executed:
PsychPortAudio
This mex file seems to be missing or inaccessible on your Matlab path or it is dysfunctional:
PsychPortAudio.mexmaci
Another reason could be insufficient access permissions or
some missing 3rd party libraries on your system.
Failed to load PsychPortAudio driver!
The most likely cause is that the helper library libportaudio.0.0.19.dylib is not
stored in one of the library directories. This is the case at first use of the new
sound driver.
A copy of this file can be found in /Applications/Psychtoolbox/PsychSound/libportaudio.0.0.19.dylib
You need to copy that file into one of the following directories, then retry:
If you have administrator permissions, copy it to (at your option): /usr/local/lib
or /usr/lib -- you may need to create that directories first.
If you are a normal user, you can also create a subdirectory lib/ in your home folder
then copy the file there. E.g., your user name is lisa, then copy the file into
/Users/lisa/lib/
Please try this steps, then restart your script.
The exact error message of the linker was: Error using ==> AssertMex at 210
Missing or dysfunctional Psychtoolbox Mex file for this operating system. Read the help text above carefully!!
??? Error using ==> InitializePsychSound at 140
Failed to load PsychPortAudio driver.
I followed the instructions exactly and copied the helper library file into /usr/lib and also tried reinstalling both matlab and psychtoolbox but it still keeps giving me this same error. Any ideas?
Thanks so much,
Laura