论坛首页 编程语言技术论坛

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

浏览 2864 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-12-05  
今天从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 `'

论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics