-
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
Unable to install 0.7.5 on macOS Sierra 10.12.6 #122
Comments
+1 |
1 similar comment
+1 |
I had the same problem. |
Hi all, I've run into this same issue, except I'm on El Capitan (10.11.6). Using bundler 1.15.4, ruby 2.3.1, Xcode 8.2.1 build 8C1002, and icu4c 59.1:
|
... and this is why people stop using C++. 😂 (Just teasing. C++ is a wonderful language, all things considered.) |
Can you install gem setting manually c flags? gem install charlock_holmes -- --with-cxxflags=-std=c++11 |
I just ran into this issue while I was attempting to reinstall Was fixed when I ran: gem install charlock_holmes -v '0.7.3' -- --with-icu-dir=/usr/local/opt/icu4c --with-cxxflags=-std=c++11 |
👍 |
Having a similar issue with the official release of High Sierra (10.13.0) and the system installed Ruby 2.3.0, except it's also having issues with the Ruby Frameworks's config.h header which appears to conflict with a c++11 standard and errors out:
I fixed it by running:
before installing the bundle that required charlock_holmes 0.7.5 (GitLab CE), which suppressed the error and got it building properly. Hope this helps someone in the future! |
Only this works for me:
|
Please give 0.7.6 a try. |
Just tried, doesn't help... the workaround listed still fixes it. |
I was finally able to get around this by downgrading my icu4c install as suggested at #117 (comment). Once that was done |
Although that ☝️ appears to result in |
This finally worked and allowed me to install charlock_holmes and run node/npm and run my rails server
edit: this doesn't solve the OPs issue as it's 0.7.6 instead of 0.7.5, but it's the only configuration that seems to work for me on OS X High Sierra 10.13.3 |
I was able to install 0.7.6 fine under High Sierra 10.3.6 with Ruby 2.4.4 via RVM, but trying to install it against the system Ruby (2.3.7p456) fails with:
I get the same error with or without specifying |
Use the following command : |
This worked for me but with 0.7.6 |
FWIW the install worked out of the box on Mojave with Homebrew |
Solution for me was to set it in bundler so the config stayed set:
|
In case it can help: I was having the following error when running:
I fixed it by manually editing Before
After
|
@Weakky One can also work around outdated headers in Ruby by using e.g.
|
I've patched Ruby master to avoid the need to introduce such spaces in future. ruby/ruby@07f2062 |
This #122 (comment) fixes Mac OS Catalina issue with Hopefully in future, with new @mabraham changes, we won't have this problem on a new Mac version anymore. |
Can confirm this still is an issue on macOS Monterey with 7.7 #122 (comment) does work. |
2024 version 😂 |
My command:
Output:
The text was updated successfully, but these errors were encountered: