2

次の方法でgempgをWindows7マシンにインストールしたいと思います。

gem install pg

ただし、毎回次のエラーで失敗します。

Fetching: pg-0.14.1-x86-mingw32.gem (100%)
Successfully installed pg-0.14.1-x86-mingw32
1 gem installed
Installing ri documentation for pg-0.14.1-x86-mingw32...
Enclosing class/module 'rb_mPG' for class Connection not known
Enclosing class/module "rb_cPGconn" for alias close finish not known
Enclosing class/module "rb_cPGconn" for alias query exec not known
Enclosing class/module "rb_cPGconn" for alias escape escape_string not known
Enclosing class/module "rb_cPGconn" for alias nonblocking? isnonblocking not kno
wn
Enclosing class/module "rb_cPGconn" for alias client_encoding= set_client_encodi
ng not known
Enclosing class/module "rb_cPGconn" for alias notifies_wait wait_for_notify not
known
Enclosing class/module "rb_cPGconn" for alias async_query async_exec not known
Enclosing class/module "rb_cPGconn" for alias locreat lo_creat not known
Enclosing class/module "rb_cPGconn" for alias locreate lo_create not known
Enclosing class/module "rb_cPGconn" for alias loimport lo_import not known
Enclosing class/module "rb_cPGconn" for alias loexport lo_export not known
Enclosing class/module "rb_cPGconn" for alias loopen lo_open not known
Enclosing class/module "rb_cPGconn" for alias lowrite lo_write not known
Enclosing class/module "rb_cPGconn" for alias loread lo_read not known
Enclosing class/module "rb_cPGconn" for alias lolseek lo_lseek not known
Enclosing class/module "rb_cPGconn" for alias lo_seek lo_lseek not known
Enclosing class/module "rb_cPGconn" for alias loseek lo_lseek not known
Enclosing class/module "rb_cPGconn" for alias lotell lo_tell not known
Enclosing class/module "rb_cPGconn" for alias lotruncate lo_truncate not known
Enclosing class/module "rb_cPGconn" for alias loclose lo_close not known
Enclosing class/module "rb_cPGconn" for alias lounlink lo_unlink not known
Installing RDoc documentation for pg-0.14.1-x86-mingw32...
Enclosing class/module 'rb_mPG' for class Connection not known
Enclosing class/module "rb_cPGconn" for alias close finish not known
Enclosing class/module "rb_cPGconn" for alias query exec not known
Enclosing class/module "rb_cPGconn" for alias escape escape_string not known
Enclosing class/module "rb_cPGconn" for alias nonblocking? isnonblocking not kno
wn
Enclosing class/module "rb_cPGconn" for alias client_encoding= set_client_encodi
ng not known
Enclosing class/module "rb_cPGconn" for alias notifies_wait wait_for_notify not
known
Enclosing class/module "rb_cPGconn" for alias async_query async_exec not known
Enclosing class/module "rb_cPGconn" for alias locreat lo_creat not known
Enclosing class/module "rb_cPGconn" for alias locreate lo_create not known
Enclosing class/module "rb_cPGconn" for alias loimport lo_import not known
Enclosing class/module "rb_cPGconn" for alias loexport lo_export not known
Enclosing class/module "rb_cPGconn" for alias loopen lo_open not known
Enclosing class/module "rb_cPGconn" for alias lowrite lo_write not known
Enclosing class/module "rb_cPGconn" for alias loread lo_read not known
Enclosing class/module "rb_cPGconn" for alias lolseek lo_lseek not known
Enclosing class/module "rb_cPGconn" for alias lo_seek lo_lseek not known
Enclosing class/module "rb_cPGconn" for alias loseek lo_lseek not known
Enclosing class/module "rb_cPGconn" for alias lotell lo_tell not known
Enclosing class/module "rb_cPGconn" for alias lotruncate lo_truncate not known
Enclosing class/module "rb_cPGconn" for alias loclose lo_close not known
Enclosing class/module "rb_cPGconn" for alias lounlink lo_unlink not known
4

2 に答える 2

6

ドキュメントのインストールに失敗しました。このドキュメントはエラーが発生しやすく、とにかく読むことはおそらくないでしょう。インストールには時間とスペースがかかりますが、失敗すると宝石が機能するので、ここで問題ありません。

ドキュメントのインストールをスキップするには、これを試してください。

gem install --no-rdoc --no-ri pg

他のgemインストールにも同じパターンを使用します。

于 2012-11-30T17:24:44.287 に答える
2

宝石が実際にインストールされているように私には見えます。それが爆発したのは、その後に来る文書です。'gem list'を実行すると、インストールされていることがわかりますか?もしそうなら、あなたはそれを通常通りに使うことができるはずです...

それは言う:

Successfully installed pg-0.14.1-x86-mingw32
1 gem installed
于 2012-11-30T17:19:59.330 に答える