# Eyelink.mexa64 problem on linux

**URL:** https://psychtoolbox.discourse.group/t/eyelink-mexa64-problem-on-linux/876
**Category:** Uncategorized
**Created:** [February 20, 2019, 1:31pm UTC](https://psychtoolbox.discourse.group/t/eyelink-mexa64-problem-on-linux/876 "2019-02-20T13:31:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)
#### Post date: [February 20, 2019, 1:31pm UTC](https://psychtoolbox.discourse.group/t/eyelink-mexa64-problem-on-linux/876/1 "2019-02-20T13:31:47Z")

</div>

Hi Mario ! :-)&nbsp;

We are setting up a linux (ubuntu 18.04.2 LTS) stimulus computer running matlab 2017b&nbsp; and psychtoolbox

3.0.15 - Flavor: beta - Corresponds to SVN Revision 9637

&nbsp; &nbsp; &nbsp;For more info visit:

&nbsp; &nbsp; &nbsp;[https://github.com/Psychtoolbox-3/Psychtoolbox-3'](https://github.com/Psychtoolbox-3/Psychtoolbox-3%27)

We have installed Eyelink tools ad described here

[https://www.sr-support.com/forum/downloads/eyelink-display-software/46-eyelink-developers-kit-for-linux-linux-display-software](https://www.sr-support.com/forum/downloads/eyelink-display-software/46-eyelink-developers-kit-for-linux-linux-display-software)

We can run the demo experiment provided by sr research (e.g.&nbsp;sudo ./gcwindow ) but we fail to control eyelink from within the Eyelink toolbox provided with PTB. We are totally clueless, so perhaps you could help. Thanks a lot!

Details about the error are below (obviously, Eyelink.mexa64 exists in its place):

\>\> EyelinkToolboxTest

Testing EyelinkToolbox functions

In place of the expected mex file this placeholder file was executed:

&nbsp; Eyelink

This mex file seems to be missing or inaccessible on your Matlab path or it is dysfunctional:

&nbsp; Eyelink.mexa64

Another reason could be insufficient access permissions or&nbsp;

some missing 3rd party libraries on your system.

Error using AssertMex (line 177)

Missing or dysfunctional Psychtoolbox Mex file for this operating system.

Read the help text above carefully!!

Error in Eyelink (line 28)

AssertMex('Eyelink.m');

Error in EyelinkToolboxTest (line 4)

Eyelink

\*\*\*\*\*\*

\>\> EyelinkGazeContingentDemo

EyelinkGazeContingentDemo (20-Feb-2019 14:29:11)

Press space or click on mouse to stop demo.

PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.15 - Build date: Feb&nbsp; 6 2019).

PTB-INFO: Support status on this operating system release: Linux 4.15.0-45-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: NVIDIA Corporation - GK208 [GeForce GT 710B] GPU found. Trying to establish low-level access...

PTB-INFO: Connected to NVidia GK208 [GeForce GT 710B] GPU of NV-0e0 family with 4 display heads.

PTB-INFO: OpenGL-Renderer is nouveau :: NV106 :: 3.1 Mesa 18.2.2

PTB-INFO: VBL startline = 1050 , VBL Endline = 1079

PTB-INFO: Measured monitor refresh interval from beamposition = 16.698185 ms [59.886747 Hz].

PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.

PTB-INFO: Measured monitor refresh interval from VBLsync = 16.698155 ms [59.886854 Hz]. (50 valid samples taken, stddev=0.000669 ms.)

PTB-INFO: Reported monitor refresh interval from operating system = 16.699509 ms [59.882000 Hz].

PTB-INFO: Small deviations between reported values are normal and no reason to worry.

Error using Eyelink

Too many input arguments.

Error in EyelinkGazeContingentDemo\>cleanup (line 388)

Eyelink('Shutdown');

Error in EyelinkGazeContingentDemo (line 379)

&nbsp; &nbsp; cleanup;

---

<div class="post-metadata">

### Author: ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)
#### Post date: [February 21, 2019, 5:23pm UTC](https://psychtoolbox.discourse.group/t/eyelink-mexa64-problem-on-linux/876/2 "2019-02-21T17:23:28Z")

</div>

On Thu, Feb 21, 2019 at 12:08 AM [natalia.zaretskaya@...](mailto:natalia.zaretskaya@...)  
[PSYCHTOOLBOX] \<[PSYCHTOOLBOX@yahoogroups.com](mailto:PSYCHTOOLBOX@yahoogroups.com)\> wrote:  

> \> Hi Mario ! :-)  
> \>

