Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t使用rvm安装Ruby 2.0.0_Ruby_Macos_Terminal_Installation_Rvm - Fatal编程技术网

Can';t使用rvm安装Ruby 2.0.0

Can';t使用rvm安装Ruby 2.0.0,ruby,macos,terminal,installation,rvm,Ruby,Macos,Terminal,Installation,Rvm,我尝试使用rvm install 2.0.0安装Ruby 2.0.0这是我的输出: Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392. Continuing with compilation. Please read 'rvm mount' to get more information on binary

我尝试使用
rvm install 2.0.0
安装Ruby 2.0.0这是我的输出:

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392.
Continuing with compilation. Please read 'rvm mount' to get more information on binary   rubies.
Installing requirements for osx/10.8/x86_64, might require sudo password
Password:
DEBUG: Copying /Users/Family/Library/Preferences/com.apple.dt.Xcode.plist to      /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
--->  Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes  received 69 bytes  70.00 bytes/sec
total size is 3594240  speedup is 34230.86
receiving file list ... done

sent 36 bytes  received 76 bytes  224.00 bytes/sec
total size is 512  speedup is 4.57
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C   /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
MacPorts base version 2.1.3 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.1.3 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
DEBUG: /usr/bin/rsync -rtzv --delete-after   rsync://rsync.macports.org/release/tarballs/ports.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done

sent 36 bytes  received 70 bytes  212.00 bytes/sec
total size is 55050240  speedup is 519341.89
DEBUG: /usr/bin/rsync -rtzv --delete-after      rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160    /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
receiving file list ... done

sent 36 bytes  received 77 bytes  226.00 bytes/sec
total size is 512  speedup is 4.53
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports

Total number of ports parsed:   0 
Ports successfully parsed:  0 
Ports failed:           0 
Up-to-date ports skipped:   16692

--->  MacPorts base is already the latest version
DEBUG: Setting MacPorts sources ownership to root

The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
Missing required packages: autoconf, automake, libtool, pkg-config, libiconv, libyaml, libffi, readline, libxml2, libxslt, libksba, openssl, curl-ca-bundle, sqlite3, zlib, ncurses, gdbm.
Installing Ruby from source to: /Users/Family/.rvm/rubies/ruby-1.9.3-p392, this may take a       while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
######################################################################## 100.0%
ruby-1.9.3-p392 - #extracting ruby-1.9.3-p392 to /Users/Family/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #extracted to /Users/Family/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #configuring..........
Error running './configure --prefix=/Users/Family/.rvm/rubies/ruby-1.9.3-p392 --disable-     install-doc --without-tcl --without-tk --enable-shared',
please read /Users/Family/.rvm/log/ruby-1.9.3-p392/configure.log
There has been an error while running configure. Halting the installation.
我正在运行mac osx Mountan Lion。如果我尝试安装1.9.3,效果也是一样的
我的问题是什么?如何解决?我是RVM和ruby的新手,所以这可能只是一个简单的错误。提前感谢

当我在OS X Mountain Lion上安装Ruby 2.0时,我必须确保首先安装了OpenSSL。由于我使用的是自制软件,所以在
rvm安装2.0.0
之前,我只需执行
brew安装openssl
。看起来您正在运行Macports(我以前没有使用过),所以我想
sudo-port安装openssl
可能适合您


同时尝试安装以下组件:
autoconf、automake、libtool、pkg-config、libiconv、libyaml、libffi、readline、libxml2、libxslt、libksba、curl-ca bundle、sqlite3、zlib、ncurses、,gdbm
-您提供的输出中没有列出它们。

当我在我的OS X Mountain Lion上安装Ruby 2.0时,我必须确保首先安装了OpenSSL。由于我使用的是自制软件,所以在
rvm安装2.0.0
之前,我只需执行
brew安装openssl
。看起来您正在运行Macports(我以前没有使用过),所以我想
sudo-port安装openssl
可能适合您


同时尝试安装以下组件:
autoconf、automake、libtool、pkg-config、libiconv、libyaml、libffi、readline、libxml2、libxslt、libksba、curl-ca-bundle、sqlite3、zlib、ncurses、gdbm
-您提供的输出将它们列为缺少。

在接下来的步骤中,我成功安装了ruby-2.0.0-rc2

brew update    
brew install libyaml libxslt sqlite
brew upgrade automake libksba openssl pkg-config
rvm get stable    
rvm autolibs enable
rvm install 2.0.0-p0

在接下来的步骤中,我成功地安装了ruby-2.0.0-rc2

brew update    
brew install libyaml libxslt sqlite
brew upgrade automake libksba openssl pkg-config
rvm get stable    
rvm autolibs enable
rvm install 2.0.0-p0

我想你错过了上面写的
请阅读/Users/Family/.rvm/log/ruby-1.9.3-p392/configure.log
。请发布
/Users/Family/.rvm/log/ruby-1.9.3-p392/configure.log
?给你
[2013-03-19 21:52:50]。/配置:警告:无法识别的选项:-没有tcl,--没有tk检查构建系统类型。。。i386-apple-darwin12.2.0正在检查主机系统类型。。。i386-apple-darwin12.2.0正在检查目标系统类型。。。i386-apple-darwin12.2.0正在检查gcc。。。没有检查抄送。。。没有检查cl.exe。。。no configure:error:在
/Users/Family/.rvm/src/ruby-1.9.3-p392:配置:error:在$PATH中找不到可接受的C编译器请参阅
config.log'了解更多详细信息
@hd1Install XCode from App store如果这解决了您的问题,我怀疑它会,让我知道,我认为你错过了上面写的
请阅读/Users/Family/.rvm/log/ruby-1.9.3-p392/configure.log
。请发布
/Users/Family/.rvm/log/ruby-1.9.3-p392/configure.log
?给你
[2013-03-19 21:52:50]./configure配置:警告:无法识别的选项:-不带tcl,-不带tk检查生成系统类型。。。i386-apple-darwin12.2.0正在检查主机系统类型。。。i386-apple-darwin12.2.0正在检查目标系统类型。。。i386-apple-darwin12.2.0正在检查gcc。。。没有检查抄送。。。没有检查cl.exe。。。no configure:error:在
/Users/Family/.rvm/src/ruby-1.9.3-p392:配置:error:在$PATH中找不到可接受的C编译器请参阅
config.log'了解更多详细信息
@hd1Install XCode from App store如果这解决了您的问题,我怀疑它会,让我知道,我会将它作为其他有同样问题的人的答案发布。