2011-09-10 2 views
2

저는 Ruby/Rails에 처음 접했지만 시작하는 방법을 찾지 못했습니다 (며칠 전 일했습니다). 나는 실제로 사용 응용 프로그램 폴더에서 오전레일 S가 서버를 시작하지 않습니다 : 레일을 찾을 수 없습니다 (> = 0)?

하고 그럼

rails s 
/Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError) 
from /Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' 
from /Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in `gem' 
from /usr/bin/rails:18:in `<main>' 

"보석의 목록을"다음 확인 내가 다시 시도하면 "보석 레일을 설치"

rails (3.1.0, 3.1.0.rc8, 3.1.0.rc6) 
rails_config (0.2.4) 

내가 거기이다

Successfully installed rails-3.1.0 
1 gem installed 
Installing ri documentation for rails-3.1.0... 
file 'lib' not found 
Installing RDoc documentation for rails-3.1.0... 
file 'lib' not found 

번들 쇼 레일 :

WARNING: #<ArgumentError: Illformed requirement ["#<YAML::Syck::DefaultKey:0x10dd4fec8> 2.10.3"]> 
# -*- encoding: utf-8 -*- 

Gem::Specification.new do |s| 
    s.name = %q{simplecov} 
    s.version = "0.5.0" 
(ETC:) 

보석 봉투가 :

RubyGems Environment: 
    - RUBYGEMS VERSION: 1.8.10 
    - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin11.1.0] 
    - INSTALLATION DIRECTORY: /Users/me/.rvm/gems/ruby-1.9.2-p290 
    - RUBY EXECUTABLE: /Users/me/.rvm/rubies/ruby-1.9.2-p290/bin/ruby 
    - EXECUTABLE DIRECTORY: /Users/me/.rvm/gems/ruby-1.9.2-p290/bin 
    - RUBYGEMS PLATFORMS: 
    - ruby 
    - x86_64-darwin-11 
    - GEM PATHS: 
    - /Users/me/.rvm/gems/ruby-1.9.2-p290 
    - /Users/me/.rvm/gems/[email protected] 
    - GEM CONFIGURATION: 
    - :update_sources => true 
    - :verbose => true 
    - :benchmark => false 
    - :backtrace => false 
    - :bulk_threshold => 1000 
    - REMOTE SOURCES: 
    - http://rubygems.org/ 

내가 바로 지금 8 시간 동안 시도, 어쩌면 누군가가 여기에 나를 도와 드릴까요? 정말 고마워!

편집 1 :

실행 번들 간부 레일의 :

WARNING: #<ArgumentError: Illformed requirement ["#<YAML::Syck::DefaultKey:0x10dd4fec8> 2.10.3"]> 
# -*- encoding: utf-8 -*- 