Hey Natalia! 12:08 AM??  
  

> \>  
> \> We are setting up a linux (ubuntu 18.04.2 LTS) stimulus computer running matlab 2017b and psychtoolbox  
> \>  
> \> 3.0.15 - Flavor: beta - Corresponds to SVN Revision 9637  
> \>  
> \> For more info visit:  
> \>  
> \> [https://github.com/Psychtoolbox-3/Psychtoolbox-3'](https://github.com/Psychtoolbox-3/Psychtoolbox-3')  
> \>  
> \>  
> \> We have installed Eyelink tools ad described here  
> \>  
> \> [https://www.sr-support.com/forum/downloads/eyelink-display-software/46-eyelink-developers-kit-for-linux-linux-display-software](https://www.sr-support.com/forum/downloads/eyelink-display-software/46-eyelink-developers-kit-for-linux-linux-display-software)  
> \>  
> \>  
> \> We can run the demo experiment provided by sr research (e.g. sudo ./gcwindow ) but we fail to control eyelink from within the Eyelink toolbox provided with PTB. We are totally clueless, so perhaps you could help. Thanks a lot!  
> \>  
> \> Details about the error are below (obviously, Eyelink.mexa64 exists in its place):  
> \>

Are you sure it is? It should be, but EyelinkToolboxTest suggests it  
isn't. What's the output of "which Eyelink" in Matlab? It should be  
reported in the /pathtopsychtoolbox/Psychtoolbox/PsychBasic/ folder as  
Eyelink.mexa64  
  
What's the output of simply typing "Eyelink Version" in Matlab?  
  
If it is in place, in a terminal window, what's the output of  
  
ldd /pathtopsychtoolbox/Psychtoolbox/PsychBasic/Eyelink.mexa64  
  
My output for a working file is:  
  
 linux-vdso.so.1 (0x00007fff1e142000)  
 libgtk3-nocsd.so.0 =\>  
/usr/lib/x86\_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007ff753037000)  
 libeyelink\_core-1.9.so.58 =\>  
/usr/lib/libeyelink\_core-1.9.so.58 (0x00007ff752de3000)  
 libc.so.6 =\> /lib/x86\_64-linux-gnu/libc.so.6 (0x00007ff7529f2000)  
 libmx.so =\> not found  
 libmex.so =\> not found  
 libm.so.6 =\> /lib/x86\_64-linux-gnu/libm.so.6 (0x00007ff752654000)  
 libpthread.so.0 =\> /lib/x86\_64-linux-gnu/libpthread.so.0  
(0x00007ff752435000)  
 libdl.so.2 =\> /lib/x86\_64-linux-gnu/libdl.so.2 (0x00007ff752231000)  
 librt.so.1 =\> /lib/x86\_64-linux-gnu/librt.so.1 (0x00007ff752029000)  
 /lib64/ld-linux-x86-64.so.2 (0x00007ff753476000)  
  
Especially libeyelink\_core should not point to "=\> not found",  
otherwise the linker can't find the libraries.  
  
If it does, try "sudo ldconfig" in the terminal, then restart Matlab  
and see if any of the output changes for the better.  
  
-mario  
  

> \>  
> \>  
> \> \>\> EyelinkToolboxTest  
> \>  
> \> Testing EyelinkToolbox functions  
> \>  
> \>  
> \> In place of the expected mex file this placeholder file was executed:  
> \>  
> \>  
> \> Eyelink  
> \>  
> \>  
> \> This mex file seems to be missing or inaccessible on your Matlab path or it is dysfunctional:  
> \>  
> \>  
> \> Eyelink.mexa64  
> \>  
> \>  
> \> Another reason could be insufficient access permissions or  
> \>  
> \> some missing 3rd party libraries on your system.  
> \>  
> \>  
> \> Error using AssertMex (line 177)  
> \>  
> \> Missing or dysfunctional Psychtoolbox Mex file for this operating system.  
> \>  
> \> Read the help text above carefully!!  
> \>  
> \>  
> \> Error in Eyelink (line 28)  
> \>  
> \> AssertMex('Eyelink.m');  
> \>  
> \>  
> \> Error in EyelinkToolboxTest (line 4)  
> \>  
> \> Eyelink  
> \>  
> \>  
> \> \*\*\*\*\*\*  
> \>  
> \> \>\> EyelinkGazeContingentDemo  
> \>  
> \> EyelinkGazeContingentDemo (20-Feb-2019 14:29:11)  
> \>  
> \> Press space or click on mouse to stop demo.  
> \>  
> \>  
> \>  
> \> PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.15 - Build date: Feb 6 2019).  
> \>  
> \> PTB-INFO: Support status on this operating system release: Linux 4.15.0-45-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: NVIDIA Corporation - GK208 [GeForce GT 710B] GPU found. Trying to establish low-level access...  
> \>  
> \> PTB-INFO: Connected to NVidia GK208 [GeForce GT 710B] GPU of NV-0e0 family with 4 display heads.  
> \>  
> \>  
> \>  
> \> PTB-INFO: OpenGL-Renderer is nouveau :: NV106 :: 3.1 Mesa 18.2.2  
> \>  
> \> PTB-INFO: VBL startline = 1050 , VBL Endline = 1079  
> \>  
> \> PTB-INFO: Measured monitor refresh interval from beamposition = 16.698185 ms [59.886747 Hz].  
> \>  
> \> PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.  
> \>  
> \> PTB-INFO: Measured monitor refresh interval from VBLsync = 16.698155 ms [59.886854 Hz]. (50 valid samples taken, stddev=0.000669 ms.)  
> \>  
> \> PTB-INFO: Reported monitor refresh interval from operating system = 16.699509 ms [59.882000 Hz].  
> \>  
> \> PTB-INFO: Small deviations between reported values are normal and no reason to worry.  
> \>  
> \> Error using Eyelink  
> \>  
> \> Too many input arguments.  
> \>  
> \>  
> \> Error in EyelinkGazeContingentDemo\>cleanup (line 388)  
> \>  
> \> Eyelink('Shutdown');  
> \>  
> \>  
> \> Error in EyelinkGazeContingentDemo (line 379)  
> \>  
> \> cleanup;  
> \>  
> \>

