一个是用rvm安装ruby的时候,出现
1
2
3
4
5
6
|
Installing
requirements
for
ubuntu
,
might
require
sudo
password
.
Running
'apt-get --quiet --yes update'
would
require
sudo
.
Cowardly
refusing
to
continue
,
please
read
'rvm autolibs'
.
Updating
repositories
Missing
required
packages
:
libgdbm
-
dev
,
libffi
-
dev
.
Cowardly
refusing
to
continue
,
please
read
'rvm autolibs'
.
|
解决方法是
Ruby
1
|
\
curl
-
L
https
:
/
/
get
.
rvm
.
io
|
bash
-
s
stable
--
autolibs
=
3
--
rails
|
还有一个问题是装完rails之后执行 -v时 出现
1
|
The
program
'rails'
is
currently
not
installed
.
You
can
install
it
by
typing
:
sudo
apt
-
get
install
rails
|
解决方法是
set the ‘Run command as login shell’ checkbox on the Title and Command tab inside of gnome-terminal’s Settings page.
如图片设置: