问题描述
我已经成功地从NeuroDebian存储库安装了psychtoolbox-3,没有任何明显的错误,但是运行AssertOpenGL会产生这非常详细的错误消息.
I've managed to install the psychtoolbox-3 from the NeuroDebian repository without any explicit errors, but running AssertOpenGL yields this very verbose error message.
我的系统规格如下:具有Ubuntu 12.04 LTS的基于Intel的PC
My system specs are as follows: Intel-based PC with Ubuntu 12.04 LTS
我尝试将~/Documents/MATLAB
及其所有子目录添加到Matlab pathdef中,因为这是我将DownloadAdditionsForNeuroDebian
函数指向的位置.同样,我尝试将/usr/share/octave/site/m/psychtoolbox-3/
及其子目录也添加到matlab路径中.
I've tried adding ~/Documents/MATLAB
and all it's subdirectories to the Matlab pathdef, as this is where I pointed the DownloadAdditionsForNeuroDebian
function to. Similarly, I've tried adding /usr/share/octave/site/m/psychtoolbox-3/
and it's subdirectories to the matlab path as well.
该错误似乎是由于对Screen
的调用失败而引起的;根据以上错误消息,找不到Screen
.话虽如此,我仍然可以在Matlab控制台上运行Screen
,尽管出现此错误:
The error seems to be originating from a failed call to Screen
; according to the above error message, Screen
can't be found. That having been said, I'm able to run Screen
at the Matlab console, although I get this error:
>> Screen
In place of the expected mex file this placeholder file was executed:
Screen
This mex file seems to be missing or inaccessible on your Matlab path or it is dysfunctional:
Screen.*
Hmm. I cannot find the file on your Matlab path?!?
One reason could be that your Matlab path is wrong or not up to date
for the current Psychtoolbox. You may want to run SetupPsychtoolbox to
fix possible path problems.
??? Error using ==> AssertMex at 210
Missing or dysfunctional Psychtoolbox Mex file for this operating system. Read the help text above carefully!!
Error in ==> Screen at 161
AssertMex('Screen.m');
运行SetupPsychtoolbox
会产生与第一个错误非常相似的错误.
Running SetupPsychtoolbox
yields an error that is very similar to the first one.
我尝试安装建议的软件包,但它们都已安装-似乎没有任何作用.
I tried installing the suggested packages, but they were all already installed -- nothing seems to work.
我绝对不知道从这里去哪里.有人有什么建议吗?
I have absolutely no idea where to go from here. Does anyone have any suggestions?
推荐答案
SetupPsychtoolbox命令似乎存在错误.对您(对我来说,当我尝试此操作时)发生的事情是,包含Screen.mex的文件夹被放置在搜索路径的底部.这是解决方法;
The SetupPsychtoolbox command seems to have a bug. What is happening for you (and for me, when I tried this) is that the folder containing Screen.mex is being placed at the bottom of the search path. Here's how to fix;
在Matlab命令行中输入"pathtool"
type "pathtool" at the Matlab commandline
找到PsychtoolboxAddons条目并将其移至顶部(对我来说是/usr/share/psychtoolbox-3/PsychtoolboxAddons)
find the PsychtoolboxAddons entry and move it to the top (for me this was /usr/share/psychtoolbox-3/PsychtoolboxAddons)
如果您没有PsychtoolboxAddons文件夹,则可能需要按照 http://docs.psychtoolbox上的说明进行操作.org/DownloadAdditionsForNeuroDebian
If you don't have a folder PsychtoolboxAddons you may need to follow the instructions at http://docs.psychtoolbox.org/DownloadAdditionsForNeuroDebian
别忘了将您的个人Matlab目录也移动到顶部(SetupPsychtoolbox命令将您的个人目录移动到其目录下方,这有点意思).
Don't forget to move your personal Matlab directory to the top also (the SetupPsychtoolbox command moves your personal directory to be underneath it's directories, which is a bit mean).
保存路径.永远不要再次运行SetupPsychtoolbox!
Save the path. Don't ever run SetupPsychtoolbox again!
祝你好运!
这篇关于为什么在运行AssertOpenGL时matlab的psychtoolbox无法检测到Screen mex文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!