Comments (6)
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.
Does setting the CC
environment variable not work for you?
from ruby-build.
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.
Ah, I see. Yes, locate_gcc
should search all the directories in your $PATH
for gcc-*
binaries.
from ruby-build.
Even better!
from ruby-build.
That would be great.
from ruby-build.
Related Issues (20)
- Wiki open to edits HOT 2
- Ruby 2.2.10 install fails due to OpenSSL issue HOT 3
- RUBY_BUILD_MIRROR_URL ignored HOT 7
- Can't upgrade above 20211019 via brew on macos HOT 3
- 3.3.1 fails to build YJIT with Homebrew LLVM 18 HOT 7
- Failure to detect bz2 HOT 6
- RUBY_BUILD_ROOT docs misleading
- On Ubuntu 24.04 the launch of Ruby built using ruby-build is noticeably slower HOT 4
- Build failure of Ruby 3.3.1 and 3.3.2 on systems without [email protected] HOT 3
- CONFIGURE_OPTS='--disable-install-doc' is passed to the openssl build which fails HOT 1
- trying to install ruby 2.7.0 HOT 1
- Enable YJIT Seems to not support arm64 HOT 1
- Issues with installing ruby 3.3.4 on mac HOT 5
- [Feature Request] Enable SOCKS support by default HOT 3
- Warning in installation v3.3.4 HOT 2
- BUILD FAILED (macOS 14.6.1 on arm64 using ruby-build 20240727) HOT 1
- Build of any Ruby fails on Arch Linux if system Ruby (3.2.4) is installed - `cannot load such file -- erb` HOT 4
- Instructions out of date for RHEL 8/9 HOT 2
- Yes, the example only works for bash. I'll update the example by using a more compatible way.
- Build failed with Error running '__rvm_make -j10', when i am trying to install ruby 3.3.0 version in macos m1pro HOT 1
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 ruby-build.