新建 rails 应用时,报错,(ruby 1.9.3p0,Rails 4.0.0)
Gem::RemoteFetcher::FetchError: SocketError: getaddrinfo: Name or service not known (https://rubygems.org/gems/sqlite3-1.3.9.gem)
An error occurred while installing sqlite3 (1.3.9), and Bundler cannot continue.
Make sure that gem install sqlite3 -v '1.3.9'
succeeds before bundling.
fengwei@fengwei-Aspire-4745G:~/rubyprojects$ gem install sqlite3
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /var/lib/gems/1.9.1 directory.
看到“Make sure that gem install sqlite3 -v '1.3.9'
succeeds before bundling.”这一句时 我以为是 sqlite3 木有安装好,
结果我敲了:sqlite3 --version
发现是有安装的,版本信息为:3.7.15.2
木有其他用户的啊,怎么会没有权限勒,有遇到相同问题的吗,求解??