Gem::Specification.new do |s| 
    s.name = %q{simplecov} 
    s.version = "0.5.0" 

    s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= 
    s.authors = ["Christoph Olszowka"] 
    s.date = %q{2011-09-09} 
    s.description = %q{Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites} 
    s.email = ["christoph at olszowka de"] 
    s.files = [".gitignore", ".rvmrc", ".travis.yml", "Gemfile", "LICENSE", "README.rdoc", "Rakefile", "cucumber.yml", "features/config_adapters.feature", "features/config_autoload.feature", "features/config_command_name.feature", "features/config_coverage_dir.feature", "features/config_deactivate_merging.feature", "features/config_merge_timeout.feature", "features/config_project_name.feature", "features/config_styles.feature", "features/cucumber_basic.feature", "features/merging_test_unit_and_rspec.feature", "features/rspec_basic.feature", "features/rspec_groups_and_filters_basic.feature", "features/rspec_groups_and_filters_complex.feature", "features/rspec_without_simplecov.feature", "features/step_definitions/html_steps.rb", "features/step_definitions/simplecov_steps.rb", "features/step_definitions/transformers.rb", "features/step_definitions/web_steps.rb", "features/support/env.rb", "features/test_unit_basic.feature", "features/test_unit_groups_and_filters_basic.feature", "features/test_unit_groups_and_filters_complex.feature", "features/test_unit_without_simplecov.feature", "lib/simplecov.rb", "lib/simplecov/adapters.rb", "lib/simplecov/command_guesser.rb", "lib/simplecov/configuration.rb", "lib/simplecov/defaults.rb", "lib/simplecov/file_list.rb", "lib/simplecov/filter.rb", "lib/simplecov/formatter.rb", "lib/simplecov/formatter/simple_formatter.rb", "lib/simplecov/jruby_float_fix.rb", "lib/simplecov/merge_helpers.rb", "lib/simplecov/result.rb", "lib/simplecov/result_merger.rb", "lib/simplecov/source_file.rb", "lib/simplecov/version.rb", "simplecov.gemspec", "test/faked_project/Gemfile", "test/faked_project/Rakefile", "test/faked_project/cucumber.yml", "test/faked_project/features/step_definitions/my_steps.rb", "test/faked_project/features/support/env.rb", "test/faked_project/features/test_stuff.feature", "test/faked_project/lib/faked_project.rb", "test/faked_project/lib/faked_project/framework_specific.rb", "test/faked_project/lib/faked_project/meta_magic.rb", "test/faked_project/lib/faked_project/some_class.rb", "test/faked_project/spec/faked_spec.rb", "test/faked_project/spec/meta_magic_spec.rb", "test/faked_project/spec/some_class_spec.rb", "test/faked_project/spec/spec_helper.rb", "test/faked_project/test/faked_test.rb", "test/faked_project/test/meta_magic_test.rb", "test/faked_project/test/some_class_test.rb", "test/faked_project/test/test_helper.rb", "test/fixtures/app/controllers/sample_controller.rb", "test/fixtures/app/models/user.rb", "test/fixtures/deleted_source_sample.rb", "test/fixtures/frameworks/rspec_bad.rb", "test/fixtures/frameworks/rspec_good.rb", "test/fixtures/frameworks/testunit_bad.rb", "test/fixtures/frameworks/testunit_good.rb", "test/fixtures/resultset1.rb", "test/fixtures/resultset2.rb", "test/fixtures/sample.rb", "test/helper.rb", "test/shoulda_macros.rb", "test/test_1_8_fallbacks.rb", "test/test_command_guesser.rb", "test/test_deleted_source.rb", "test/test_file_list.rb", "test/test_filters.rb", "test/test_merge_helpers.rb", "test/test_result.rb", "test/test_return_codes.rb", "test/test_source_file.rb", "test/test_source_file_line.rb"] 
    s.homepage = %q{http://github.com/colszowka/simplecov} 
    s.require_paths = ["lib"] 
    s.rubyforge_project = %q{simplecov} 
    s.rubygems_version = %q{1.3.6} 
    s.summary = %q{Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites} 
    s.test_files = ["features/config_adapters.feature", "features/config_autoload.feature", "features/config_command_name.feature", "features/config_coverage_dir.feature", "features/config_deactivate_merging.feature", "features/config_merge_timeout.feature", "features/config_project_name.feature", "features/config_styles.feature", "features/cucumber_basic.feature", "features/merging_test_unit_and_rspec.feature", "features/rspec_basic.feature", "features/rspec_groups_and_filters_basic.feature", "features/rspec_groups_and_filters_complex.feature", "features/rspec_without_simplecov.feature", "features/step_definitions/html_steps.rb", "features/step_definitions/simplecov_steps.rb", "features/step_definitions/transformers.rb", "features/step_definitions/web_steps.rb", "features/support/env.rb", "features/test_unit_basic.feature", "features/test_unit_groups_and_filters_basic.feature", "features/test_unit_groups_and_filters_complex.feature", "features/test_unit_without_simplecov.feature", "test/faked_project/Gemfile", "test/faked_project/Rakefile", "test/faked_project/cucumber.yml", "test/faked_project/features/step_definitions/my_steps.rb", "test/faked_project/features/support/env.rb", "test/faked_project/features/test_stuff.feature", "test/faked_project/lib/faked_project.rb", "test/faked_project/lib/faked_project/framework_specific.rb", "test/faked_project/lib/faked_project/meta_magic.rb", "test/faked_project/lib/faked_project/some_class.rb", "test/faked_project/spec/faked_spec.rb", "test/faked_project/spec/meta_magic_spec.rb", "test/faked_project/spec/some_class_spec.rb", "test/faked_project/spec/spec_helper.rb", "test/faked_project/test/faked_test.rb", "test/faked_project/test/meta_magic_test.rb", "test/faked_project/test/some_class_test.rb", "test/faked_project/test/test_helper.rb", "test/fixtures/app/controllers/sample_controller.rb", "test/fixtures/app/models/user.rb", "test/fixtures/deleted_source_sample.rb", "test/fixtures/frameworks/rspec_bad.rb", "test/fixtures/frameworks/rspec_good.rb", "test/fixtures/frameworks/testunit_bad.rb", "test/fixtures/frameworks/testunit_good.rb", "test/fixtures/resultset1.rb", "test/fixtures/resultset2.rb", "test/fixtures/sample.rb", "test/helper.rb", "test/shoulda_macros.rb", "test/test_1_8_fallbacks.rb", "test/test_command_guesser.rb", "test/test_deleted_source.rb", "test/test_file_list.rb", "test/test_filters.rb", "test/test_merge_helpers.rb", "test/test_result.rb", "test/test_return_codes.rb", "test/test_source_file.rb", "test/test_source_file_line.rb"] 

    if s.respond_to? :specification_version then 
    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION 
    s.specification_version = 3 

    if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then 
     s.add_runtime_dependency(%q<simplecov-html>, ["~> 0.5.0"]) 
     s.add_development_dependency(%q<aruba>, [">= 0.4.5"]) 
     s.add_development_dependency(%q<capybara>, ["~> 1.0.0"]) 
     s.add_development_dependency(%q<cucumber>, ["~> 1.0.0"]) 
     s.add_development_dependency(%q<rake>, ["<= 0.9.0"]) 
     s.add_development_dependency(%q<rspec>, [">= 2.6.0"]) 
     s.add_development_dependency(%q<shoulda>, ["#<YAML::Syck::DefaultKey:0x10dd4fec8> 2.10.3"]) 
    else 
     s.add_dependency(%q<simplecov-html>, ["~> 0.5.0"]) 
     s.add_dependency(%q<aruba>, [">= 0.4.5"]) 
     s.add_dependency(%q<capybara>, ["~> 1.0.0"]) 
     s.add_dependency(%q<cucumber>, ["~> 1.0.0"]) 
     s.add_dependency(%q<rake>, ["<= 0.9.0"]) 
     s.add_dependency(%q<rspec>, [">= 2.6.0"]) 
     s.add_dependency(%q<shoulda>, ["#<YAML::Syck::DefaultKey:0x10dd4fec8> 2.10.3"]) 
    end 
    else 
    s.add_dependency(%q<simplecov-html>, ["~> 0.5.0"]) 
    s.add_dependency(%q<aruba>, [">= 0.4.5"]) 
    s.add_dependency(%q<capybara>, ["~> 1.0.0"]) 
    s.add_dependency(%q<cucumber>, ["~> 1.0.0"]) 
    s.add_dependency(%q<rake>, ["<= 0.9.0"]) 
    s.add_dependency(%q<rspec>, [">= 2.6.0"]) 
    s.add_dependency(%q<shoulda>, ["#<YAML::Syck::DefaultKey:0x10dd4fec8> 2.10.3"]) 
    end 
end 
WARNING: Invalid .gemspec format in '/Library/Ruby/Gems/1.8/specifications/simplecov-0.5.0.gemspec' 
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. 
Gem.source_index called from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/shared_helpers.rb:3. 
git://github.com/ryanb/nested_form.git (at master) is not checked out. Please run `bundle install` 

실행 보석 자연 그대로의 --all --no-확장 : 레일까지 실행 미세 :

Restored rack-mount-0.8.2 
Restored rack-openid-1.3.1 
Restored rack-ssl-1.3.2 
Restored rack-test-0.6.1 
ERROR: While executing gem ... (Errno::EACCES) 
    Permission denied - /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/rails-3.1.0/bin/rails 
+0

나는이 문제를 해결할 수 있었지만 솔직히 이유를 모르겠다. 나는 보석, 루비 등을 제거하고 설치하는 것을 계속했다. – Simon

답변

2

시도해 보셨습니까?

bundle install 
,210

그리고 :

bundle exec rails s 
+0

고마워. 작동하지 않으면 위의 게시물을 업데이트합니다. – Simon

0

당신이 rvmsudo으로 명령을 실행하려고 할 수 있습니까?

예를 들어, rvmsudo gem pristine ....

관련 문제