- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
所以我正在尝试在运行 Mountain Lion 的 Mac 上安装 Ruby 1.9.3。我安装了 xCode 并且是最新的。我已经安装了 RVM,现在正在尝试使用 rvm install 1.9.3
安装 Ruby 当我运行它时,它看起来像是要安装但给我一个错误,请参见下面:
rvm install 1.9.3
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, might require sudo password.
Already up-to-date.
Certificates in '/Users/Colin/.rvm/etc/openssl/cert.pem' already are up to date.
Installing Ruby from source to: /Users/Colin/.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...
ruby-1.9.3-p392 - #extracted to /Users/Colin/.rvm/src/ruby-1.9.3-p392 (already extracted)
ruby-1.9.3-p392 - #configuring........
Error running './configure --prefix=/Users/Colin/.rvm/rubies/ruby-1.9.3-p392 --with-opt-dir=/Users/Colin/.rvm/opt/libyaml:/Users/Colin/.rvm/opt/readline:/Users/Colin/.rvm/opt/libxml2:/Users/Colin/.rvm/opt/libxslt:/Users/Colin/.rvm/opt/libksba:/Users/Colin/.rvm/opt/openssl:/Users/Colin/.rvm/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/Colin/.rvm/log/ruby-1.9.3-p392/1366429269_configure.log
There has been an error while running configure. Halting the installation.
当我转到/1366429269_configure.log 文件时,它显示如下:
[2013-04-19 20:41:09] ./configure
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin12.2.1
checking host system type... x86_64-apple-darwin12.2.1
checking target system type... x86_64-apple-darwin12.2.1
checking whether the C compiler works... no
configure: error: in `/Users/Colin/.rvm/src/ruby-1.9.3-p392':
configure: error: C compiler cannot create executables
See `config.log' for more details
如果有人能帮助我,我将不胜感激!
编辑:
我在这里尝试了解决方案 Can't install Ruby under Lion with RVM – GCC issues rvm install 1.9.3 --with-gcc=clang
它发生了一些变化,这是新的输出:
rvm install 1.9.3 --with-gcc=clang
Installing requirements for osx, might require sudo password.
Already up-to-date.
Certificates in '/Users/Colin/.rvm/etc/openssl/cert.pem' already are up to date.
Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms.
Installing Ruby from source to: /Users/Colin/.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...
ruby-1.9.3-p392 - #extracted to /Users/Colin/.rvm/src/ruby-1.9.3-p392 (already extracted)
ruby-1.9.3-p392 - #configuring.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-1.9.3-p392 - #compiling..................................................................
Error running 'make -j8',
please read /Users/Colin/.rvm/log/ruby-1.9.3-p392/1366431470_make.log
There has been an error while running make. Halting the installation.
下面是日志:http://pastebin.com/P6nTZRQY
编辑
不确定发生了什么,但我只是尝试了同样的事情,现在一切正常。感谢所有留下有用评论的人,非常感谢!
最佳答案
你需要将命令行工具更新到最新版本,同样对于ruby 1.9.3,仍然首选使用gcc-4.2
进行编译。
还要确保在重试之前更新 RVM:
rvm get head
rvm install 1.9.2
最后,Ruby 2.0.0
应该与 1.9.3
兼容,您应该更新。
关于ruby - 安装 Ruby - RVM - Mac OSX Mountain Lion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16116368/
我能做到: sudo nano .bash_profile 但是当我这样做的时候: sudo echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bas
去年我花了整整两天时间试图让 python-mysql 工作在我干净安装的 Lion 上,最后绝望地放弃了。升级到山狮后,我想我会再试一次,但没有成功。可能是我对 Lion 的所有尝试都搞砸了我的设置
我有一个使用 py2app 转换为捆绑应用程序的 python 脚本。手动调用时,它运行良好。但是,在 Mountain Lion 下,当我尝试使用 launchd 调用它时,系统日志中出现以下错误:
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 8年前关闭。 Improve this q
我最近在我的 Mac 上安装了 Mountain Lion 操作系统,只是出于必要。我试图将我在 Xcode 5 中创建的应用程序连接到我的 iPhone,但它不起作用。我收到错误消息“身份‘iPho
题目地址:https://leetcode.com/problems/valid-mountain-array/description/ 题目描述 Given an array A of inte
题目地址:https://leetcode.com/problems/longest-mountain-in-array/description/ 题目描述 Let's call any (con
很多人都知道 Mac OS X 命令行工具 say,它可以从终端在 Mac 上执行文本到语音的转换: sh $ 说 Hello World ! 是否有可用于 Mountain Lion 听写应用程序的
我已经尝试了几个小时让 java 3d 在我的 macbook 上运行,但我不知道它出了什么问题......这是我所做的: - 我下载了 java3d 1.5 并替换了/System/Library/
我曾经在 Lion 中运行以下代码以打开终端,更新一个项目,然后打开一个新选项卡,然后再次运行以更新第二个、第三个和第四个。由于 Mountain Lion 升级,这不再有效。一半时间它似乎在我的主目
我尝试为 Mac OS 仪表板编写自己的小部件 - 一种显示丢失图像的相框,但比我之前发现或使用的其他小部件更漂亮。 为了获得一些资源/示例,我首先下载了...第二...第三个此类小部件,但没有任何效
基本上,我希望整个 OS X 桌面(或者理想情况下,除了菜单栏之外的所有内容)向上滑动并在底部显示我自己的 View ,就像 Mountain Lion 中的通知中心的工作方式一样(只是从底部开始)从
我正在构建一个适用于 10.8+ 的应用程序,其中必须修补文件。由于此功能,我创建了一个“PrivilegedHelperTool”并安装为 KeepLive = YES RunAtLoad = YE
Mountain Lion 提供了一个内置共享按钮,可显示适合该应用的共享服务菜单: 如何将其插入我的应用程序中? 最佳答案 要在 Mountain Lion 上添加分享按钮: 1) 添加一个名为 s
这个问题不太可能对任何 future 的访客有帮助;它只与一个较小的地理区域、一个特定的时间点或一个非常狭窄的情况相关,通常不适用于全世界的互联网受众。如需帮助使此问题更广泛适用,visit the
今天,我学习了一些关于让一切都在 Mountain Lion 上运行的教程。 我已经安装了Web Sharing并且启用了,我也启用了php(mac自带的,不知道更新了) 所以我没有安装 MySQL
我想在 Mountain Lion 上安装 Qt。为此,我去了http://qt-project.org/downloads并下载了最新的 Qt 库安装程序 (4.8.3)。然后我按照说明操作,在安装
更新到 mountain lion 后,我的 postgres 就可以工作了。它仍在运行,但我的应用程序无法再连接到它。 $ ps aux | grep postgres postgres
Traceback (most recent call last): File "./Scripts/version.py", line 6, in from Foundation im
我一直在尝试在我的系统(OSX 10.8,全新安装)上设置 PostgreSQL,但我在使用 psql、createdb 时遇到了麻烦,等。我尝试了各种解决方案,但似乎都没有用。 安装成功,我继续使用
我是一名优秀的程序员,十分优秀!