-
Notifications
You must be signed in to change notification settings - Fork 343
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 on make in MacOS #76
Comments
THis was done under the Octave program |
it seems you don't have C/C++ compiler installed. Please see the
following
libsvm faq:
Q: I tried to install matlab interface on mac, but failed. What should I
do?
We assume that in a matlab command window you change directory to
libsvm/matlab and type
> make
We discuss the following situations.
An error message like "libsvmread.c:1:19: fatal error: stdio.h: No
such file or directory" appears.
Reason: "make" looks for a C++ compiler, but no compiler is found.
To get one, you can
Install XCode offered by Apple Inc.
Install XCode Command Line Tools.
On OS X with Xcode 4.2+, I got an error message like "llvm-gcc-4.2:
command not found."
Reason: Since Apple Inc. only ships llsvm-gcc instead of gcc-4.2,
llvm-gcc-4.2 cannot be found.
If you are using Xcode 4.2-4.6, a related solution is offered at
http://www.mathworks.com/matlabcentral/answers/94092.
On the other hand, for Xcode 5 (including Xcode 4.2-4.6), in a
Matlab command window, enter
cd (matlabroot)
cd bin
Backup your mexopts.sh first
edit mexopts.sh
Scroll down to "maci64" section. Change
CC='llvm-gcc-4.2'
CXX='llvm-g++-4.2'
to
CC='llvm-gcc'
CXX='llvm-g++'
Please also ensure that SDKROOT corresponds to the SDK version you
are using.
Other errors: you may check
http://www.mathworks.com/matlabcentral/answers/94092.
…On 2021-05-29 02:19, skysenscyu wrote:
I am one of the mac user. However, when I typed make, this error
occurred
clang: warning: no such sysroot directory:
'/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
[-Wmissing-sysroot]
libsvmread.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
warning: mkoctfile: building exited with failure status
Error: /opt/local/share/octave/6.2.0/m/miscellaneous/mex.m failed
(line 54)
mex: building exited with failure status
=> Please check README for detailed instructions.
>>
does anyone know the reason why? I installed the linear file onto the
readable directory, but this error occurred. I don't know what is the
problem. THanks
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2]. [ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
"potentialAction": { ***@***.***": "ViewAction", "target":
"#76", "url":
"#76", "name": "View Issue"
}, "description": "View this Issue on GitHub", "publisher": { ***@***.***":
"Organization", "name": "GitHub", "url": "https://github.com" } } ]
Links:
------
[1] #76
[2]
https://github.com/notifications/unsubscribe-auth/ABI3BHR6TON3V3D64KQEUV3TP7NDZANCNFSM45XGECMQ
|
I had Xcode before I installed this program. The version of Xcode was 12.4. And the problem still occurs. Is there some problem with my Xcode? |
could you generate liblinear binary files in the main directory instead
of the matlab interface?
…On 2021-05-31 13:40, skysenscyu wrote:
I had Xcode before I installed this program. The version of Xcode was
12.4. And the problem still occurs. Is there some problem with my
Xcode?
--
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2]. [ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage",
"potentialAction": { ***@***.***": "ViewAction", "target":
"#76 (comment)",
"url":
"#76 (comment)",
"name": "View Issue" }, "description": "View this Issue on GitHub",
"publisher": { ***@***.***": "Organization", "name": "GitHub", "url":
"https://github.com" } } ]
Links:
------
[1]
#76 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/ABI3BHXRUL6375T4MNHFQXLTQMOMPANCNFSM45XGECMQ
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am one of the mac user. However, when I typed make, this error occurred
clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk' [-Wmissing-sysroot]
libsvmread.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
warning: mkoctfile: building exited with failure status
Error: /opt/local/share/octave/6.2.0/m/miscellaneous/mex.m failed (line 54)
mex: building exited with failure status
=> Please check README for detailed instructions.
does anyone know the reason why? I installed the linear file onto the readable directory, but this error occurred. I don't know what is the problem. THanks
The text was updated successfully, but these errors were encountered: