2012-03-11 3 views
0

는 "시작"시작 가이드, 내가 실행하려고 할 때 찾을 받고 레일 데이터베이스를 만들 수 없습니다 "레이크 DB를 : 생성", 난 항상 오류가는 표준 레일을 통해 내 길을 만들기

Could not find i18n-0.6.0 in any of the sources 
Run `bundle install` to install missing gems. 

development: 
    adapter: mysql 
    database: attitude 
    username: attitude 
    password: *** 
    host: localhost 

# Warning: The database defined as "test" will be erased and 
# re-generated from your development database when you run "rake". 
# Do not set this db to the same as development or production. 
test: 
    adapter: mysql 
    database: attitude 
    username: attitude 
    password: *** 
    host: localhost 

production: 
    adapter: mysql 
    database: attitude 
    username: attitude 
    password: *** 
    host: localhost 

국제화가 보석 목록 국제화에 표시 :

여기 내 database.yml을합니다. Bundle show는 /usr/lib/ruby/gems/1.9.1/gems/i18n-0.6.0에 i18n이 설치되어 있습니다. sudo 번들 설치를 사용했을 때의 결과 인 것처럼 보이는 stackoverflow와 관련된 몇 가지 관련 질문을 보았습니다. 새로운 레일스 프로젝트를 만들려고했지만 조심스럽게 명령을 사용하지는 않았지만 아무 소용이 없었습니다. 레일을 완전히 다시 설치해야합니까, 아니면 제 우분투가 망가 졌는지, 아니면 무엇입니까?

+0

sudo를 사용하여 비슷한 문제가 발생했습니다. 전체 루비/레일 설치가 처음부터 시작되었습니다. 당신이 더 나은 행운을 가지고 있기를 바랍니다. –

+1

방금 ​​레일을 시작하고 싶다면, mysql을 잊어 버리고 sqlite를 고수하십시오. 정말로 mysql을 원한다면 가이드에서 언급 한 mysql2 gem을 사용해야한다. http://guides.rubyonrails.org/getting_started.html#configuring-a-database –

+0

@StefanH 좀 더 도움을 줄 수 있겠 니? 나는 처음부터 다시 시작하는 방법을 모르는만큼 새로웠다. sudo apt-get purge rails는 충분하지 않았고 제거해야 할 다른 것을 모른다. – blaha

답변

1

실행 sudo gem uninstall i18n. 그런 다음 bundle install을 다시 실행하십시오 (sudo 제외).

관련 문제