- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试设置一台新机器并准备开发环境。我的 Xcode 和命令行工具都安装好了。我使用自制软件来安装 ruby-build 和 rbenv。然后我执行命令:
rbenv install 2.5.1
但是我得到以下错误:
BUILD FAILED (OS X 10.14.2 using ruby-build 20181225)
Inspect or clean up the working tree at /var/folders/
kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby-build.201901
18184337.15691
Results logged to /var/folders/kk/d2c_1jqj2dd88mcscws
rcz_w0000gp/T/ruby-build.20190118184337.15691.log
Last 10 log lines:
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking target system type... x86_64-apple-darwin18.2.0
checking whether the C compiler works… no
configure: error: in
`/var/folders/kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby
build.20190118184337.15691/ruby-2.5.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
./configure: line 346: sort: No such file or directory
./configure: line 343: sed: No such file or directory
make: *** No targets specified and no makefile found.
Stop.
我已经尝试进入日志,看看是否能看到一些东西,但什么也没有。
我曾尝试寻找解决方案,但无济于事。
如果有人能帮我指出正确的方向并帮助我解决这个问题,我将不胜感激。
谢谢!
最佳答案
您的主文件夹的名称是什么? rbenv doesn't like spaces在主文件夹名称中。它们应该被替换或移除。
关于ruby - 无法使用 rbenv 安装 Ruby 2.5.1,出现 C 编译器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54263779/
从 Ubuntu 卸载 rbenv 后,每次打开终端时都会收到以下消息: The program 'rbenv' is currently not installed. You can install
我在我的 Ubuntu 10.04 服务器上使用 rbenv,我已经安装了 ImageMagick,但我无法成功安装 RMagick。我收到以下错误消息 Can't install RMagick 2
我正在尝试在安装新 gem 后重新哈希 rbenv它在我的 ubuntu 服务器上给了我这些错误 rbenv: cannot rehash: /home/deployer/.rbenv/shims/
我正在学习 Chef 并构建一本 Recipe ,其中包含安装 rbenv 和 ruby-build 的方法。 ruby-build 配方安装程序,然后尝试使用 rbenv 安装 Ruby 2.3.1
使用 sudo 用户运行 (x)ubuntu 16.04 ... 使用本地用户 + sudo 插件安装 rbenv cd ~ git clone git://github.com/ss
我刚刚在我的 ubuntu 服务器上安装了 rbenv 和 ruby-build。这是 ubntu 版本: Description: Ubuntu 14.04.1 LTS Release: 1
我在 ubuntu 20.04 中遇到了一个奇怪的问题。 我已经安装了 ruby 3.1.2、rails 6.1.5、rbenv 和 rbenv-vars。 在应用程序目录中设置 .rbenv-v
我从 Ubuntu 服务器上的 RVM 转移到 rbenv。 当我使用 RVM 时,使用 bundle 没有问题。转移到 rbenv 后,我在 Jenkins 的执行 shell 中收到“找不到命令”
我正在尝试在 Ubuntu 启动时启动 rails 应用程序。 为此,我在 /etc/rc.local 中添加了这些行. cd /home/ubuntu/webapp/rails/passenger-
我收到了 rbenv: 2.3.1 is not installed or not found in $HOME/.rbenv/versions/2.3.1尝试使用 Capistrano 部署到 Di
在 Ruby 开发的世界中,经常需要面对不同项目使用不同 Ruby 版本的情况。这时,一个高效、灵活且易于使用的 Ruby 版本管理工具就显得尤为重要。 rbenv 正是这样一个工具,它允许开发
我想使用下面的命令在没有 rdoc 的情况下使用 jemalloc 安装 ruby 但不知道如何组合它们: RUBY_CONFIGURE_OPTS=--with-jemalloc--disable
我正在尝试在我的 ubuntu 14.04 上使用 rbenv 安装 ruby 2.1.1。我使用了以下命令。 curl -fsSL https://gist.github.com/mislav/
我决定试试 rbenv 而不是 rvm。我已经用 Homebrew 安装了它,这很简单。然后我将额外的行添加到我的 .bash_profile 中(垫片、自动完成和 eval 语句)。 export
我正在尝试在我的 Debian 6 生产系统上安装 rbenv。做这个的最好方式是什么?我尝试了 github 维基页面(https://github.com/sstephenson/rbenv/wi
大家好,我正在尝试设置一个开发环境,并且我一直在关注以下教程: Link to tutorial 我做得不是很好,除了最基本的版本控制内容外,我对终端命令没有任何实际经验。我点击了第一个链接并尝试运行
我正在关注 Ryan 的 RailsCast 第 339 集。我已经安装了 rbenv 并且可以运行 ruby -v。我退出了我的 session ,当我试图返回时(通过 root 的 su depl
我们公司使用瘦客户端,并且有很多用户使用同一个盒子。我按照以下网站上的说明将 rbenv 安装为系统安装; https://blakewilliams.me/posts/system-wide-rbe
我最后将 ruby 2.0 安装到 ~/.rbenv/versions 中,现在除了可用之外什么都没有了 $ rbenv 版本 system *ruby-1.9.3-p392 (set by /a
我正在构建一个 vagrant 设置,其中一部分是安装 rbenv。我正在使用 librarian-chef 来管理我所有的 Chef Recipe ,它会安装 rbenv 和 ruby-buil
我是一名优秀的程序员,十分优秀!