Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Yancey2126 opened this issue Nov 25, 2017 · 4 comments
Open

Comments

@Yancey2126
Copy link

Yancey2126 commented Nov 25, 2017

>> 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
Copy link

JiaruiWang commented Mar 25, 2018

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
Copy link

siddharthgpta commented Apr 29, 2018

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
Copy link

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
Copy link

siddharthgpta commented May 4, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants