Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
329 views
in Technique[技术] by (71.8m points)

ruby - uninitialized constant SOCKSSocket when install within rbenv

I'm trying to install ruby using configure options for socks proxy: --enable-socks

but I still receive uninitialized constant SOCKSSocket error

Steps to reproduce:

RUBY_CONFIGURE_OPTS="--enable-socks" rbenv install 2.5.3

ruby -e 'require "socket"; puts SOCKSSocket'

uninitialized constant SOCKSSocket (NameError)

RUBY_CONFIGURE_OPTS="--enable-socks=true" rbenv install 2.5.3

ruby -e 'require "socket"; puts SOCKSSocket'
uninitialized constant SOCKSSocket (NameError)

I use macOS Big Sur 11.1

expected:

ruby -e 'require "socket"; puts SOCKSSocket'
SOCKSSocket
question from:https://stackoverflow.com/questions/65936396/uninitialized-constant-sockssocket-when-install-within-rbenv

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...