安装 bundler 报错: ( O. @- Z* [; Q Z; y # d: v9 X$ v1 R5 p8 E6 X+ ?2 @2 e2 q S$ h6 E
5 `6 _" |$ w( Y% T& i. y3 W
ERROR: Could not find a valid gem 'bundler' (= 1.17.3), here is why:% ~) y# Y' N9 C; j1 E
3 w# V. l* ~$ J8 M& @! w
Unable to download data from https://rubygems.org/ - Errno::ENETUNREACH: Network is unreachable - connect(2) for "api.rubygems.org" port 443 (https://api.rubygems.org/specs.4.8.gz), v) ^) V4 v$ R
]# R4 Q4 h5 t. `' l' {
8 T7 w( `/ R* G# ~) ~. S- D4 V7 G( e# l3 i 安装完成后运行: ]6 J% R4 o, V+ @4 O
% v" N% } }- U( y: b7 D
7 C3 p; U( Q' \! e p' Q, B5 W + a, M; j/ L6 n! S& ^& O! sbundle -v/ W: L% f1 O, d
# x) `' }% S5 r- B$ \
: ]9 @7 j, Y- s$ |$ D' f- v0 ~" W V! `0 `+ N3 H 应输出:" C' e, H# c3 U4 t
( T" ?* R0 e: X, S 0 b# w$ Q1 _: h1 S/ k0 i$ k" k5 v . W9 P9 S& P! g6 e0 p: tBundler version 1.17.3 + b6 k- |+ W. b* W2 O& ^0 N* X! r$ s" A: ~# J' i! S; U
2 v# B& i# ?* G6 B* ~ h3 S! ] e4 w+ t# o5 l S5 S, X8 J1 b到这里环境已经安装成功!安装依赖并启动: " r6 ]5 \2 \1 ^: r " b$ q A5 x( W% m& i V& j+ J* p& e! U$ y! M; [1 b1 M U' f' s, z6 Q
; Q7 G" {( }1 G* J: s p
cd /home/root/dldl-gm && sh restart-alpha.sh $ i4 N5 i; n$ ~+ u4 J( j2 M & c6 U6 V6 _3 W$ ~" f( g 3 {' h* P( g) w$ _& y5 w: n' i: d" j4 ]! y, O 会报错如下:7 K5 z9 ~8 p$ q9 [, q+ u2 X
% @" }3 t, ^2 Q$ @: M
4 z5 J$ [- x1 y1 C: V
5 Q9 ~5 |2 c4 E7 O Z) f
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this + d: ?0 t* T9 `+ I. ?! q ! e3 S3 n+ J+ @1 p9 k, e/ W$ rapplication for all non-root users on this machine.; E& w$ g# k8 o# E, f# k
, K% Q6 k1 [$ P# g
Fetching source index from http://rubygems.org/* L, D1 H4 }% G& m# _8 p
, ~, U: E1 @% w; h# T- V% C+ L- a
, z* v2 w# R; t0 \: D" b$ T+ C ! A" V" K7 M* m: `6 K# ?6 ?Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from http://rubygems.org/; i1 N4 a6 l& I- p1 e: }
1 C A/ a- J+ G( k+ y
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from http://rubygems.org/ S" S+ B+ Y( S' @* l3 @
' `" r v- v7 Z/ Z9 E/ ]: s" t5 g1 J/ x) z8 h& X- h