`
neodoxy
  • 浏览: 9929 次
  • 来自: ...
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

Leopard测试ruby1.9,Rails1.99.1失败,请问如何解决

阅读更多
今天从svn上下载了ruby1.9的Trunk源码,在Leopard上用xcode编译后,测试发现的确快了很多,但是在继续安装Rails1.99.1时出现了问题,通过gem安装过程中没有任何问题,但是执行rails -v出现以下错误:
QUON-PC:works quon$ rails -v
/Users/quon/ruby/bin/rails:19:in `load': Is a directory - /Users/quon/ruby/lib/ruby/gems/1.9/gems/rails-1.99.1/lib/rails (Errno::EISDIR)
from /Users/quon/ruby/bin/rails:19:in `'
与ruby1.8.6下的rails对比发现完全相同,怀疑为gem问题,试图用gem update --system升级gem出现以下错误:
QUON-PC:works quon$ gem update --system
Updating RubyGems...
Attempting remote update of rubygems-update
Successfully installed rubygems-update-0.9.5
1 gem installed
Updating version of RubyGems to 0.9.5
Installing RubyGems 0.9.5
mkdir -p /Users/quon/ruby/lib/ruby/lib
mkdir -p /Users/quon/ruby/lib/ruby/bin
mkdir -p /Users/quon/ruby/lib/ruby/lib/rbconfig
install -c -m 0644 rbconfig/datadir.rb /Users/quon/ruby/lib/ruby/lib/rbconfig/datadir.rb
mkdir -p /Users/quon/ruby/lib/ruby/lib/rubygems
install -c -m 0644 rubygems/builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/builder.rb
install -c -m 0644 rubygems/command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/command.rb
install -c -m 0644 rubygems/command_manager.rb /Users/quon/ruby/lib/ruby/lib/rubygems/command_manager.rb
mkdir -p /Users/quon/ruby/lib/ruby/lib/rubygems/commands
install -c -m 0644 rubygems/commands/build_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/build_command.rb
install -c -m 0644 rubygems/commands/cert_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/cert_command.rb
install -c -m 0644 rubygems/commands/check_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/check_command.rb
install -c -m 0644 rubygems/commands/cleanup_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/cleanup_command.rb
install -c -m 0644 rubygems/commands/contents_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/contents_command.rb
install -c -m 0644 rubygems/commands/dependency_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/dependency_command.rb
install -c -m 0644 rubygems/commands/environment_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/environment_command.rb
install -c -m 0644 rubygems/commands/fetch_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/fetch_command.rb
install -c -m 0644 rubygems/commands/generate_index_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/generate_index_command.rb
install -c -m 0644 rubygems/commands/help_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/help_command.rb
install -c -m 0644 rubygems/commands/install_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/install_command.rb
install -c -m 0644 rubygems/commands/list_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/list_command.rb
install -c -m 0644 rubygems/commands/lock_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/lock_command.rb
install -c -m 0644 rubygems/commands/mirror_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/mirror_command.rb
install -c -m 0644 rubygems/commands/outdated_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/outdated_command.rb
install -c -m 0644 rubygems/commands/pristine_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/pristine_command.rb
install -c -m 0644 rubygems/commands/query_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/query_command.rb
install -c -m 0644 rubygems/commands/rdoc_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/rdoc_command.rb
install -c -m 0644 rubygems/commands/search_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/search_command.rb
install -c -m 0644 rubygems/commands/server_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/server_command.rb
install -c -m 0644 rubygems/commands/sources_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/sources_command.rb
install -c -m 0644 rubygems/commands/specification_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/specification_command.rb
install -c -m 0644 rubygems/commands/uninstall_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/uninstall_command.rb
install -c -m 0644 rubygems/commands/unpack_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/unpack_command.rb
install -c -m 0644 rubygems/commands/update_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/update_command.rb
install -c -m 0644 rubygems/commands/which_command.rb /Users/quon/ruby/lib/ruby/lib/rubygems/commands/which_command.rb
install -c -m 0644 rubygems/config_file.rb /Users/quon/ruby/lib/ruby/lib/rubygems/config_file.rb
install -c -m 0644 rubygems/custom_require.rb /Users/quon/ruby/lib/ruby/lib/rubygems/custom_require.rb
install -c -m 0644 rubygems/dependency.rb /Users/quon/ruby/lib/ruby/lib/rubygems/dependency.rb
install -c -m 0644 rubygems/dependency_installer.rb /Users/quon/ruby/lib/ruby/lib/rubygems/dependency_installer.rb
install -c -m 0644 rubygems/dependency_list.rb /Users/quon/ruby/lib/ruby/lib/rubygems/dependency_list.rb
mkdir -p /Users/quon/ruby/lib/ruby/lib/rubygems/digest
install -c -m 0644 rubygems/digest/digest_adapter.rb /Users/quon/ruby/lib/ruby/lib/rubygems/digest/digest_adapter.rb
install -c -m 0644 rubygems/digest/md5.rb /Users/quon/ruby/lib/ruby/lib/rubygems/digest/md5.rb
install -c -m 0644 rubygems/digest/sha1.rb /Users/quon/ruby/lib/ruby/lib/rubygems/digest/sha1.rb
install -c -m 0644 rubygems/digest/sha2.rb /Users/quon/ruby/lib/ruby/lib/rubygems/digest/sha2.rb
install -c -m 0644 rubygems/doc_manager.rb /Users/quon/ruby/lib/ruby/lib/rubygems/doc_manager.rb
install -c -m 0644 rubygems/exceptions.rb /Users/quon/ruby/lib/ruby/lib/rubygems/exceptions.rb
mkdir -p /Users/quon/ruby/lib/ruby/lib/rubygems/ext
install -c -m 0644 rubygems/ext/builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/ext/builder.rb
install -c -m 0644 rubygems/ext/configure_builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/ext/configure_builder.rb
install -c -m 0644 rubygems/ext/ext_conf_builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/ext/ext_conf_builder.rb
install -c -m 0644 rubygems/ext/rake_builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/ext/rake_builder.rb
install -c -m 0644 rubygems/ext.rb /Users/quon/ruby/lib/ruby/lib/rubygems/ext.rb
install -c -m 0644 rubygems/format.rb /Users/quon/ruby/lib/ruby/lib/rubygems/format.rb
install -c -m 0644 rubygems/gem_open_uri.rb /Users/quon/ruby/lib/ruby/lib/rubygems/gem_open_uri.rb
install -c -m 0644 rubygems/gem_openssl.rb /Users/quon/ruby/lib/ruby/lib/rubygems/gem_openssl.rb
install -c -m 0644 rubygems/gem_path_searcher.rb /Users/quon/ruby/lib/ruby/lib/rubygems/gem_path_searcher.rb
install -c -m 0644 rubygems/gem_runner.rb /Users/quon/ruby/lib/ruby/lib/rubygems/gem_runner.rb
mkdir -p /Users/quon/ruby/lib/ruby/lib/rubygems/indexer
install -c -m 0644 rubygems/indexer/abstract_index_builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/indexer/abstract_index_builder.rb
install -c -m 0644 rubygems/indexer/marshal_index_builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/indexer/marshal_index_builder.rb
install -c -m 0644 rubygems/indexer/master_index_builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/indexer/master_index_builder.rb
install -c -m 0644 rubygems/indexer/quick_index_builder.rb /Users/quon/ruby/lib/ruby/lib/rubygems/indexer/quick_index_builder.rb
install -c -m 0644 rubygems/indexer.rb /Users/quon/ruby/lib/ruby/lib/rubygems/indexer.rb
install -c -m 0644 rubygems/install_update_options.rb /Users/quon/ruby/lib/ruby/lib/rubygems/install_update_options.rb
install -c -m 0644 rubygems/installer.rb /Users/quon/ruby/lib/ruby/lib/rubygems/installer.rb
install -c -m 0644 rubygems/local_remote_options.rb /Users/quon/ruby/lib/ruby/lib/rubygems/local_remote_options.rb
install -c -m 0644 rubygems/old_format.rb /Users/quon/ruby/lib/ruby/lib/rubygems/old_format.rb
install -c -m 0644 rubygems/open-uri.rb /Users/quon/ruby/lib/ruby/lib/rubygems/open-uri.rb
install -c -m 0644 rubygems/package.rb /Users/quon/ruby/lib/ruby/lib/rubygems/package.rb
install -c -m 0644 rubygems/platform.rb /Users/quon/ruby/lib/ruby/lib/rubygems/platform.rb
install -c -m 0644 rubygems/remote_fetcher.rb /Users/quon/ruby/lib/ruby/lib/rubygems/remote_fetcher.rb
install -c -m 0644 rubygems/remote_installer.rb /Users/quon/ruby/lib/ruby/lib/rubygems/remote_installer.rb
install -c -m 0644 rubygems/requirement.rb /Users/quon/ruby/lib/ruby/lib/rubygems/requirement.rb
install -c -m 0644 rubygems/rubygems_version.rb /Users/quon/ruby/lib/ruby/lib/rubygems/rubygems_version.rb
install -c -m 0644 rubygems/security.rb /Users/quon/ruby/lib/ruby/lib/rubygems/security.rb
install -c -m 0644 rubygems/server.rb /Users/quon/ruby/lib/ruby/lib/rubygems/server.rb
install -c -m 0644 rubygems/source_index.rb /Users/quon/ruby/lib/ruby/lib/rubygems/source_index.rb
install -c -m 0644 rubygems/source_info_cache.rb /Users/quon/ruby/lib/ruby/lib/rubygems/source_info_cache.rb
install -c -m 0644 rubygems/source_info_cache_entry.rb /Users/quon/ruby/lib/ruby/lib/rubygems/source_info_cache_entry.rb
install -c -m 0644 rubygems/specification.rb /Users/quon/ruby/lib/ruby/lib/rubygems/specification.rb
install -c -m 0644 rubygems/timer.rb /Users/quon/ruby/lib/ruby/lib/rubygems/timer.rb
install -c -m 0644 rubygems/uninstaller.rb /Users/quon/ruby/lib/ruby/lib/rubygems/uninstaller.rb
install -c -m 0644 rubygems/user_interaction.rb /Users/quon/ruby/lib/ruby/lib/rubygems/user_interaction.rb
install -c -m 0644 rubygems/validator.rb /Users/quon/ruby/lib/ruby/lib/rubygems/validator.rb
install -c -m 0644 rubygems/version.rb /Users/quon/ruby/lib/ruby/lib/rubygems/version.rb
install -c -m 0644 rubygems/version_option.rb /Users/quon/ruby/lib/ruby/lib/rubygems/version_option.rb
install -c -m 0644 rubygems.rb /Users/quon/ruby/lib/ruby/lib/rubygems.rb
install -c -m 0644 ubygems.rb /Users/quon/ruby/lib/ruby/lib/ubygems.rb
cp gem /var/folders/-N/-ND0pqQvFd88B8ZvvziiPE+++TI/-Tmp-/gem
install -c -m 0755 /var/folders/-N/-ND0pqQvFd88B8ZvvziiPE+++TI/-Tmp-/gem /Users/quon/ruby/lib/ruby/bin/gem
rm /var/folders/-N/-ND0pqQvFd88B8ZvvziiPE+++TI/-Tmp-/gem
cp update_rubygems /var/folders/-N/-ND0pqQvFd88B8ZvvziiPE+++TI/-Tmp-/update_rubygems
install -c -m 0755 /var/folders/-N/-ND0pqQvFd88B8ZvvziiPE+++TI/-Tmp-/update_rubygems /Users/quon/ruby/lib/ruby/bin/update_rubygems
rm /var/folders/-N/-ND0pqQvFd88B8ZvvziiPE+++TI/-Tmp-/update_rubygems
rm /Users/quon/.gem/source_cache
rm /Users/quon/ruby/lib/ruby/gems/1.9/source_cache
Removing old RubyGems RDoc and ri...
Installing rubygems-0.9.5 ri into /Users/quon/ruby/lib/ruby/gems/1.9/doc/rubygems-0.9.5/ri...
/Users/quon/ruby/lib/ruby/1.9/rdoc/options.rb:378: warning: variable $KCODE is no longer effective


RDoc failure in lib/rubygems/source_index.rb at or around line 325 column 18

Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.

The internal error was:

/Users/quon/ruby/lib/ruby/1.9/e2mmap.rb:160:in `Raise': $! is a read-only variable (NameError)
from /Users/quon/ruby/lib/ruby/1.9/e2mmap.rb:93:in `fail'
from /Users/quon/ruby/lib/ruby/1.9/rdoc/parsers/parse_rb.rb:1130:in `identify_quotation'
from /Users/quon/ruby/lib/ruby/1.9/rdoc/parsers/parse_rb.rb:909:in `block in lex_int2'
QUON-PC:works quon$ sudo gem update --system
Updating RubyGems...
Bulk updating Gem source index for: http://gems.rubyforge.org
Attempting remote update of rubygems-update
Successfully installed rubygems-update-0.9.5
1 gem installed
Updating version of RubyGems to 0.9.5
Installing RubyGems 0.9.5
mkdir -p /Users/quon/ruby/lib/ruby/gems/1.9/gems/rubygems-update-0.9.5/lib
mkdir -p /Users/quon/ruby/lib/ruby/gems/1.9/gems/rubygems-update-0.9.5/bin
install -c -m 0644 rbconfig/datadir.rb /Users/quon/ruby/lib/ruby/gems/1.9/gems/rubygems-update-0.9.5/lib/rbconfig/datadir.rb
/Users/quon/ruby/lib/ruby/1.9/fileutils.rb:1391:in `raise': same file: rbconfig/datadir.rb and /Users/quon/ruby/lib/ruby/gems/1.9/gems/rubygems-update-0.9.5/lib/rbconfig/datadir.rb (ArgumentError)
from /Users/quon/ruby/lib/ruby/1.9/fileutils.rb:1391:in `block in fu_each_src_dest'
from /Users/quon/ruby/lib/ruby/1.9/fileutils.rb:1408:in `fu_each_src_dest0'
from /Users/quon/ruby/lib/ruby/1.9/fileutils.rb:1390:in `fu_each_src_dest'
from /Users/quon/ruby/lib/ruby/1.9/fileutils.rb:834:in `install'
from /Users/quon/ruby/lib/ruby/1.9/fileutils.rb:1524:in `install'
from setup.rb:72:in `block (2 levels) in '
from setup.rb:67:in `each'
from setup.rb:67:in `block in '
from setup.rb:64:in `chdir'
from setup.rb:64:in `'

