126
loading...
This website collects cookies to deliver better user experience
rvm install 3.0.0
rvm install 2.7.3
$(brew --prefix)
instead of hardcoding where homebrew
downloads [email protected]
:# Winning script!
brew install [email protected]
export PATH="$(brew --prefix)/opt/[email protected]/bin:$PATH"
export LDFLAGS="-L$(brew --prefix)/opt/[email protected]/lib"
export CPPFLAGS="-I$(brew --prefix)/opt/[email protected]/include"
export PKG_CONFIG_PATH="$(brew --prefix)/opt/[email protected]/lib/pkgconfig"
rvm autolibs disable
export RUBY_CFLAGS=-DUSE_FFI_CLOSURE_ALLOC
export optflags="-Wno-error=implicit-function-declaration"
rvm install 2.7.3 --with-openssl-dir=$(brew --prefix)/opt/[email protected]
bundle install
at the root of my website’s repo!rvm
was complaining about my LDFLAGS
:checking whether LDFLAGS is valid... no
configure: error: something wrong with LDFLAGS="-L/usr/local/opt/zlib/lib -L/usr/local/opt/bzip2/lib"
LDFLAGS=""
in front of rvm install 2.7.3
only resulted in errors with the compiler missing openssl
libraries. So I needed LDFLAGS
set somehow, but not the way that works for Python and pyenv
.LDFLAGS
, CPPFLAGS
, and PKG_CONFIG_PATH
:PATH="/usr/local/opt/[email protected]/bin:$PATH" \
LDFLAGS="-L$(brew --prefix)/opt/[email protected]/lib" \
CPPFLAGS="-I$(brew --prefix)/opt/[email protected]/include" \
PKG_CONFIG_PATH="$(brew --prefix)/opt/[email protected]/lib/pkgconfig" \
arch -x86_64 rvm install 2.7.3 -j 1
rl_username_completion_function
macro:214 warnings generated.
linking shared-object date_core.bundle
installing default date_core libraries
compiling readline.c
readline.c:1904:37: error: use of undeclared identifier 'username_completion_function'; did you mean 'rl_username_completion_function'?
rl_username_completion_function);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rl_username_completion_function
readline.c:79:42: note: expanded from macro 'rl_username_completion_function'
# define rl_username_completion_function username_completion_function
^
/opt/homebrew/opt/readline/include/readline/readline.h:485:14: note: 'rl_username_completion_function' declared here
extern char *rl_username_completion_function PARAMS((const char *, int));
^
1 error generated.
make[2]: *** [readline.o] Error 1
make[1]: *** [ext/readline/all] Error 2
make: *** [build-ext] Error 2
+__rvm_make:0> return 2
rvm install 2.7.3 error extern char *rl_username_completion_function PARAMS((const char *, int));
and trying a few commands recommended on some GitHub issues.pyenv
, so keep an eye out for my post on how to install those.