- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我收到此页面描述的错误 http://www.fakingfantastic.com/2010/11/26/fixing-the-you-have-to-install-development-tools-first-error-with-nokogiri/按照他们的指示,我收到了以下错误:
[2011-02-13 11:05:03] ./configure --prefix=/Users/MYNAME/.rvm/rubies/ruby-1.9.2-p136 --enable-shared
checking build system type... i386-apple-darwin10.6.0
checking host system type... i386-apple-darwin10.6.0
checking target system type... i386-apple-darwin10.6.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/MYNAME/.rvm/src/ruby-1.9.2-p136':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
我认为这是:https://gist.github.com/767866看起来像一个 aswer,但我找不到 .rvmrc。
编辑:我认为问题是 i386。我的 1.8.2 安装似乎是 x8x_64。
编辑 2:经过更多工作后,我发现了这个错误
[2011-02-13 11:51:05] ./configure --prefix=/Users/MYNAME/.rvm/rubies/ruby-1.9.2-p136 --enable-shared --build=i386-apple-darwin10.6.0 --host=i386-apple-darwin10.6.0
checking build system type... i386-apple-darwin10.6.0
checking host system type... i386-apple-darwin10.6.0
checking target system type... i386-apple-darwin10.6.0
checking for i386-apple-darwin10.6.0-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for i386-apple-darwin10.6.0-g++... no
checking for i386-apple-darwin10.6.0-c++... no
checking for i386-apple-darwin10.6.0-gpp... no
checking for i386-apple-darwin10.6.0-aCC... no
checking for i386-apple-darwin10.6.0-CC... no
checking for i386-apple-darwin10.6.0-cxx... no
checking for i386-apple-darwin10.6.0-cc++... no
checking for i386-apple-darwin10.6.0-cl.exe... no
checking for i386-apple-darwin10.6.0-FCC... no
checking for i386-apple-darwin10.6.0-KCC... no
checking for i386-apple-darwin10.6.0-RCC... no
checking for i386-apple-darwin10.6.0-xlC_r... no
checking for i386-apple-darwin10.6.0-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/Users/MYNAME/.rvm/src/ruby-1.9.2-p136':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
[2011-02-13 11:58:36] ./configure --prefix=/Users/MYNAME/.rvm/rubies/ruby-1.9.2-p136 --enable-shared
checking build system type... i386-apple-darwin10.6.0
checking host system type... i386-apple-darwin10.6.0
checking target system type... i386-apple-darwin10.6.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/MYNAME/.rvm/src/ruby-1.9.2-p136':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
最佳答案
@eggie5 说:
I would put in your os x cd and install xcode again.
不要从 DVD 安装 XCode。 10.6 (Snow Leopard) 磁盘上的版本已知存在错误。从 Apple's XCode 安装最新版本地点。您必须注册才能下载,但这是免费注册。
我怀疑你升级到 10.6,而不是你买机器时默认安装的。 10.6 是 64 位的,它的相关 XCode 版本也是,所以一切都应该是 64 位的。因为它闻起来不像普通的 Leopard 或 10.6 之前的操作系统。这意味着所有 RVM 托管的 Rubies 都是可疑的,需要清理,以及在升级和更新 XCode 之前编译的任何 gem。
安装 XCode 发行版后,您需要先卸载,然后再安装 RVM 托管的 Rubies。首先,将 RVM 更新到最新版本:键入 rvm -v
并记下版本号。输入 rvm get head
加载最新版本。加载完成后,您应该会看到一个新的修订号。 RVM 变化很快,因此您需要定期更新到最新版本。
这是来自 RVM FAQ这是使用 RVM 的非常好的信息,尤其是关于将 sudo
与 gems 一起使用的评论:
My ruby is compiling as 32 bit but I am on Mac OS X Snow Leopard which has heavy advertisement that it is 64 bit!!!
RVM compiles to your current running kernel's architecture. This means that if your kernel is running as a 32 bit kernel (uname -m) it will compile 32 bit. You can override this behavior by placing the following in your ~/.rvmrc before installing the ruby interpreter:
rvm_archflags="-arch x86_64"
我认为设置它而不是依赖默认值是个好主意,因为从现在开始您可能会使用 64 位。
键入 rvm reload
或关闭终端窗口并重新打开 session 。
键入rvm notes
并阅读。这会根据您的操作系统为您提供顺利安装 Ruby 所需的先决条件列表。未能安装这些意味着各种功能可能无法在 Ruby 中运行,这将导致随机的、奇怪的失败。
键入 rvm list
并记下您安装的 Ruby 版本。假设您的第一个是 ruby-1.8.7-p330
。类型:
rvm uninstall ruby-1.8.7-p330
rvm install ruby-1.8.7-p330
对您已安装的每一个重复此操作。完成后键入 rvm info
并查看它所说的内容是否通过了健全性检查。
如果一切正常,就该为您的 gem 重建 native 驱动程序了。
这两个步骤都是可选的,但它们是良好的定期内务管理的一部分:
gem update
,您可能想要更新您的gems。 rvm ruby 'gem update'
将遍历已安装的 Rubies,更新它们。rvm ruby 'gem clean'
将遍历已安装的 Rubies,并清除旧的东西。 要重建 native 驱动程序,请键入 rvm ruby 'gem pristine --all'
,这将重新安装您的所有 gem。
然后,运行 rvm info
并确保它再次返回正常的信息。
此外,作为紧急逃生口,通过键入 rm -f ~/.rvm
或使用rvm implode
,然后重新开始。重新安装 Ruby 是整个过程中最长的部分,一旦支持库就绪,RVM 就可以让它变得非常轻松。
关于ruby - 如何在运行 10.6 的 Macbook Pro i7 上修复此 RVM 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4985246/
你好, 我有一个 .pro 文件,看起来像: TEMPLATE = subdirs SUBDIRS = foo bar 我想在我的 subdirs .pro 文件中设置一个变量,或定义,或一些可以在
我正在尝试使用 QtCreator 构建一些项目。 这两个 .pro 文件之间有很多共同的代码。 有没有办法让这两个 .pro 文件调用另一个包含共同信息的唯一 .pro 文件? 最佳答案 是的,参见
好的,我正在为我构建的网络购物车使用 PHP/SQL。我也有所需的 Paypal 帐户(企业),所以我有一个 API 身份验证。我还创建了一个沙箱帐户并在那里也获得了 API 身份验证。 我已经通读了
我已经使用 Unity 4 Pro 试用版几个星期了。我决定升级到实际的专业版,这样我就可以发布游戏了。 我遇到的问题是,即使我已经升级了试用版本,(是的,我已经把新的序列号放在了 Unity 给我的
我目前正在开发一款完全用 Java 编写的游戏。截至目前,我的主循环正在 Action Performed 方法中运行,该方法由计时器每 100 秒更新一次。在这个循环中,代码会重新绘制,并对玩家位置
我想与组织内的用户共享 Power BI 报告。我有一个 Power BI Pro 帐户。其他用户没有。这可能吗? 我与之共享的用户无法打开报告。它说他们需要在 Pro 帐户中。 最佳答案 Shari
有没有什么办法可以将Ant Design Pro表格的默认操作文本翻译成英文。我正在使用 Umi 默认组件 最佳答案 Ant Design Pro Table 的操作有默认的翻译。您将需要导入它们并将
我有一个来 self 们供应商的 Java 应用程序。以管理员身份安装应用程序后,我尝试以管理员身份打开应用程序,但没有任何反应。我已经转到程序图标指向的位置,它转到 Javaw.exe 文件: "C
我无法使用 PayPal Payments Pro 选项创建 Paypal 沙盒测试帐户(使用 Pro 表示您自己是商家)。我在创建测试帐户时选择了该选项,但当我查看该帐户的详细信息时,它显示了 Ac
这是代码,请帮助我在第19行中使元组索引超出范围错误 import math n = 7 x = 0.5,1.2,2.1,2.9,3.6,4.5,5.7 y = 3.2,5.2,9.3,14.6,20
有人知道怎么做吗? Using File>加载C头文件失败错误代码太多。 最佳答案 C++ 标准库中有太多 IDA 无法理解的编译器相关宏。由于许多原始数据类型,例如 uint32_t 等,已经被 I
我有一个基于 Java SWING 的桌面应用程序,有人问我它是否可以在 Microsoft Surface Pro 或 Pro 2 上运行。据我所知,这些应用程序使用的是 Windows 8/8.1
我已经在 Android 中创建了一个模块以在我的主应用程序中使用,并且似乎有两个文件Consumer-rules.pro 和 proguard-rules.pro。 我想了解以下内容 所有模块代码都
好的,事情是这样的。我的一个客户声称他在使用 Safari 浏览器的 Macbook Pro 上查看网站时看不到社交图标(在屏幕的左侧)。这些图标在我测试过的所有设备上都清晰可见。是否有任何 Macb
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的
将应用程序提交到应用程序商店进行审核后,我在 iTunes Connect 中收到以下警告。我在 iTunes Connect 中没有看到上传 iPad Pro 屏幕截图的选项。 请告诉我这里可以做什
我在 Visual Studio 2010 中创建了一个愚蠢的小“游戏”来尝试使用 XNA 并自学游戏开发。它所做的只是循环颜色并在一些小球周围弹跳。我有为 .NET 4.0 客户端配置文件构建的项目
使用最新的TensorFlow(2.13)时遇到与GPU相关的错误。请注意TensorFlow-Metals页面上提供的测试模型培训,以验证我的设置工作正常。。请指点一下。。以下是我使用的命令-该脚本
我正在学习Pro*c语言。我正在尝试创建一个序列。但是当我们创建游标时我没有得到要使用哪个关键字,然后我们将其声明为 EXEC SQL DECLARE CUR_NAME CURSOR FOR
为了响应nodejs的大红大紫,最近应用其实现了一些server端的功能。数据库方面选择了老少咸宜的MySQL。今后肯定还会有相关应用需求。特此记录Mac系统下如何安装、配置MySQL及其管理工具S
我是一名优秀的程序员,十分优秀!