- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我一直在为这个问题绞尽脑汁。我已遵循几篇相关帖子中的建议,但无济于事。
我从全新安装的 Mountain Lion 开始,安装了命令行工具,并根据我发现的其他一些关于通过 Homebrew 安装 gcc-4.2 并添加符号链接(symbolic link)的帖子成功安装了 Ruby 1.8.7/usr/bin/gcc-4.2.
但是,现在我无法成功安装 libv8。下面的错误是我从现有建议中得到的。
任何额外的输入?
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/Eric/.rbenv/versions/1.8.7-p352/bin/ruby extconf.rb
creating Makefile
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Traceback (most recent call last):
File "build/gyp/gyp", line 18, in <module>
sys.exit(gyp.main(sys.argv[1:]))
File "build/gyp/pylib/gyp/__init__.py", line 480, in main
generator.GenerateOutput(flat_list, targets, data, params)
File "build/gyp/pylib/gyp/generator/make.py", line 2085, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File "build/gyp/pylib/gyp/generator/make.py", line 756, in Write
self.xcode_settings, self.Absolutify, self.Pchify))
File "build/gyp/pylib/gyp/generator/make.py", line 1132, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File "build/gyp/pylib/gyp/xcode_emulation.py", line 258, in GetCflags
sdk_root = self._SdkPath()
File "build/gyp/pylib/gyp/xcode_emulation.py", line 247, in _SdkPath
return os.path.join(self._GetSdkBaseDir(), '%s.sdk' % sdk_root)
File "build/gyp/pylib/gyp/xcode_emulation.py", line 233, in _GetSdkBaseDir
raise Exception('Error %d running xcode-select' % job.returncode)
Exception: Error 2 running xcode-select
make: *** [out/Makefile.x64] Error 1
Using compiler: g++
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \
-Dv8_target_arch=x64 \
-S.x64 -Dhost_arch=x64
xcode-select: Error: No Xcode is selected. Use xcode-select -switch <path-to-xcode>, or see the xcode-select manpage (man xcode-select) for further information.
Gem files will remain installed in /Users/Eric/Development/par8o/vendor/bundle/ruby/1.8/gems/libv8-3.11.8.3 for inspection.
Results logged to /Users/Eric/Development/par8o/vendor/bundle/ruby/1.8/gems/libv8-3.11.8.3/ext/libv8/gem_make.out
An error occured while installing libv8 (3.11.8.3), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.11.8.3'` succeeds before bundling.
最佳答案
与 ruby 1.8.7 交易。可能您需要这个 gem 来运行 rubyracer。为了完成这项工作,您需要按如下方式安装 therubyracer gem:
RUBYOPT=-rrubygems gem install therubyracer
这将同时安装 therubyracer 和 libv8 gems。
关于ruby - 如何在新安装的 Mountain Lion 上安装 libv8 ruby gem?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11731600/
去年我花了整整两天时间试图让 python-mysql 工作在我干净安装的 Lion 上,最后绝望地放弃了。升级到山狮后,我想我会再试一次,但没有成功。可能是我对 Lion 的所有尝试都搞砸了我的设置
我正在尝试让 WordPress 3.3.1 多站点(子域)在我的本地主机中工作。但是,我似乎需要为我的 Wordpress 虚拟主机配置通配符子域。我们的想法是让 any_subdomain.my_
我想在 osx lion 上安装 pyaudio,但我无法做到。每次我尝试使用 pkg 时,它都不会安装任何东西。当我尝试使用 pip 安装它时,出现以下错误(以及许多其他行): lipo: can'
我正在尝试让我在 Mountain Lion 上使用 Xcode 4.4 构建的 OS X 应用程序也能在 Lion 上运行。 将 OS X 部署目标设置为 10.7 没有帮助。该应用程序仍然无法在
我一直想用 Opa 弄脏我的手,但真的感觉缺少 REPL,这是我适应新语言的首选武器。瞧,Opa 博客提到了一个名为 opatop 的工具。看起来就是这样,但它似乎没有包含在标准的 Mac 或 Ubu
在 Lion 中打开窗口时,我遇到以下 EXC_BAD_INSTRUCTION 异常,但该应用在 Mountain Lion 中似乎工作正常。可能是什么问题? Process: MyA
我正在尝试在我的 mac 上使用本地服务器,但它似乎忽略了/etc/hosts 文件中的 localhost 设置。找到了几个页面,其中解决方案是重新安装,并将 localhost 放在/etc/ho
我最近升级到 Mountain Lion OSX,而我已经在工作的 MySql 停止工作了。当我尝试在终端中运行 MySql 时,我得到的是以下错误? ERROR 2002 (HY000): Ca
我有一个列表,当您将鼠标悬停在每个列表项上时,其中会显示一个按钮。该按钮位于每个列表项的右边缘。当列表不需要滚动时这很好用,但是当需要在带有隐藏滚动条的 Safari 中的 Lion/Mountain
我不太确定是什么原因造成的,但在 OSX 10.7.X 上当前稳定版的 safari 中,我只看到渲染了 3-4 帧。我下载了最新的 Safari 测试版,他们似乎改进了它,但它仍然掉落了大量的帧。
是否有任何工具可以分析 Mac OS X Lion 和 iOS 上的缓存未命中情况。如果您知道如何在乐器中做到这一点,请提供帮助。 Shark(CHUD 包)不安装在 Mac OS X Lion 及更
如果您创建一个普通项目并将其作为您的应用程序委托(delegate)的实现: @interface TESTAppDelegate () @property (nonatomic, strong) N
Network Link Conditioner 首选项面板(从 Apple 开发者网站上的“Hardware IO Tools for Xcode - Late July 2012”DMG 安装)在
我使用“ssh -X machine”连接到远程 Linux 计算机,然后运行图形应用程序,因此它的窗口使用 X Window 显示在我的本地 OS X Lion 计算机上。我收到错误 “Xlib:显
我从官方网站下载了 PostgreSQL 并运行了 .dmg 安装程序。之后我下载了 pgadmin3,我确实能够连接到数据库。 当我运行“psql”时,出现以下错误: psql: could not
我刚刚在我的雪豹安装上下载了 osx lion 更新。 Xcode 4.1 现在不会运行,因为它希望运行 Lion 版本。然而,当我去应用商店安装 Xcode 4.1 lion 时,它告诉我它已经安装
我能做到: sudo nano .bash_profile 但是当我这样做的时候: sudo echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bas
我正在制作一个使用山狮通知中心的应用程序。我包括对雪豹和狮子 growl 的支持。我该怎么做才能使二进制文件能够在两者上运行,而不需要 2 个单独的 .app 包。 最佳答案 我猜您会针对 Growl
我有一个使用 py2app 转换为捆绑应用程序的 python 脚本。手动调用时,它运行良好。但是,在 Mountain Lion 下,当我尝试使用 launchd 调用它时,系统日志中出现以下错误:
我正在迁移到一台新计算机,同时从雪豹迁移到狮子。 phpunit 似乎没有进行迁移,所以我重新安装了它。然而,pear 的标准安装似乎不适用于我的 php 家庭brew 安装。这是错误: phpuni
我是一名优秀的程序员,十分优秀!