purvagawde / pmtk3

Automatically exported from code.google.com/p/pmtk3
0 stars 0 forks source link

HMM mex files needed execute privilenges #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download and install with initPmtk3
2. Evaluate [a b] = hmmFit({randn(1,50)}, 4, 'gauss')

What is the expected output? What do you see instead?
Expect no output. Instead, error obtained:

??? Invalid MEX-file
'C:\Users\fasiha\Documents\MATLAB\pmtk3-read-only\toolbox\LatentVariableModels\h
mm\sub\hmmFwdBack.mexw64':
Access is denied.

Error in ==> hmmFitEm>estep at 68
    [gamma, alpha, beta, logp] = hmmFwdBack(pi, A, Bi);

Error in ==> emAlgo at 62
    [ess, ll] = estep(model, data);

Error in ==> hmmFitEm at 46
[model, loglikHist] = emAlgo(model, data, initFn, @estep, @mstep, EMargs{:});

Error in ==> hmmFit at 69
[model, loglikHist] = hmmFitEm(data, nstates, type, varargin{:});

What version / revision of the product are you using? On what operating system?

SVN checkout r2778, Windows7, Matlab 2011a. 

Please provide any additional information below.

I had Cygwin available, so in the directory 
"pmtk3-read-only/toolbox/LatentVariableModels/hmm/sub", I ran "chmod 755 
*.mex*" to add the execute bit on all mex files. This fixes the problem.

I am not sure how to do this without Cygwin, or if it affects anyone else on 
Windows using a current checked out. 

Original issue reported on code.google.com by wuzzyview on 10 Oct 2011 at 2:37

GoogleCodeExporter commented 8 years ago
The files are inheriting the permissions of the directory you're placing them 
in. You should be using the windows file permission mechanisms, (i.e. by right 
clicking on the parent folder). I strongly recommend against using cygwin to 
change file permissions on a windows machine as this could corrupt your ACL. 

This isn't really a PMTK issue as any file downloaded from the internet will 
have this same behavior. 

Original comment by mattbdun...@gmail.com on 10 Oct 2011 at 3:46

GoogleCodeExporter commented 8 years ago
Moved to GitHub: https://github.com/probml/pmtk3/issues/34

Original comment by irosen on 4 Jan 2014 at 2:36