I have installed postgresql, libpq-dev and build-essential
. When I ran gem install pg
, I got a
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
I tried every solution I found in stackoverflow, but none of them worked. However, now I ran gem install pg
, I got a new error
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /home/woyuxuxu123/.rvm/gems/ruby-2.3.3/gems/pg-0.21.0/.gemtest
Could anyone help me on this? I have been stuck on this for a whole afternoon.
在安装gem或在系统中进行更新之前,请使用sudo,如下所示: sudo apt update gem install pg
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.