probml / pmtk3

Probabilistic Modeling Toolkit for Matlab/Octave.
MIT License
1.55k stars 797 forks source link

Error in testPmtk3 -- macOS high sierra 10.13.1 & MATLAB R 2017 a #133

Open Yancey2126 opened 6 years ago

Yancey2126 commented 6 years ago
>> testPmtk3
Checking initialization..........PASSED
Checking pmtkSupport packages....PASSED
Checking pmtkData................PASSED
Testing selected code............

 Iteration   FunEvals     Step Length    Function Val        Opt Cond
         1          2     3.06026e-01     6.00879e+00     3.76102e-01 

after like 10 minutes I got a super long error message like this I omit the all other "Missing symbol" part since they are similar

Missing symbol '_vm_deallocate' required by
'/usr/lib/closure/libclosured.dylib->/usr/lib/system/libdyld.dylib->/usr/lib/system/libsystem_platform.dylib->/usr/lib/system/libsystem_pthread.dylib->/usr/lib/system/libcache.dylib->/usr/lib/libgcc_s.1.dylib->/Users/XXXX/Desktop/Materials/ML/pmtk3-master/pmtksupportCopy/markSchmidt-9march2011/markSchmidt/minFunc/lbfgsC.mexmaci64'.
Error in minFunc (line 527)
                    d = lbfgsC(-g,old_dirs,old_stps,Hdiag);

Error in logregFit (line 139)
    [w, opt.finalObj, opt.exitflag, opt.output] = ...
Error in logregL2FitTest (line 20)
model1 = logregFit(X, y01, 'lambda', lambda, 'preproc', pp, 'fitOptions', opts);
Error in testPmtk3 (line 61)
logregL2FitTest; 
JiaruiWang commented 6 years ago

I got the similar error.

>> run('/Users/.........../MLAPP/pmtk3-master/testPmtk3.m')
Checking initialization..........PASSED
Checking pmtkSupport packages....PASSED
Checking pmtkData................PASSED
Testing selected code............

Undefined function or variable 'minFunc'.
Error in logregFit (line 139)
    [w, opt.finalObj, opt.exitflag, opt.output] = ...
Error in logregL2FitTest (line 20)
model1 = logregFit(X, y01, 'lambda', lambda, 'preproc', pp, 'fitOptions', opts);
Error in testPmtk3 (line 61)
logregL2FitTest;
Error in run (line 96)
evalin('caller', [script ';']); 

Could someone help out?

siddharthgpta commented 6 years ago

Similar issue on macOS Sierra 10.12.6 & MATLAB 2017a.

Missing symbol '_writev' required by '/usr/lib/libstdc++.6.dylib->/Users/wrath/Documents/MATLAB/pmtk3-master/pmtksupportCopy/markSchmidt-9march2011/markSchmidt/minFunc/lbfgsC.mexmaci64'. Error in minFunc (line 527) d = lbfgsC(-g,old_dirs,old_stps,Hdiag);

Error in logregFit (line 139) [w, opt.finalObj, opt.exitflag, opt.output] = ... Error in logregL2FitTest (line 20) model1 = logregFit(X, y01, 'lambda', lambda, 'preproc', pp, 'fitOptions', opts); Error in testPmtk3 (line 61) logregL2FitTest;

System details: Model Name: MacBook Air Model Identifier: MacBookAir7,2 Processor Name: Intel Core i5 Processor Speed: 1.6 GHz Number of Processors: 1 Total Number of Cores: 2 L2 Cache (per Core): 256 KB L3 Cache: 3 MB Memory: 4 GB

homayunafra commented 6 years ago

Could anyone solve this issue? I still have it in my system: Model Name: HP Processor: Intel Core i5 Processor Speed: 2.00 GHz Memory: 8.00 GB

Error: Undefined function or variable 'minFunc'. Error in logregFit (line 139) [w, opt.finalObj, opt.exitflag, opt.output] = ... Error in logregL2FitTest (line 20) model1 = logregFit(X, y01, 'lambda', lambda, 'preproc', pp, 'fitOptions', opts); Error in testPmtk3 (line 61) logregL2FitTest;

siddharthgpta commented 6 years ago

Run the following command in MATLAB command window. !otool -L lbfgsC.mexmaci64

If you get the error or file or folder not found run the following commands:

cd pmtk3-master/pmtksupportCopy/markSchmidt-9march2011/markSchmidt/minFunc !otool -L lbfgsC.mexmaci64 mex -compatibleArrayDims lbfgsC.c

If you have problems with mex you'll need to a bit more digging into mex. Try running: mex -setup

Hope this helps!