2010-09-13 97 views
4

我有麻煩開始與導軌3.0.0發現,因爲它只是不會加載耙任務耙任務不會在軌道3

耙寶石:安裝

rake aborted! 
Don't know how to build task 'gems:install' 

耙-T

rake about    # List versions of all Rails frameworks and the environment 
rake db:create   # Create the database from config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config) 
rake db:drop   # Drops the database for the current Rails.env (use db:drop:all to drop all databases) 
rake db:fixtures:load # Load fixtures into the current environment's database. 
rake db:migrate   # Migrate the database (options: VERSION=x, VERBOSE=false). 
rake db:migrate:status # Display status of migrations 
rake db:rollback  # Rolls the schema back to the previous version (specify steps w/ STEP=n). 
rake db:schema:dump  # Create a db/schema.rb file that can be portably used against any DB supported by AR 
rake db:schema:load  # Load a schema.rb file into the database 
rake db:seed   # Load the seed data from db/seeds.rb 
rake db:setup   # Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the db first) 
rake db:structure:dump # Dump the database structure to an SQL file 
rake db:version   # Retrieves the current schema version number 
rake doc:app   # Generate docs for the app -- also availble doc:rails, doc:guides, doc:plugins (options: TEMPLATE=/rdoc-template.rb, TITLE="Custom Title") 
rake log:clear   # Truncates all *.log files in log/ to zero bytes 
rake middleware   # Prints out your Rack middleware stack 
rake notes    # Enumerate all annotations (use notes:optimize, :fixme, :todo for focus) 
rake notes:custom  # Enumerate a custom annotation, specify with ANNOTATION=CUSTOM 
rake rails:template  # Applies the template supplied by LOCATION=/path/to/template 
rake rails:update  # Update both configs and public/javascripts from Rails (or use just update:javascripts or update:configs) 
rake routes    # Print out all defined routes in match order, with names. 
rake secret    # Generate a crytographically secure secret key (this is typically used to generate a secret for cookie sessions). 
rake stats    # Report code statistics (KLOCs, etc) from the application 
rake test    # Runs test:units, test:functionals, test:integration together (also available: test:benchmark, test:profile, test:plugins) 
rake test:recent  # Run tests for recenttest:prepare/Test recent changes 
rake test:uncommitted # Run tests for uncommittedtest:prepare/Test changes since last checkin (only Subversion and Git) 
rake time:zones:all  # Displays all time zones, also available: time:zones:us, time:zones:local -- filter with OFFSET parameter, e.g., OFFSET=-6 
rake tmp:clear   # Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:clear) 
rake tmp:create   # Creates tmp directories for sessions, cache, sockets, and pids 

所以問題是,沒有包括寶石任務。 這可能也是原因,我不能安裝指南針。它給了我下面的錯誤:

軌新testproj -m http://compass-style.org/rails/installer

rake gems:install GEM=haml --trace 
rake aborted! 
Don't know how to build task 'gems:install' 

是捆綁在我的系統壞了?我在雪豹身上。

回答

12

你必須使用捆綁器,而不是rake任務。 嘗試: 捆綁安裝

如果您想安裝寶石,您必須將它們放入您的Gemfile(在項目根目錄中),然後使用捆綁軟件安裝它們。 http://github.com/schacon/bundler

在你的Gemfile:

gem "haml" 

然後運行

bundle install 
+0

好了,大約在軌道3安裝指南針和寶石大多數文檔是真的過時了。謝謝你的幫助 – wiemann 2010-09-13 16:14:00