-
Notifications
You must be signed in to change notification settings - Fork 143
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
macOS 10.14 make: *** [transliterator.o] Error #146
Comments
same problem here. |
I managed to fix this problem by editing
There are errors on line 365 and 366 - I added spaces between the literals and identifiers (like the error says). I then ran the following, which worked correctly
I'm not sure if it's relevant, but this was with |
The same issue applies to MacOS 10.13, which is the latest that some Macs can run. For these, there's some extra complexity about turning off csr first, and the file is System/Library/[...] rather than /Library. But it would be nice if Charlock Holmes could fix this "upstream." |
I working on MacOS Big Sur, Ruby version is 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]. When running the following: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin20/ruby/config.h:416:35: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin20/ruby/config.h:416:55: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] In file included from transliterator.cpp:1: make failed, exit code 2 |
Did you ever get this figured out? |
Had the same problem. Solved by adding space in file Before:
After:
|
Thanks, it worked awesome.
|
sudo gem install charlock_holmes -- --with-icu-dir=/usr/local/opt/icu4c --with-cxxflags=-std=c++11
I've also tried adding the version parameters range from "0.7.3" to "0.7.6", none of them worked.
Error log:
The text was updated successfully, but these errors were encountered: