首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ruby 2.3.1缺少的库

ruby 2.3.1缺少的库
EN

Stack Overflow用户
提问于 2016-12-06 06:00:50
回答 2查看 3.6K关注 0票数 2

目前正试图在我的终端(macOS塞拉利昂)上使用rvm安装Ruby2.3.1,但是遇到了这个错误

Ruby2.3.1缺少的库: /Users/travis/.rvm/rubies/ruby-2.3.1/lib/libruby.2.3.0.dylib,/usr/local/opt/gdbm/lib/libgdbm.4.dylib。安装库请参阅系统手册。

此错误类似于堆栈溢出时的another question,但那里的解决方案对我不起作用。我是Ruby的新手,所以任何帮助都是非常感谢的。

顺便说一下,这是终端的全部输出。

代码语言:javascript
复制
ruby-2.3.1 - #removing src/ruby-2.3.1..
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/osx/10.12/x86_64/ruby-2.3.1.tar.bz2
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
ruby-2.3.1 - #configure
ruby-2.3.1 - #download
ruby-2.3.1 - #validate archive
ruby-2.3.1 - #extract
ruby-2.3.1 - #validate binary
Libraries missing for ruby-2.3.1: /Users/travis/.rvm/rubies/ruby-2.3.1/lib/libruby.2.3.0.dylib,/usr/local/opt/gdbm/lib/libgdbm.4.dylib. Refer to your system manual for installing libraries
Mounting remote ruby failed with status 10, trying to compile.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/sabrina.zuraimi/.rvm/rubies/ruby-2.3.1, this may take a while depending on your cpu(s)...
ruby-2.3.1 - #downloading ruby-2.3.1, this may take a while depending on your connection...
ruby-2.3.1 - #extracting ruby-2.3.1 to /Users/sabrina.zuraimi/.rvm/src/ruby-2.3.1....
ruby-2.3.1 - #configuring......................................................|
ruby-2.3.1 - #post-configuration.
ruby-2.3.1 - #compiling...........
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/sabrina.zuraimi/.rvm/log/1481003831_ruby-2.3.1/make.log
compiling enc/utf_8.c
compiling enc/trans/newline.c
compiling ./missing/explicit_bzero.c
compiling ./missing/setproctitle.c
compiling dmyenc.c
linking miniruby
config.status: creating ruby-runner.c
generating encdb.h
encdb.h updated
rbconfig.rb updated
generating enc.mk
making srcs under enc
/bin/sh: /Applications/Xcode-beta: No such file or directory
make: *** [srcs-enc] Error 127
++ return 2
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2017-01-31 20:07:47

首先,您安装了Xcode吗?如果没有,您可以在这里获得命令行工具:http://railsapps.github.io/xcode-command-line-tools.html

它似乎是说,您有Xcode-beta,但删除了它,现在它没有办法正确安装。命令行工具应该足够好。

票数 0
EN

Stack Overflow用户

发布于 2016-12-07 22:09:45

我也有同样的错误,但是安装成功了。

代码语言:javascript
复制
Napuka:~ joaquin$ rvm install ruby-2.3.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.12/x86_64/ruby-2.3.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/joaquin/.rvm/rubies/ruby-2.3.3, this may take a while depending on your cpu(s)...
ruby-2.3.3 - #downloading ruby-2.3.3, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100 13.7M  100 13.7M    0     0  2219k      0  0:00:06  0:00:06 --:--:-- 2220k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.3.3 - #extracting ruby-2.3.3 to /Users/joaquin/.rvm/src/ruby-2.3.3....
ruby-2.3.3 - #configuring......................................................|
ruby-2.3.3 - #post-configuration.
ruby-2.3.3 - #compiling........................................................-
ruby-2.3.3 - #installing.........
ruby-2.3.3 - #making binaries executable..
Installed rubygems 2.5.2 is newer than 2.4.8 provided with installed ruby, skipping installation, use --force to force installation.
ruby-2.3.3 - #gemset created /Users/joaquin/.rvm/gems/ruby-2.3.3@global
ruby-2.3.3 - #importing gemset /Users/joaquin/.rvm/gemsets/global.gems.........|
ruby-2.3.3 - #generating global wrappers........
ruby-2.3.3 - #gemset created /Users/joaquin/.rvm/gems/ruby-2.3.3
ruby-2.3.3 - #importing gemsetfile /Users/joaquin/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.3.3 - #generating default wrappers........
ruby-2.3.3 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.3.3 - #complete 
Ruby was built without documentation, to build it run: rvm docs generate-ri

但是您的消息看起来非常明确: /bin/sh: /Applications/Xcode-beta:没有这样的文件或目录,您有这个目录吗?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40988773

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档