Linux版本是:2.6.18-308.el5
已经安装了Ruby版本1.8.5
我的命令:
./ configure --prefix = / home / user_a / local
请
Csh:$ make
CC = gcc
LD = Id
LDSHARED = gcc -shared
CFLAGS = -03 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -
Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable
-Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -W
implicit-function-declaration -Wdeprecated-declarations -std=gnu99
XCFLAGS = -D_F0RTIFY_S0URCE=2 -fstack-protector -fvisibility=hidden -DRU
BY_EXP0RT -fPIE ~ ~
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I. -I./enc/uni
code/9.0.0
DLDFLAGS = -fstack-protector -pie
SOLIBS = -Igmp
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even fo「 MERCHANTABILITY 〇「 FITNESS FOR A PARTICULAR PURPOSE.
generating id.h
./tool/generic_erb.rb:31: syntax error
if (/\A\e\[.*m\z/ =〜10.popenC'tput smso11, err: 10: :NULL, &:read> rescue
nil)
/s
./tool/generic_erb.rb:31: syntax error
if (/\A\e\[.*m\z/ =〜10.popenC'tput smso11, err: 10: :NULL, &:read> rescue
nil)
/s
./tool/generic_erb.rb:31: syntax error
if (/\A\e\[.*m\z/ =〜10.popenC'tput smso11, err: 10: :NULL, &:read> rescue
nil)
./tool/generic_erb.rb:38: syntax error
make: *** [id.h] Error 1
命令make raise错误:
在安装新版本时,意味着Ruby需要安装版本......? 我不是管理员,没有权限删除1.8.5 如何走动?
由于
答案 0 :(得分:0)
如果对编译Ruby版本有疑问,最好使用版本管理器,例如rbenv或rvm。
如果不是这种情况,它应该像从the official source下载并运行一样简单:
None
如果您想要另一个目录而不是默认目录(/ usr / local),您可以将$ ./configure
$ make
$ sudo make install
传递给--prefix=DIR
。