---

<div class="post-metadata">

### Author: ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)
#### Post date: [February 23, 2019, 4:11am UTC](https://psychtoolbox.discourse.group/t/eyelink-mexa64-problem-on-linux/876/3 "2019-02-23T04:11:38Z")

</div>

> \> Hi Mario,  
> \>  
> \> - Solved! The problem was the fact that the EyelinkToolbox was listed first in the matlab path list, and the rest of psychtoolbox intallation followed after. Moving the whole EyelinkToolbox Paths to the end of the path file solved the problem. Topic closed :-)  
> \> Thanks, Mario, for asking the right questions :-)  
> \>  
> \> I guess it should be said that by default, Eyelink toolbox is not added to the matlab path during psychtoolbox installation, so anyone using it should think of having the right order. Am I right?  
> \>  
> \> Natalia

That's strange. Eyelink TB path should be present and in the right  
order by default, and is so on my machines. I could probably improve  
the setup routine to make sure the mex files are at the top of the  
path not only on Octave, and for Matlab on Windows, but also for Linux  
and OSX. So far that wasn't necessary. Computers are weird...  
  
Case closed,  
-mario  
  
On Thu, Feb 21, 2019 at 6:23 PM Mario Kleiner  
\<[mario.kleiner.de@...](mailto:mario.kleiner.de@...)\> wrote:  

> \>  
> \> On Thu, Feb 21, 2019 at 12:08 AM [natalia.zaretskaya@...](mailto:natalia.zaretskaya@...)  
> \> [PSYCHTOOLBOX] \<[PSYCHTOOLBOX@yahoogroups.com](mailto:PSYCHTOOLBOX@yahoogroups.com)\> wrote:  
> \> \> Hi Mario ! :-)  
> \> \>  
> \>  
> \> Hey Natalia! 12:08 AM??  
> \>  
> \> \>  
> \> \> We are setting up a linux (ubuntu 18.04.2 LTS) stimulus computer running matlab 2017b and psychtoolbox  
> \> \>  
> \> \> 3.0.15 - Flavor: beta - Corresponds to SVN Revision 9637  
> \> \>  
> \> \> For more info visit:  
> \> \>  
> \> \> [https://github.com/Psychtoolbox-3/Psychtoolbox-3'](https://github.com/Psychtoolbox-3/Psychtoolbox-3')  
> \> \>  
> \> \>  
> \> \> We have installed Eyelink tools ad described here  
> \> \>  
> \> \> [https://www.sr-support.com/forum/downloads/eyelink-display-software/46-eyelink-developers-kit-for-linux-linux-display-software](https://www.sr-support.com/forum/downloads/eyelink-display-software/46-eyelink-developers-kit-for-linux-linux-display-software)  
> \> \>  
> \> \>  
> \> \> We can run the demo experiment provided by sr research (e.g. sudo ./gcwindow ) but we fail to control eyelink from within the Eyelink toolbox provided with PTB. We are totally clueless, so perhaps you could help. Thanks a lot!  
> \> \>  
> \> \> Details about the error are below (obviously, Eyelink.mexa64 exists in its place):  
> \> \>  
> \>  
> \> Are you sure it is? It should be, but EyelinkToolboxTest suggests it  
> \> isn't. What's the output of "which Eyelink" in Matlab? It should be  
> \> reported in the /pathtopsychtoolbox/Psychtoolbox/PsychBasic/ folder as  
> \> Eyelink.mexa64  
> \>  
> \> What's the output of simply typing "Eyelink Version" in Matlab?  
> \>  
> \> If it is in place, in a terminal window, what's the output of  
> \>  
> \> ldd /pathtopsychtoolbox/Psychtoolbox/PsychBasic/Eyelink.mexa64  
> \>  
> \> My output for a working file is:  
> \>  
> \> linux-vdso.so.1 (0x00007fff1e142000)  
> \> libgtk3-nocsd.so.0 =\>  
> \> /usr/lib/x86\_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007ff753037000)  
> \> libeyelink\_core-1.9.so.58 =\>  
> \> /usr/lib/libeyelink\_core-1.9.so.58 (0x00007ff752de3000)  
> \> libc.so.6 =\> /lib/x86\_64-linux-gnu/libc.so.6 (0x00007ff7529f2000)  
> \> libmx.so =\> not found  
> \> libmex.so =\> not found  
> \> libm.so.6 =\> /lib/x86\_64-linux-gnu/libm.so.6 (0x00007ff752654000)  
> \> libpthread.so.0 =\> /lib/x86\_64-linux-gnu/libpthread.so.0  
> \> (0x00007ff752435000)  
> \> libdl.so.2 =\> /lib/x86\_64-linux-gnu/libdl.so.2 (0x00007ff752231000)  
> \> librt.so.1 =\> /lib/x86\_64-linux-gnu/librt.so.1 (0x00007ff752029000)  
> \> /lib64/ld-linux-x86-64.so.2 (0x00007ff753476000)  
> \>  
> \> Especially libeyelink\_core should not point to "=\> not found",  
> \> otherwise the linker can't find the libraries.  
> \>  
> \> If it does, try "sudo ldconfig" in the terminal, then restart Matlab  
> \> and see if any of the output changes for the better.  
> \>  
> \> -mario  
> \>  
> \> \>  
> \> \>  
> \> \> \>\> EyelinkToolboxTest  
> \> \>  
> \> \> Testing EyelinkToolbox functions  
> \> \>  
> \> \>  
> \> \> In place of the expected mex file this placeholder file was executed:  
> \> \>  
> \> \>  
> \> \> Eyelink  
> \> \>  
> \> \>  
> \> \> This mex file seems to be missing or inaccessible on your Matlab path or it is dysfunctional:  
> \> \>  
> \> \>  
> \> \> Eyelink.mexa64  
> \> \>  
> \> \>  
> \> \> Another reason could be insufficient access permissions or  
> \> \>  
> \> \> some missing 3rd party libraries on your system.  
> \> \>  
> \> \>  
> \> \> Error using AssertMex (line 177)  
> \> \>  
> \> \> Missing or dysfunctional Psychtoolbox Mex file for this operating system.  
> \> \>  
> \> \> Read the help text above carefully!!  
> \> \>  
> \> \>  
> \> \> Error in Eyelink (line 28)  
> \> \>  
> \> \> AssertMex('Eyelink.m');  
> \> \>  
> \> \>  
> \> \> Error in EyelinkToolboxTest (line 4)  
> \> \>  
> \> \> Eyelink  
> \> \>  
> \> \>  
> \> \> \*\*\*\*\*\*  
> \> \>  
> \> \> \>\> EyelinkGazeContingentDemo  
> \> \>  
> \> \> EyelinkGazeContingentDemo (20-Feb-2019 14:29:11)  
> \> \>  
> \> \> Press space or click on mouse to stop demo.  
> \> \>  
> \> \>  
> \> \>  
> \> \> PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.15 - Build date: Feb 6 2019).  
> \> \>  
> \> \> PTB-INFO: Support status on this operating system release: Linux 4.15.0-45-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: NVIDIA Corporation - GK208 [GeForce GT 710B] GPU found. Trying to establish low-level access...  
> \> \>  
> \> \> PTB-INFO: Connected to NVidia GK208 [GeForce GT 710B] GPU of NV-0e0 family with 4 display heads.  
> \> \>  
> \> \>  
> \> \>  
> \> \> PTB-INFO: OpenGL-Renderer is nouveau :: NV106 :: 3.1 Mesa 18.2.2  
> \> \>  
> \> \> PTB-INFO: VBL startline = 1050 , VBL Endline = 1079  
> \> \>  
> \> \> PTB-INFO: Measured monitor refresh interval from beamposition = 16.698185 ms [59.886747 Hz].  
> \> \>  
> \> \> PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.  
> \> \>  
> \> \> PTB-INFO: Measured monitor refresh interval from VBLsync = 16.698155 ms [59.886854 Hz]. (50 valid samples taken, stddev=0.000669 ms.)  
> \> \>  
> \> \> PTB-INFO: Reported monitor refresh interval from operating system = 16.699509 ms [59.882000 Hz].  
> \> \>  
> \> \> PTB-INFO: Small deviations between reported values are normal and no reason to worry.  
> \> \>  
> \> \> Error using Eyelink  
> \> \>  
> \> \> Too many input arguments.  
> \> \>  
> \> \>  
> \> \> Error in EyelinkGazeContingentDemo\>cleanup (line 388)  
> \> \>  
> \> \> Eyelink('Shutdown');  
> \> \>  
> \> \>  
> \> \> Error in EyelinkGazeContingentDemo (line 379)  
> \> \>  
> \> \> cleanup;  
> \> \>  
> \> \>
