Coder Social home page Coder Social logo

Comments (6)

jpayne avatar jpayne commented on September 25, 2024

Along the same lines, it'd be nice if we could just specify the path to the compiler when using ruby-build. I actually prefer MacPorts to Homebrew, so for me, gcc resides under /opt/local/bin.

I'm currently using RVM, but would prefer to use rbenv and ruby-build. One nice feature of RVM though is that I can set the compiler path in .rvmrc and forget it.

from ruby-build.

sstephenson avatar sstephenson commented on September 25, 2024

Does setting the CC environment variable not work for you?

from ruby-build.

cowboy avatar cowboy commented on September 25, 2024

I'm also using adamv's homebrew-alt gcc duplicate recipe, except it's currently at version 4.6.

While setting the CC environment variable works for me, in order to keep my bash scripts easy to maintain I find myself duplicating much of the logic in your locate_gcc function to intelligently detect the gcc version, in order to set CC. I'd rather not hard-code that variable to point to the binary, because the version number changes from time to time.

Updating gccs=( /usr/bin/gcc-* ) to gccs=( /usr/local/bin/gcc-* /usr/bin/gcc-* ) in the locate_gcc function would fix this issue and eliminate redundant code.

from ruby-build.

sstephenson avatar sstephenson commented on September 25, 2024

Ah, I see. Yes, locate_gcc should search all the directories in your $PATH for gcc-* binaries.

from ruby-build.

cowboy avatar cowboy commented on September 25, 2024

Even better!

from ruby-build.

jpayne avatar jpayne commented on September 25, 2024

That would be great.

from ruby-build.

Related Issues (20)

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.