Coder Social home page Coder Social logo

cld fails to install about cld HOT 13 CLOSED

jtoy avatar jtoy commented on September 27, 2024
cld fails to install

from cld.

Comments (13)

pokonski avatar pokonski commented on September 27, 2024 19

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.

aadityataparia avatar aadityataparia commented on September 27, 2024 4

@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.

TorvaldsDB avatar TorvaldsDB commented on September 27, 2024 4
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.

nielsdg avatar nielsdg commented on September 27, 2024 3

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.

Farson avatar Farson commented on September 27, 2024 2

can we add this hint in the README please?!

from cld.

DannyBen avatar DannyBen commented on September 27, 2024 2

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.

aadityataparia avatar aadityataparia commented on September 27, 2024 1

Fixed in 0.8.0?

ENV['CFLAGS'] = ENV['CFLAGS'].to_s + ' -Wno-narrowing'
ENV['CXXFLAGS'] = ENV['CXXFLAGS'].to_s + ' -Wno-narrowing'

from cld.

sethboyles avatar sethboyles commented on September 27, 2024

@nielsdg worked for me as well, thanks!

from cld.

grosser avatar grosser commented on September 27, 2024

can you write up some docs for the readme ?

from cld.

DannyBen avatar DannyBen commented on September 27, 2024

Fixed in 0.8.0?

I can confirm it is fixed in 0.8.0. Tested on both Alpine and Ubuntu.

from cld.

winny- avatar winny- commented on September 27, 2024

I'll close this issue, feel free to comment if you think this wasn't fixed. Thanks!

from cld.

JoeKaldas avatar JoeKaldas commented on September 27, 2024

@TorvaldsDB Have you reached a solution by any chance? For 0.8.0?

from cld.

TorvaldsDB avatar TorvaldsDB commented on September 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.