I recently installed Matlab R2009b(64 bit) on my machine (AMD Athlon, 64 bit), and its working fine.
I've been trying to run a few m-files which I downloaded (from here:
http://people.csail.mit.edu/fergus/i.../bagwords.html) for a project of mine.
A part of the code is as follows
% Call the binary executable
fpath = fileparts(which(mfilename));
if strncmp(computer,'PC',2) % MS Windows
exec_str = ['"' fpath '/xcv_segment.exe"'];
elseif strcmp(computer,'GLNX86') % Linux
exec_str = [fpath '/xcv_segment'];
else error('This function can run only with MS Windows or Linux');
end
%orig_dir = cd;
%cd(fileparts(which(mfilename)));
result = unix([exec_str ' -i ' inname ' -f ' outname ' -' action ' ' opt]);
%cd(orig_dir);
if result ~= 0
error('Calling the binary failed.');
end
try delete(inname); end
The issue is that as you can see, the code checks if it is a Windows or Linux platform, and it checks the latter by comparing with the string 'GLNX86'. When the code runs the error "This function can run only with MS Windows or Linux" is output as specified in the code.
A little bit of googling revealed that GLNX86 is a library that has something to do with the 32 bit architecture of MATLAB.
So I tried installing the 32 bit version using the command,
./install -glnx86
and I get the error message:
./install: line 736: /lib/libc.so.6: No such file or directory
(I also tried it without the GUI using -t but to no avail)
I've been trying to look for a way install the glnx86 library to see if that would address the problem but with no success.
I am just looking for a way to get this code run. (i tried commenting that part where it checks for the platform, but then the next error "Calling the binary failed." is output. So I am guessing that tweaking the code will not help much.)
Any help to work around this?