ruby

2017. 3. 17. 00:42

rails s를 하면

C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git/git_proxy.rb:225:in `allowed_in_path': The git source git://github.com/parasew/acts_as_tree.git is not yet checked out. Please run `bundle install` before trying to start your application (Bundler::GitError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git/git_proxy.rb:183:in `find_local_revision'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git/git_proxy.rb:63:in `revision'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git.rb:220:in `revision'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git.rb:88:in `install_path'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/path.rb:123:in `expanded_path'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/path.rb:150:in `load_spec_files'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git.rb:193:in `load_spec_files'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/path.rb:97:in `local_specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/source/git.rb:161:in `specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:725:in `block in converge_locked_specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:714:in `each'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:714:in `converge_locked_specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:245:in `resolve'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:176:in `specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:235:in `specs_for'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/definition.rb:224:in `requested_specs'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:118:in `block in definition_method'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:19:in `setup'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.14.6/lib/bundler.rb:100:in `setup'
        from C:/bori_mrk/config/boot.rb:8:in `<top (required)>'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from script/rails:5:in `<main>'



bundle install 을 실행하면

 Fetching git://github.com/parasew/acts_as_tree.git
fatal: Not a git repository (or any of the parent directories): .git

Retrying `git fetch --force --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache
/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` due to erro
r (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --f
orce --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tr
ee-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` in directory C:/Ruby193/lib/ruby/g
ems/1.9.1/bundler/gems/acts_as_tree-ed52495d1671 has failed.
If this error persists you could try removing the cache directory 'C:/Ruby193/li
b/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b2
27326e9de'fatal: Not a git repository (or any of the parent directories): .git

Retrying `git fetch --force --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache
/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` due to erro
r (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --f
orce --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tr
ee-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` in directory C:/Ruby193/lib/ruby/g
ems/1.9.1/bundler/gems/acts_as_tree-ed52495d1671 has failed.
If this error persists you could try removing the cache directory 'C:/Ruby193/li
b/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b2
27326e9de'fatal: Not a git repository (or any of the parent directories): .git

Retrying `git fetch --force --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache
/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` due to erro
r (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --f
orce --quiet --tags "C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tr
ee-3c50df6a51cbd17e29090bc04f9a9b227326e9de"` in directory C:/Ruby193/lib/ruby/g
ems/1.9.1/bundler/gems/acts_as_tree-ed52495d1671 has failed.
If this error persists you could try removing the cache directory 'C:/Ruby193/li
b/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e29090bc04f9a9b2
27326e9de'fatal: Not a git repository (or any of the parent directories): .git

Git error: command `git fetch --force --quiet --tags
"C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e2
9090bc04f9a9b227326e9de"`
in directory
C:/Ruby193/lib/ruby/gems/1.9.1/bundler/gems/acts_as_tree-ed52495d1671 has
failed.
If this error persists you could try removing the cache directory
'C:/Ruby193/lib/ruby/gems/1.9.1/cache/bundler/git/acts_as_tree-3c50df6a51cbd17e2
9090bc04f9a9b227326e9de'


git status를 하면

On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   Gemfile
        modified:   Gemfile.lock
        modified:   config/database.yml

no changes added to commit (use "git add" and/or "git commit -a")


당췌 뭐가 문제인거야?

며칠전에 분명 됐었는데... ㅜ.ㅜ

-----

해결방법

bundle install했을 때

Fetching git://github.com/parasew/acts_as_tree.git 이런식으로

안되면
GemFile 에 다음과 같이 정의되어 있을 것이다.
gem "acts_as_tree" , :git => 'git://github.com/parasew/acts_as_tree.git'

이것에서 git 을 바라보지 않게 #으로 뒷부분을 주석처리하거나

gem "acts_as_tree" #, :git => 'git://github.com/parasew/acts_as_tree.git'

또는 아예 지워버리면 된다

gem "acts_as_tree"


휴~~. 다시 되니 반갑네 ㅋ


728x90
BLOG main image
"그게 뭐 어쨌다는 거냐?" 늘 누가 나에게 나에대한 말을할 때면 이말을 기억해라. by nobang

카테고리

nobang이야기 (1933)
Life With Gopro (7)
Life With Mini (79)
Diary (971)
너 그거 아니(do you know) (162)
난 그래 (159)
Study (290)
속지말자 (10)
Project (34)
Poem (15)
Song (0)
Photo (113)
낙서장 (45)
일정 (0)
C.A.P.i (2)
PodCast (0)
nobang (27)
고한친구들 (4)
recieve (0)
History (0)
android_app (2)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

Total :
Today : Yesterday :