Installing Tom Minka’s Lightspeed on Linux
I am a huge fan of Tom Minka’s Lightspeed Toolbox for MATLAB. I am so dependent on it that I can’t even remember which functions are native to MATLAB and which are Tom’s inventions. However, Tom is at Microsoft Research Cambridge and so he doesn’t spend much time making sure that it works easily on Linux. So every time I install it, I have to modify the installation file “install_lightspeed.m”. So, here is the diff:
25,29c25
< if ispc
< w = fullfile(matlabroot,'toolbox\matlab\elmat\repmat.m');
< else
< w = fullfile(matlabroot,'toolbox/matlab/elmat/repmat.m');
< end
---
> w = fullfile(matlabroot,’toolbox\matlab\elmat\repmat.m’);
84,85d79
< lapacklib = '-llapack';
< blaslib = '-lblas';
148c142
< eval(['mex -f ' fullfile(matlabroot, 'bin/matopts.sh') ' matfile.c']);
---
> mex -f matopts.sh matfile.c
Note that this doesn’t really fix everything. I still get errors regarding ‘matfile.c’ but it’s an improvement.