gpt4 book ai didi

ruby - 安装 ruby​​ 1.9.3 时遇到问题

转载 作者:数据小太阳 更新时间:2023-10-29 07:49:46 26 4
gpt4 key购买 nike

我在 mac 的终端上通过命令 rvm install 1.9.3 安装了 ruby​​ 1.9.3。安装后出现这些错误(见下文)。有人有解决这个问题的想法吗?

Error running './configure --prefix=/Users/Keta/.rvm/rubies/ruby-1.9.3-p551 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared', showing last 15 lines of /Users/Keta/.rvm/log/1421301212_ruby-1.9.3-p551/configure.log GEM_HOME=/Users/Keta/.rvm/gems/ruby-2.2.0 PATH=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/Keta/.rvm/gems/ruby-2.2.0/bin:/Users/Keta/.rvm/gems/ruby-2.2.0@global/bin:/Users/Keta/.rvm/rubies/ruby-2.2.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Users/Keta/.rvm/bin GEM_PATH=/Users/Keta/.rvm/gems/ruby-2.2.0:/Users/Keta/.rvm/gems/ruby-2.2.0@global command(7): ./configure --prefix=/Users/Keta/.rvm/rubies/ruby-1.9.3-p551 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared configure: WARNING: unrecognized options: --without-tcl, --without-tk checking build system type... x86_64-apple-darwin14.0.0 checking host system type... x86_64-apple-darwin14.0.0 checking target system type... x86_64-apple-darwin14.0.0 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in /Users/Keta/.rvm/src/ruby-1.9.3-p551':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use
--host'. See `config.log' for more details
There has been an error while running configure. Halting the installation.

最佳答案

在我运行 xcode-select --install 后,这为我清除了。在此之前,我还运行了 rvm get head,这可能有所贡献(但本身并没有解决问题。)

关于ruby - 安装 ruby​​ 1.9.3 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27957631/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com