分享到:
评论

相关推荐

    mac snow leopard安装ruby

    ### Mac Snow Leopard 安装 Ruby 及 Ruby on Rails 开发环境搭建详解 #### 背景介绍 在 Mac OS X Snow Leopard(版本 10.6)系统下安装 Ruby 和进行 Ruby on Rails 的开发,是许多开发者特别是初学者可能会遇到的...

    Ruby on Rails Web开发之旅.pdf【第二部分】

    《Ruby.on.Rails.Web开发之旅》,作者:【德】Patrick Lenz,翻译:王德民、刘昕、裴立秋,出版社:人民邮电出版社,ISBN:9787115188526,PDF 格式,大小 144 Mb,被压缩为 3 部分,本资源是第二部分;第一部分下载...

    Ruby on Rails Web开发之旅.pdf【第一部分】

    《Ruby.on.Rails.Web开发之旅》,作者:【德】Patrick Lenz,翻译:王德民、刘昕、裴立秋,出版社:人民邮电出版社,ISBN:9787115188526,PDF 格式,大小 144 Mb,被压缩为 3 部分,本资源是第一部分;第二部分下载...

    Ruby on Rails Web开发之旅.pdf【第三部分】

    《Ruby.on.Rails.Web开发之旅》,作者:【德】Patrick Lenz,翻译:王德民、刘昕、裴立秋,出版社:人民邮电出版社,ISBN:9787115188526,PDF 格式,大小 144 Mb,被压缩为 3 部分,本资源是第三部分;第一部分下载...

    leopard硬盘安装史重要更新 leopard硬盘安装助手v0.3

    新鲜出炉:leopard硬盘安装史重要更新:leopard硬盘安装助手!!支持iso文件! 1、格式化一盘为fat32,或将盘上所有文件(含隐藏的)删空 2、打开程序,选镜象文件(支持iso文件) 3、目标盘选刚才格的盘,点开始进行镜象 4、...

    leopard硬盘安装助手

    Leopard硬盘安装助手就是为了解决这一问题,允许用户直接从硬盘启动安装程序,无需物理光盘。 3. **安装助手功能**: - **创建可引导安装分区**: 工具可以帮助用户在硬盘上划分一个空间作为新的系统分区,用于存储...

    Leopard hd install helper v0.3

    为了解决这个问题,开发者推出了"Leopard HD Install Helper v0.3",这是一款专为Mac OS X Leopard定制的引导工具,旨在简化系统安装和引导过程。本文将深入探讨这款工具的功能、使用方法及其背后的原理。 一、...

    Mac OS X 10.5 Leopard ISO

    **Mac OS X 10.5 Leopard ISO** 是苹果公司在2007年推出的一款操作系统,它是Mac OS X系列中的一个重要版本,代号为“Leopard”。这款系统引入了大量新特性和改进,提升了用户体验,并在苹果计算机硬件上运行得更为...

    leopard硬盘安装助手v0.3

    leopard硬盘安装助手 重要更新:支持iso文件! 1、格式化一盘为fat32,或将盘上所有文件(含隐藏的)删空 2、打开程序,选镜象文件(支持iso文件) 3、目标盘选刚才格的盘,点开始进行镜象 4、重启,你可以从硬盘装leopard...

    leopard 主题

    【标题】"Leopard 主题" 是一个专为Windows XP和Vista用户设计的主题,它模仿了苹果公司的标志性操作系统——Mac OS X Leopard的界面风格。Leopard是苹果在2007年推出的操作系统版本,以其优雅、简洁且功能丰富的...

    leopard硬盘安装工具

    新鲜出炉:leopard硬盘安装史重要更新:leopard硬盘安装助手!!支持iso文件! 1、格式化一盘为fat32,或将盘上所有文件(含隐藏的)删空 2、打开程序,选镜象文件(支持iso文件) 3、目标盘选刚才格的盘,点开始进行镜象 4、...

    Leopard0.3.zip

    1. **虚拟机技术**:如何在Windows上设置和运行虚拟机,以便在其中安装和测试Leopard系统。 2. **ISO和dmg映像的处理**:了解如何使用工具如PowerISO、Daemon Tools或Unetbootin来写入或挂载这些文件。 3. **分区...

    Leopard 原版壁纸.rar

    《Leopard原版壁纸:揭示苹果操作系统的艺术美学》 在科技与艺术的交汇处,我们常常能找到苹果公司的产品设计,而Leopard操作系统便是其中的经典之作。本资源包"Leopard原版壁纸.rar",正是对苹果Leopard操作系统...

Global site tag (gtag.js) - Google Analytics