2012-11-30 124 views
2

我想7機安裝寶石PG到我的窗口:軌創業板安裝PG

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 

回答

2

我看來像寶石實際上已經安裝。這是後來導致它爆炸的文件。如果你做'寶石列表'你可以看到它被安裝?如果是這樣,你應該能夠使用它作爲正常的... ...

它說:

Successfully installed pg-0.14.1-x86-mingw32 
1 gem installed 
6

失敗發生在安裝文檔。這個文檔很容易出錯,你可能永遠也讀不到。安裝需要時間和空間,但失敗會留下一個有用的寶石,所以你可以在這裏。

試試這個跳過DOC安裝:

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

其他寶石安裝使用相同的模式。

+1

第一次* DRTFM *是修復。 – msanford