0

私が以下を実行したとき:

r = Rugged::Repository.new('<myrepopath>')

次のエラーが発生しました。

Rugged::OSError: The global/xdg file 'config' doesn't exist: The system cannot find the path specified.

どのように解決すればよいですか?

私はrugged 0.19.0Windows 7で使用しており、自分のマシンでruby -v出力しています。ruby 2.0.0p247 (2013-06-27) [x64-mingw32]

4

1 に答える 1

0

I hit this problem after installing the "gem install rugged" on Windows using DevKit. At the time I investigated the underlying problem and reported it, and I think artherschreiber committed a fix to the rugged repo on GitHub. I can't remember the details, and the fix might have been to libgit2 with rugged pulling in the libgit2 fix. Unfortunately I don't think the released gem has been updated, so it doesn't pick up this fix.

At the time, I think I found that using a 32-bit Ruby, installing MSys / MinGW, and running "gem install rugged" from an MSys bash prompt did give a working version of rugged.

于 2014-03-26T22:57:20.067 に答える