Comments (13)
This hack worked for me on Ubuntu 16.10 with gcc 6.2.0:
CFLAGS="-Wno-narrowing" CXXFLAGS="$CFLAGS" gem install cld
credit to @mlen
from cld.
@pokonski been stuck on this since eternity, but your command worked, just did CFLAGS="-Wno-narrowing" CXXFLAGS="$CFLAGS" gem install cld -i #{bundle_path}
so that it installs in same directory as bundler (for people getting error doing bundle install with cld). Thanks man.
from cld.
CFLAGS="-Wno-narrowing" CXXFLAGS="$CFLAGS" gem install cld
How about M1 Mac Pro? I tried a lot of times, but it still fails if I append the version.
CFLAGS="-Wno-narrowing" CXXFLAGS="$CFLAGS" gem install cld -v '0.8.0'
from cld.
Just to note: I had the same problem as described above, but I was able to solve this by exporting clang as the c compiler (and its equivalents for CPP and CXX) before executing gem install cld
.
from cld.
can we add this hint in the README please?!
from cld.
I can confirm the proposed solution also works on alpine.
Added these to my Dockerfile:
ENV CFLAGS="-Wno-narrowing"
ENV CXXFLAGS="$CFLAGS"
Would be nice if the solution is added to the README, or even nicer, if the gem is updated to not require these flags (assuming it is possible).
from cld.
Fixed in 0.8.0?
Lines 4 to 5 in bd4e4a1
from cld.
@nielsdg worked for me as well, thanks!
from cld.
can you write up some docs for the readme ?
from cld.
Fixed in 0.8.0?
I can confirm it is fixed in 0.8.0. Tested on both Alpine and Ubuntu.
from cld.
I'll close this issue, feel free to comment if you think this wasn't fixed. Thanks!
from cld.
@TorvaldsDB Have you reached a solution by any chance? For 0.8.0
?
from cld.
@TorvaldsDB Have you reached a solution by any chance? For
0.8.0
?
Nope. I skipped it. Ruby is time to be done.
from cld.
Related Issues (12)
- Cld: File as a parameter HOT 2
- Output in case of mixed languages HOT 1
- Output in case of multiple languages HOT 1
- RubyNLP HOT 1
- Odd classifications HOT 2
- Missing spec
- After install 0.10 version I've still got an error on M1 HOT 1
- Wrong language detection HOT 2
- Release version with 3.2.0 compatibility HOT 3
- tagalog codes HOT 2
- CLD is abit outdated at 0.7 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cld.