• Home
  • Resources
    Education Techs Posts Kitab Kuning Blog Journey
  • Portfolios

Invalid MEX File for Caffe

$ sudo apt-get install lib64stdc++6
$ sudo apt-get install wmname
$ cd (Your MATLAB bin DIR, ex:/usr/local/MATLAB/R2016b/bin)
$ mv matlab matlab_actual
$ sudo gedit matlab
In the matlab file, type:
#!/bin/sh
wmname LG3D
export LD_PRELOAD=/usr/lib64/libstdc++.so.6
(Your MATLAB bin DIR, ex:/usr/local/MATLAB/R2016b/bin)/matlab_actual "$@"


Credit to Albert C.
Let's Connect