1
2
|
[root@Betty ~] # cat /etc/redhat-release
CentOS release 6.4 (Final) |
1
2
3
4
5
6
7
|
[root@Betty ~] # yum erase git
[root@Betty ~] # cd workspace/WGET/
[root@Betty WGET] # wget https://codeload.github.com/git/git/tar.gz/v1.9.2
[root@Betty WGET] # mv v1.9.2 git-1.9.2.tar.gz
[root@Betty WGET] # tar zxvf git-1.9.2.tar.gz
[root@Betty WGET] # cd git-1.9.2
[root@Betty git-1.9.2] #
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
[root@Betty git-1.9.2] # vi INSTALL
Git installation
Normally you can just do "make" followed by "make install" , and that
will install the git programs in your own ~ /bin/ directory. If you want
to do a global install , you can do
$ make prefix= /usr all doc info ; # as yourself
# make prefix=/usr install install-doc install-html install-info ;# as root
(or prefix= /usr/local , of course). Just like any program suite
that uses $prefix, the built results have some paths encoded, which are derived from $prefix, so " make all; make prefix= /usr
install " would not work.
... - Git is reasonably self-sufficient, but does depend on a few external
programs and libraries. Git can be used without most of them by adding
the approriate "NO_<LIBRARY>=YesPlease" to the make command line or
config.mak file .
- "zlib" , the compression library. Git won't build without it.
- "ssh" is used to push and pull over the net.
- A POSIX-compliant shell is required to run many scripts needed
for everyday use (e.g. "bisect" , "pull" ).
- "Perl" version 5.8 or later is needed to use some of the
features (e.g. preparing a partial commit using "git add -i/-p" ,
interacting with svn repositories with "git svn" ). If you can
live without these, use NO_PERL. Note that recent releases of
Redhat /Fedora are reported to ship Perl binary package with some
core modules stripped away (see http: //lwn .net /Articles/477234/ ),
so you might need to install additional packages other than Perl
itself, e.g. Time::HiRes.
- "openssl" library is used by git-imap-send to use IMAP over SSL.
If you don't need it, use NO_OPENSSL.
By default, git uses OpenSSL for SHA1 but it will use its own
library (inspired by Mozilla's) with either NO_OPENSSL or
BLK_SHA1. Also included is a version optimized for PowerPC
(PPC_SHA1).
- "libcurl" library is used by git-http-fetch and git-fetch. You
might also want the "curl" executable for debugging purposes.
If you do not use http: // or https: // repositories, you do not
have to have them (use NO_CURL).
- "expat" library; git-http-push uses it for remote lock
management over DAV. Similar to "curl" above, this is optional
(with NO_EXPAT).
- "wish" , the Tcl /Tk windowing shell is used in gitk to show the
history graphically, and in git-gui. If you don't want gitk or
git-gui, you can use NO_TCLTK.
- A gettext library is used by default for localizing Git. The
primary target is GNU libintl, but the Solaris gettext
implementation also works.
We need a gettext.h on the system for C code, gettext.sh (or
Solaris gettext(1)) for shell scripts, and libintl-perl for Perl
programs.
Set NO_GETTEXT to disable localization support and make Git only
use English. Under autoconf the configure script will do this
automatically if it can't find libintl on the system.
- Python version 2.4 or later (but not 3.x, which is not
supported by Perforce) is needed to use the git-p4 interface
to Perforce.
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
[root@Betty git-1.9.2] # make prefix=/usr all doc info
... In file included from http.c:1:
http.h:54: 错误:expected specifier-qualifier-list before ‘CURLcode’ http.h:60: 错误:expected specifier-qualifier-list before ‘CURL’ http.h:107: 错误:‘CURL_ERROR_SIZE’未声明(不在函数内) http.h: 在函数‘missing__target’中: http.h:112: 错误:‘CURLE_FILE_COULDNT_READ_FILE’未声明(在此函数内第一次使用) http.h:112: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其 http.h:112: 错误:所在的函数内也只报告一次。) http.h:114: 错误:‘CURLE_HTTP_NOT_FOUND’未声明(在此函数内第一次使用) http.h:116: 错误:‘CURLE_FTP_COULDNT_RETR_FILE’未声明(在此函数内第一次使用) http.h: 在文件层: http.h:193: 错误:expected specifier-qualifier-list before ‘CURLcode’ http.c:223: 错误:expected ‘)’ before ‘*’ token http.c:293: 错误:expected ‘)’ before ‘*’ token http.c:299: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token http.c: 在函数‘http_init’中: http.c:409: 警告:隐式声明函数‘curl_slist_append’ http.c:409: 警告:赋值时将整数赋给指针,未作类型转换 http.c:410: 警告:赋值时将整数赋给指针,未作类型转换 http.c: 在函数‘http_cleanup’中: http.c:477: 错误:‘struct active_request_slot’没有名为‘next’的成员 http.c:478: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:482: 警告:隐式声明函数‘curl_easy_cleanup’ http.c:482: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:498: 警告:隐式声明函数‘curl_slist_free_all’ http.c: 在函数‘get_active_slot’中: http.c:533: 错误:‘struct active_request_slot’没有名为‘in_use’的成员 http.c:534: 错误:‘struct active_request_slot’没有名为‘next’的成员 http.c:538: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:539: 错误:‘struct active_request_slot’没有名为‘in_use’的成员 http.c:540: 错误:‘struct active_request_slot’没有名为‘next’的成员 http.c:546: 错误:‘struct active_request_slot’没有名为‘next’的成员 http.c:547: 错误:‘struct active_request_slot’没有名为‘next’的成员 http.c:548: 错误:‘struct active_request_slot’没有名为‘next’的成员 http.c:553: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:555: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:555: 警告:隐式声明函数‘get_curl_handle’ http.c:563: 错误:‘struct active_request_slot’没有名为‘in_use’的成员 http.c:564: 错误:‘struct active_request_slot’没有名为‘results’的成员 http.c:565: 错误:‘struct active_request_slot’没有名为‘finished’的成员 http.c:566: 错误:‘struct active_request_slot’没有名为‘callback_data’的成员 http.c:567: 错误:‘struct active_request_slot’没有名为‘callback_func’的成员 http.c:568: 警告:隐式声明函数‘curl_easy_setopt’ http.c:568: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:568: 错误:‘CURLOPT_COOKIEFILE’未声明(在此函数内第一次使用) http.c:570: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:570: 错误:‘CURLOPT_COOKIEJAR’未声明(在此函数内第一次使用) http.c:571: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:571: 错误:‘CURLOPT_HTTPHEADER’未声明(在此函数内第一次使用) http.c:572: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:572: 错误:‘CURLOPT_ERRORBUFFER’未声明(在此函数内第一次使用) http.c:573: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:573: 错误:‘CURLOPT_CUSTOMREQUEST’未声明(在此函数内第一次使用) http.c:574: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:574: 错误:‘CURLOPT_READFUNCTION’未声明(在此函数内第一次使用) http.c:575: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:575: 错误:‘CURLOPT_WRITEFUNCTION’未声明(在此函数内第一次使用) http.c:576: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:576: 错误:‘CURLOPT_POSTFIELDS’未声明(在此函数内第一次使用) http.c:577: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:577: 错误:‘CURLOPT_UPLOAD’未声明(在此函数内第一次使用) http.c:578: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:578: 错误:‘CURLOPT_HTTPGET’未声明(在此函数内第一次使用) http.c:579: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:579: 错误:‘CURLOPT_FAILONERROR’未声明(在此函数内第一次使用) http.c:581: 警告:隐式声明函数‘init_curl_http_auth’ http.c:581: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c: 在函数‘run_active_slot’中: http.c:723: 错误:‘struct active_request_slot’没有名为‘in_use’的成员 http.c:724: 错误:‘struct active_request_slot’没有名为‘curl_result’的成员 http.c:724: 警告:隐式声明函数‘curl_easy_perform’ http.c:724: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c: 在函数‘closedown_active_slot’中: http.c:733: 错误:‘struct active_request_slot’没有名为‘in_use’的成员 http.c: 在函数‘release_active_slot’中: http.c:739: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:743: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:744: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c: 在函数‘finish_active_slot’中: http.c:755: 警告:隐式声明函数‘curl_easy_getinfo’ http.c:755: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:755: 错误:‘CURLINFO_HTTP_CODE’未声明(在此函数内第一次使用) http.c:755: 错误:‘struct active_request_slot’没有名为‘http_code’的成员 http.c:757: 错误:‘struct active_request_slot’没有名为‘finished’的成员 http.c:758: 错误:‘struct active_request_slot’没有名为‘finished’的成员 http.c:761: 错误:‘struct active_request_slot’没有名为‘results’的成员 http.c:762: 错误:‘struct active_request_slot’没有名为‘results’的成员 http.c:762: 错误:‘struct active_request_slot’没有名为‘curl_result’的成员 http.c:763: 错误:‘struct active_request_slot’没有名为‘results’的成员 http.c:763: 错误:‘struct active_request_slot’没有名为‘http_code’的成员 http.c:768: 错误:‘struct active_request_slot’没有名为‘results’的成员 http.c:773: 错误:‘struct active_request_slot’没有名为‘callback_func’的成员 http.c:774: 错误:‘struct active_request_slot’没有名为‘callback_func’的成员 http.c:774: 错误:‘struct active_request_slot’没有名为‘callback_data’的成员 http.c: 在函数‘finish_all_active_slots’中: http.c:782: 错误:‘struct active_request_slot’没有名为‘in_use’的成员 http.c:786: 错误:‘struct active_request_slot’没有名为‘next’的成员 http.c: 在函数‘handle_curl_result’中: http.c:846: 错误:‘struct slot_results’没有名为‘curl_result’的成员 http.c:846: 错误:‘CURLE_OK’未声明(在此函数内第一次使用) http.c:847: 错误:‘struct slot_results’没有名为‘http_code’的成员 http.c:848: 错误:‘struct slot_results’没有名为‘curl_result’的成员 http.c:848: 错误:‘CURLE_HTTP_NOT_FOUND’未声明(在此函数内第一次使用) http.c:857: 错误:‘struct slot_results’没有名为‘http_code’的成员 http.c:860: 错误:‘struct slot_results’没有名为‘curl_result’的成员 http.c:863: 错误:‘struct slot_results’没有名为‘http_code’的成员 http.c:863: 错误:‘struct slot_results’没有名为‘curl_result’的成员 http.c:865: 错误:‘struct slot_results’没有名为‘http_code’的成员 http.c: 在文件层: http.c:883: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘curlinfo_strbuf’ http.c: 在函数‘http_request’中: http.c:910: 错误:‘struct active_request_slot’没有名为‘results’的成员 http.c:911: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:911: 错误:‘CURLOPT_HTTPGET’未声明(在此函数内第一次使用) http.c:914: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:914: 错误:‘CURLOPT_NOBODY’未声明(在此函数内第一次使用) http.c:916: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:917: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:917: 错误:‘CURLOPT_FILE’未声明(在此函数内第一次使用) http.c:921: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:921: 错误:‘CURLOPT_WRITEFUNCTION’未声明(在此函数内第一次使用) http.c:925: 警告:赋值时将整数赋给指针,未作类型转换 http.c:929: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:937: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:937: 错误:‘CURLOPT_FAILONERROR’未声明(在此函数内第一次使用) http.c:939: 警告:赋值时将整数赋给指针,未作类型转换 http.c:941: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:941: 错误:‘CURLOPT_URL’未声明(在此函数内第一次使用) http.c:942: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:942: 错误:‘CURLOPT_HTTPHEADER’未声明(在此函数内第一次使用) http.c:943: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:943: 错误:‘CURLOPT_ENCODING’未声明(在此函数内第一次使用) http.c:955: 警告:隐式声明函数‘curlinfo_strbuf’ http.c:955: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:955: 错误:‘CURLINFO_CONTENT_TYPE’未声明(在此函数内第一次使用) http.c:959: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:959: 错误:‘CURLINFO_EFFECTIVE_URL’未声明(在此函数内第一次使用) http.c: 在函数‘new_http_pack_request’中: http.c:1324: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:1324: 错误:‘CURLOPT_FILE’未声明(在此函数内第一次使用) http.c:1325: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:1325: 错误:‘CURLOPT_WRITEFUNCTION’未声明(在此函数内第一次使用) http.c:1326: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:1326: 错误:‘CURLOPT_URL’未声明(在此函数内第一次使用) http.c:1327: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c:1327: 错误:‘CURLOPT_HTTPHEADER’未声明(在此函数内第一次使用) http.c:1341: 警告:赋值时将整数赋给指针,未作类型转换 http.c:1342: 错误:‘struct active_request_slot’没有名为‘curl’的成员 http.c: 在函数‘fwrite_sha1_file’中: http.c:1371: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1372: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1374: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1375: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1376: 错误:‘struct http_object_request’没有名为‘zret’的成员 http.c:1376: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1377: 错误:‘struct http_object_request’没有名为‘c’的成员 http.c:1378: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1379: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1379: 错误:‘struct http_object_request’没有名为‘zret’的成员 http.c: 在函数‘new_http_object_request’中: http.c:1398: 错误:‘struct http_object_request’没有名为‘sha1’的成员 http.c:1435: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1437: 错误:‘struct http_object_request’没有名为‘c’的成员 http.c:1469: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1469: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1470: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1471: 错误:‘struct http_object_request’没有名为‘c’的成员 http.c:1483: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1485: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1485: 错误:‘CURLOPT_FILE’未声明(在此函数内第一次使用) http.c:1486: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1486: 错误:‘CURLOPT_WRITEFUNCTION’未声明(在此函数内第一次使用) http.c:1487: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1487: 错误:‘CURLOPT_ERRORBUFFER’未声明(在此函数内第一次使用) http.c:1487: 错误:‘struct http_object_request’没有名为‘errorstr’的成员 http.c:1488: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1488: 错误:‘CURLOPT_URL’未声明(在此函数内第一次使用) http.c:1489: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1489: 错误:‘CURLOPT_HTTPHEADER’未声明(在此函数内第一次使用) http.c:1501: 警告:赋值时将整数赋给指针,未作类型转换 http.c:1502: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c: 在函数‘process_http_object_request’中: http.c:1516: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1518: 错误:‘struct http_object_request’没有名为‘curl_result’的成员 http.c:1518: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1519: 错误:‘struct http_object_request’没有名为‘http_code’的成员 http.c:1519: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1520: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c: 在函数‘finish_http_object_request’中: http.c:1532: 错误:‘struct http_object_request’没有名为‘http_code’的成员 http.c:1534: 错误:‘struct http_object_request’没有名为‘curl_result’的成员 http.c:1534: 错误:‘CURLE_OK’未声明(在此函数内第一次使用) http.c:1541: 错误:‘struct http_object_request’没有名为‘stream’的成员 http.c:1542: 错误:‘struct http_object_request’没有名为‘real_sha1’的成员 http.c:1542: 错误:‘struct http_object_request’没有名为‘c’的成员 http.c:1543: 错误:‘struct http_object_request’没有名为‘zret’的成员 http.c:1547: 错误:‘struct http_object_request’没有名为‘sha1’的成员 http.c:1547: 错误:‘struct http_object_request’没有名为‘real_sha1’的成员 http.c:1551: 错误:‘struct http_object_request’没有名为‘rename’的成员 http.c:1552: 错误:‘struct http_object_request’没有名为‘sha1’的成员 http.c:1554: 错误:‘struct http_object_request’没有名为‘rename’的成员 http.c: 在函数‘release_http_object_request’中: http.c:1574: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1575: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1576: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1577: 错误:‘struct http_object_request’没有名为‘slot’的成员 http.c:1578: 错误:‘struct http_object_request’没有名为‘slot’的成员 make : *** [http.o] 错误 1
[root@Betty git-1.9.2] #
|
1
2
|
[root@Betty ~] # yum update curl libcurl
[root@Betty ~] # yum -y install libcurl-devel.x86_64
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
[root@Betty git-1.9.2] # make prefix=/usr all doc info
CC http.o
CC http-walker.o
CC http-fetch.o
LINK git-http-fetch
CC http-push.o
http-push.c:17:19: 警告:expat.h:没有那个文件或目录 http-push.c:839: 警告:在‘XML_Char’的声明中,类型默认为‘int’ http-push.c:839: 错误:expected ‘;’, ‘,’ or ‘)’ before ‘*’ token http-push.c: 在函数‘lock_remote’中: http-push.c:910: 错误:‘XML_Parser’未声明(在此函数内第一次使用) http-push.c:910: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其 http-push.c:910: 错误:所在的函数内也只报告一次。) http-push.c:910: 错误:expected ‘;’ before ‘parser’ http-push.c:917: 警告:隐式声明函数‘XML_SetUserData’ http-push.c:917: 错误:‘parser’未声明(在此函数内第一次使用) http-push.c:918: 警告:隐式声明函数‘XML_SetElementHandler’ http-push.c:920: 警告:隐式声明函数‘XML_SetCharacterDataHandler’ http-push.c:920: 错误:‘xml_cdata’未声明(在此函数内第一次使用) http-push.c:921: 警告:隐式声明函数‘XML_Parse’ http-push.c:926: 警告:隐式声明函数‘XML_ErrorString’ http-push.c:927: 警告:隐式声明函数‘XML_GetErrorCode’ http-push.c:930: 警告:隐式声明函数‘XML_ParserFree’ http-push.c: 在函数‘remote_ls’中: http-push.c:1154: 错误:‘XML_Parser’未声明(在此函数内第一次使用) http-push.c:1154: 错误:expected ‘;’ before ‘parser’ http-push.c:1161: 错误:‘parser’未声明(在此函数内第一次使用) http-push.c:1164: 错误:‘xml_cdata’未声明(在此函数内第一次使用) http-push.c: 在函数‘locking_available’中: http-push.c:1228: 错误:‘XML_Parser’未声明(在此函数内第一次使用) http-push.c:1228: 错误:expected ‘;’ before ‘parser’ http-push.c:1235: 错误:‘parser’未声明(在此函数内第一次使用) make : *** [http-push.o] 错误 1
|
1
|
[root@Betty ~] # yum -y install expat-devel.x86_64
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[root@Betty git-1.9.2] # make prefix=/usr all doc info
... make -C Documentation all
make [1]: Entering directory ` /root/workspace/WGET/git-1 .9.2 /Documentation '
GEN mergetools-list.made
GEN cmd-list.made
GEN doc.dep
make [2]: Entering directory ` /root/workspace/WGET/git-1 .9.2'
make [2]: “GIT-VERSION-FILE”是最新的。
make [2]: Leaving directory ` /root/workspace/WGET/git-1 .9.2'
make [1]: Leaving directory ` /root/workspace/WGET/git-1 .9.2 /Documentation '
make [1]: Entering directory ` /root/workspace/WGET/git-1 .9.2 /Documentation '
make [2]: Entering directory ` /root/workspace/WGET/git-1 .9.2'
make [2]: “GIT-VERSION-FILE”是最新的。
make [2]: Leaving directory ` /root/workspace/WGET/git-1 .9.2'
ASCIIDOC git-add.html
/bin/sh : line 1: asciidoc: command not found
make [1]: *** [git-add.html] 错误 127
make [1]: Leaving directory ` /root/workspace/WGET/git-1 .9.2 /Documentation '
make : *** [doc] 错误 2
|
1
|
[root@Betty ~] # yum -y install asciidoc
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[root@Betty git-1.9.2] # make prefix=/usr all doc info
... make -C Documentation info
make [1]: Entering directory ` /root/workspace/WGET/git-1 .9.2 /Documentation '
GEN doc.dep
make [2]: Entering directory ` /root/workspace/WGET/git-1 .9.2'
make [2]: “GIT-VERSION-FILE”是最新的。
make [2]: Leaving directory ` /root/workspace/WGET/git-1 .9.2'
make [1]: Leaving directory ` /root/workspace/WGET/git-1 .9.2 /Documentation '
make [1]: Entering directory ` /root/workspace/WGET/git-1 .9.2 /Documentation '
make [2]: Entering directory ` /root/workspace/WGET/git-1 .9.2'
make [2]: “GIT-VERSION-FILE”是最新的。
make [2]: Leaving directory ` /root/workspace/WGET/git-1 .9.2'
DB2TEXI user-manual.texi
/bin/sh : line 1: docbook2x-texi: command not found
make [1]: *** [user-manual.texi] 错误 127
make [1]: Leaving directory ` /root/workspace/WGET/git-1 .9.2 /Documentation '
make : *** [info] 错误 2
[root@Betty git-1.9.2] #
|
1
2
|
[root@Betty ~] # yum list|grep docbook2x-texi
[root@Betty ~] # yum list|grep docbook2x
|
1
2
3
4
5
|
[root@Betty ~] # rpm -ivh http://mirror.1000mbps.com/Fedora-epel/6Server/x86_64/docbook2X-0.8.8-1.el6.x86_64.rpm
Retrieving http: //mirror .1000mbps.com /Fedora-epel/6Server/x86_64/docbook2X-0 .8.8-1.el6.x86_64.rpm
curl: (22) The requested URL returned error: 404 Not Found error: skipping http: //mirror .1000mbps.com /Fedora-epel/6Server/x86_64/docbook2X-0 .8.8-1.el6.x86_64.rpm - transfer failed
[root@Betty ~] #
|
1
2
3
4
5
6
7
8
9
|
[root@Betty ~] # rpm -ivh http://mirror.1000mbps.com/fedora-epel/6Server/x86_64/docbook2X-0.8.8-1.el6.x86_64.rpm
Retrieving http: //mirror .1000mbps.com /fedora-epel/6Server/x86_64/docbook2X-0 .8.8-1.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp .8pDjJf: Header V3 RSA /SHA256 Signature, key ID 0608b895: NOKEY
error: Failed dependencies: /usr/bin/sgml2xml is needed by docbook2X-0.8.8-1.el6.x86_64
openjade is needed by docbook2X-0.8.8-1.el6.x86_64
perl(XML::SAX::ParserFactory) is needed by docbook2X-0.8.8-1.el6.x86_64
texinfo is needed by docbook2X-0.8.8-1.el6.x86_64
[root@Betty ~] #
|
1
2
3
4
5
|
[root@Betty ~] # yum list|grep sgml2xml(发现这个包在 yum 源中没有,故暂不安装)
[root@Betty ~] # yum -y install openjade
[root@Betty ~] # yum -y install texinfo
[root@Betty ~] # yum -y install perl
[root@Betty ~] # yum -y install perl-XML-SAX.noarch(发现这个包不安装的话,仍旧会报上面的错误)
|
1
2
3
4
5
6
|
[root@Betty ~] # rpm -ivh http://mirror.1000mbps.com/fedora-epel/6Server/x86_64/docbook2X-0.8.8-1.el6.x86_64.rpm
Retrieving http: //mirror .1000mbps.com /fedora-epel/6Server/x86_64/docbook2X-0 .8.8-1.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp .tEcr2M: Header V3 RSA /SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
1:docbook2X ########################################### [100%]
[root@Betty ~] #
|
1
2
3
4
5
|
[root@Betty ~] # find / -name db2x_docbook2texi
/usr/bin/db2x_docbook2texi [root@Betty ~] # cd /usr/bin/
[root@Betty bin] # ln -s db2x_docbook2texi docbook2x-texi
[root@Betty bin] #
|
1
|
[root@Betty git-1.9.2] # make prefix=/usr all doc info
|
最后执行 install 就可以了。
1
|
[root@Betty git-1.9.2] # make prefix=/usr install install-doc install-html install-info
|
1
2
|
[root@Betty ~] # git --version
git version 1.9.2 |
附:安装 git 命令补齐功能(未尝试)
1
2
3
|
rpm –ivh http: //mirror .1000mbps.com /fedora-epel/6Server/x86_64/bash-completion-1 .3-7.el6.noarch.rpm
cp contrib /completion/git-completion . bash /etc/bash_completion .d/
|