Git在CentOS下的搭建
这是一篇草稿,由于现在来不及整理.。后续会降草稿变成正是的博文有什么疑问可以在下面进行提问.谢谢大家.下载:git-1.9.2.tar.gz在Centos上进行安装cp git-1.9.2.tar.gz /usr/install/cd /usr/install/tar zxvf git-1.9.2.tar.gz
这是一篇草稿,由于现在来不及整理.。后续会降草稿变成正是的博文有什么疑问可以在下面进行提问.谢谢大家.
下载:git-1.9.2.tar.gz
在Centos上进行安装
cp git-1.9.2.tar.gz /usr/install/
cd /usr/install/
tar zxvf git-1.9.2.tar.gz
cd git-1.9.2
make prefix=/usr/install/git all
[问题]
make: *** [http.o] Error 1
参考博文:
http://my.oschina.net/moooofly/blog/228875
上面的步骤如果成功之后
make prefix=/usr/install/git install
将安装成功之后的git的bin路径添加到系统的path里面
vi /etc/profile
---------------------
#JAVA
JAVA_HOME=/usr/java/jdk1.7.0_45
#git
PATH=$PATH:$JAVA_HOME/bin:/usr/git/common/git/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib
export JAVA_HOME PATH CLASSPATH
#Proxy
http_proxy=http://zhenzhenyu:Password1@172.17.18.80:8080/
ftp_proxy=http://zhenzhenyu:Password1@172.17.18.80:8080/
export http_proxy ftp_proxy
-------------------
#git
PATH=$PATH:/usr/install/git/bin
export PATH
使上面的生效
source /etc/profile
创建一个库
[root@localhost install]# mkdir gitRepository
[root@localhost install]# cd gitRepository/
[root@localhost gitRepository]# mkdir project1
[root@localhost gitRepository]# cd project1/
[root@localhost project1]# git init --bare
Initialized empty Git repository in /usr/install/gitRepository/project1/
[root@localhost project1]# ll
total 32
drwxr-xr-x. 2 root root 4096 May 7 03:14 branches
-rw-r--r--. 1 root root 66 May 7 03:14 config
-rw-r--r--. 1 root root 73 May 7 03:14 description
-rw-r--r--. 1 root root 23 May 7 03:14 HEAD
drwxr-xr-x. 2 root root 4096 May 7 03:14 hooks
drwxr-xr-x. 2 root root 4096 May 7 03:14 info
drwxr-xr-x. 4 root root 4096 May 7 03:14 objects
drwxr-xr-x. 4 root root 4096 May 7 03:14 refs
从外部进行连接
ssh://root@192.168.229.131:22/usr/install/gitRepository/project1/
错误:
git.exe clone --progress -v "ssh://root@192.168.229.131:22/usr/install/gitRepository/project1" "C:\Users\Administrator\Desktop\project1"
Cloning into 'C:\Users\Administrator\Desktop\project1'...
bash: git-upload-pack: command not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git did not exit cleanly (exit code 128) (6739 ms @ 2014/5/7 15:19:52)
【图例】
解决方式:
ln /usr/install/git/bin/git* /usr/bin/
解决网页:http://blog.hexu.org/archives/1394.shtml
成功
出现的错误一:
[root@localhost git-1.9.2]# make prefix=/usr/install/git all
* new prefix flags
CC attr.o
CC config.o
config.c: In function ‘git_config_int’:
config.c:575: warning: ‘ret’ may be used uninitialized in this function
config.c: In function ‘git_config_int64’:
config.c:583: warning: ‘ret’ may be used uninitialized in this function
CC exec_cmd.o
CC gettext.o
AR libgit.a
LINK git-credential-store
LINK git-daemon
LINK git-fast-import
LINK git-http-backend
LINK git-imap-send
LINK git-sh-i18n--envsubst
LINK git-shell
LINK git-show-index
LINK git-upload-pack
LINK git-remote-testsvn
CC http.o
In file included from http.c:1:
http.h:6:23: warning: curl/curl.h: No such file or directory
http.h:7:23: warning: curl/easy.h: No such file or directory
In file included from http.c:1:
http.h:54: error: expected specifier-qualifier-list before ‘CURLcode’
http.h:60: error: expected specifier-qualifier-list before ‘CURL’
http.h:107: error: ‘CURL_ERROR_SIZE’ undeclared here (not in a function)
http.h: In function ‘missing__target’:
http.h:112: error: ‘CURLE_FILE_COULDNT_READ_FILE’ undeclared (first use in this function)
http.h:112: error: (Each undeclared identifier is reported only once
http.h:112: error: for each function it appears in.)
http.h:114: error: ‘CURLE_HTTP_NOT_FOUND’ undeclared (first use in this function)
http.h:116: error: ‘CURLE_FTP_COULDNT_RETR_FILE’ undeclared (first use in this function)
http.h: At top level:
http.h:193: error: expected specifier-qualifier-list before ‘CURLcode’
http.c:223: error: expected ‘)’ before ‘*’ token
http.c:293: error: expected ‘)’ before ‘*’ token
http.c:299: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
http.c: In function ‘http_init’:
http.c:409: warning: implicit declaration of function ‘curl_slist_append’
http.c:409: warning: assignment makes pointer from integer without a cast
http.c:410: warning: assignment makes pointer from integer without a cast
http.c: In function ‘http_cleanup’:
http.c:477: error: ‘struct active_request_slot’ has no member named ‘next’
http.c:478: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:482: warning: implicit declaration of function ‘curl_easy_cleanup’
http.c:482: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:498: warning: implicit declaration of function ‘curl_slist_free_all’
http.c: In function ‘get_active_slot’:
http.c:533: error: ‘struct active_request_slot’ has no member named ‘in_use’
http.c:534: error: ‘struct active_request_slot’ has no member named ‘next’
http.c:538: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:539: error: ‘struct active_request_slot’ has no member named ‘in_use’
http.c:540: error: ‘struct active_request_slot’ has no member named ‘next’
http.c:546: error: ‘struct active_request_slot’ has no member named ‘next’
http.c:547: error: ‘struct active_request_slot’ has no member named ‘next’
http.c:548: error: ‘struct active_request_slot’ has no member named ‘next’
http.c:553: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:555: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:555: warning: implicit declaration of function ‘get_curl_handle’
http.c:563: error: ‘struct active_request_slot’ has no member named ‘in_use’
http.c:564: error: ‘struct active_request_slot’ has no member named ‘results’
http.c:565: error: ‘struct active_request_slot’ has no member named ‘finished’
http.c:566: error: ‘struct active_request_slot’ has no member named ‘callback_data’
http.c:567: error: ‘struct active_request_slot’ has no member named ‘callback_func’
http.c:568: warning: implicit declaration of function ‘curl_easy_setopt’
http.c:568: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:568: error: ‘CURLOPT_COOKIEFILE’ undeclared (first use in this function)
http.c:570: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:570: error: ‘CURLOPT_COOKIEJAR’ undeclared (first use in this function)
http.c:571: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:571: error: ‘CURLOPT_HTTPHEADER’ undeclared (first use in this function)
http.c:572: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:572: error: ‘CURLOPT_ERRORBUFFER’ undeclared (first use in this function)
http.c:573: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:573: error: ‘CURLOPT_CUSTOMREQUEST’ undeclared (first use in this function)
http.c:574: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:574: error: ‘CURLOPT_READFUNCTION’ undeclared (first use in this function)
http.c:575: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:575: error: ‘CURLOPT_WRITEFUNCTION’ undeclared (first use in this function)
http.c:576: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:576: error: ‘CURLOPT_POSTFIELDS’ undeclared (first use in this function)
http.c:577: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:577: error: ‘CURLOPT_UPLOAD’ undeclared (first use in this function)
http.c:578: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:578: error: ‘CURLOPT_HTTPGET’ undeclared (first use in this function)
http.c:579: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:579: error: ‘CURLOPT_FAILONERROR’ undeclared (first use in this function)
http.c:581: warning: implicit declaration of function ‘init_curl_http_auth’
http.c:581: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c: In function ‘run_active_slot’:
http.c:723: error: ‘struct active_request_slot’ has no member named ‘in_use’
http.c:724: error: ‘struct active_request_slot’ has no member named ‘curl_result’
http.c:724: warning: implicit declaration of function ‘curl_easy_perform’
http.c:724: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c: In function ‘closedown_active_slot’:
http.c:733: error: ‘struct active_request_slot’ has no member named ‘in_use’
http.c: In function ‘release_active_slot’:
http.c:739: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:743: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:744: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c: In function ‘finish_active_slot’:
http.c:755: warning: implicit declaration of function ‘curl_easy_getinfo’
http.c:755: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:755: error: ‘CURLINFO_HTTP_CODE’ undeclared (first use in this function)
http.c:755: error: ‘struct active_request_slot’ has no member named ‘http_code’
http.c:757: error: ‘struct active_request_slot’ has no member named ‘finished’
http.c:758: error: ‘struct active_request_slot’ has no member named ‘finished’
http.c:761: error: ‘struct active_request_slot’ has no member named ‘results’
http.c:762: error: ‘struct active_request_slot’ has no member named ‘results’
http.c:762: error: ‘struct active_request_slot’ has no member named ‘curl_result’
http.c:763: error: ‘struct active_request_slot’ has no member named ‘results’
http.c:763: error: ‘struct active_request_slot’ has no member named ‘http_code’
http.c:768: error: ‘struct active_request_slot’ has no member named ‘results’
http.c:773: error: ‘struct active_request_slot’ has no member named ‘callback_func’
http.c:774: error: ‘struct active_request_slot’ has no member named ‘callback_func’
http.c:774: error: ‘struct active_request_slot’ has no member named ‘callback_data’
http.c: In function ‘finish_all_active_slots’:
http.c:782: error: ‘struct active_request_slot’ has no member named ‘in_use’
http.c:786: error: ‘struct active_request_slot’ has no member named ‘next’
http.c: In function ‘handle_curl_result’:
http.c:846: error: ‘struct slot_results’ has no member named ‘curl_result’
http.c:846: error: ‘CURLE_OK’ undeclared (first use in this function)
http.c:847: error: ‘struct slot_results’ has no member named ‘http_code’
http.c:848: error: ‘struct slot_results’ has no member named ‘curl_result’
http.c:848: error: ‘CURLE_HTTP_NOT_FOUND’ undeclared (first use in this function)
http.c:857: error: ‘struct slot_results’ has no member named ‘http_code’
http.c:860: error: ‘struct slot_results’ has no member named ‘curl_result’
http.c:863: error: ‘struct slot_results’ has no member named ‘http_code’
http.c:863: error: ‘struct slot_results’ has no member named ‘curl_result’
http.c:865: error: ‘struct slot_results’ has no member named ‘http_code’
http.c: At top level:
http.c:883: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘curlinfo_strbuf’
http.c: In function ‘http_request’:
http.c:910: error: ‘struct active_request_slot’ has no member named ‘results’
http.c:911: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:911: error: ‘CURLOPT_HTTPGET’ undeclared (first use in this function)
http.c:914: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:914: error: ‘CURLOPT_NOBODY’ undeclared (first use in this function)
http.c:916: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:917: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:917: error: ‘CURLOPT_FILE’ undeclared (first use in this function)
http.c:921: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:921: error: ‘CURLOPT_WRITEFUNCTION’ undeclared (first use in this function)
http.c:925: warning: assignment makes pointer from integer without a cast
http.c:929: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:937: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:937: error: ‘CURLOPT_FAILONERROR’ undeclared (first use in this function)
http.c:939: warning: assignment makes pointer from integer without a cast
http.c:941: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:941: error: ‘CURLOPT_URL’ undeclared (first use in this function)
http.c:942: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:942: error: ‘CURLOPT_HTTPHEADER’ undeclared (first use in this function)
http.c:943: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:943: error: ‘CURLOPT_ENCODING’ undeclared (first use in this function)
http.c:955: warning: implicit declaration of function ‘curlinfo_strbuf’
http.c:955: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:955: error: ‘CURLINFO_CONTENT_TYPE’ undeclared (first use in this function)
http.c:959: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:959: error: ‘CURLINFO_EFFECTIVE_URL’ undeclared (first use in this function)
http.c: In function ‘new_http_pack_request’:
http.c:1324: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:1324: error: ‘CURLOPT_FILE’ undeclared (first use in this function)
http.c:1325: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:1325: error: ‘CURLOPT_WRITEFUNCTION’ undeclared (first use in this function)
http.c:1326: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:1326: error: ‘CURLOPT_URL’ undeclared (first use in this function)
http.c:1327: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c:1327: error: ‘CURLOPT_HTTPHEADER’ undeclared (first use in this function)
http.c:1341: warning: assignment makes pointer from integer without a cast
http.c:1342: error: ‘struct active_request_slot’ has no member named ‘curl’
http.c: In function ‘fwrite_sha1_file’:
http.c:1371: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1372: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1374: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1375: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1376: error: ‘struct http_object_request’ has no member named ‘zret’
http.c:1376: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1377: error: ‘struct http_object_request’ has no member named ‘c’
http.c:1378: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1379: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1379: error: ‘struct http_object_request’ has no member named ‘zret’
http.c: In function ‘new_http_object_request’:
http.c:1398: error: ‘struct http_object_request’ has no member named ‘sha1’
http.c:1435: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1437: error: ‘struct http_object_request’ has no member named ‘c’
http.c:1469: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1469: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1470: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1471: error: ‘struct http_object_request’ has no member named ‘c’
http.c:1483: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1485: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1485: error: ‘CURLOPT_FILE’ undeclared (first use in this function)
http.c:1486: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1486: error: ‘CURLOPT_WRITEFUNCTION’ undeclared (first use in this function)
http.c:1487: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1487: error: ‘CURLOPT_ERRORBUFFER’ undeclared (first use in this function)
http.c:1487: error: ‘struct http_object_request’ has no member named ‘errorstr’
http.c:1488: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1488: error: ‘CURLOPT_URL’ undeclared (first use in this function)
http.c:1489: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1489: error: ‘CURLOPT_HTTPHEADER’ undeclared (first use in this function)
http.c:1501: warning: assignment makes pointer from integer without a cast
http.c:1502: error: ‘struct http_object_request’ has no member named ‘slot’
http.c: In function ‘process_http_object_request’:
http.c:1516: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1518: error: ‘struct http_object_request’ has no member named ‘curl_result’
http.c:1518: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1519: error: ‘struct http_object_request’ has no member named ‘http_code’
http.c:1519: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1520: error: ‘struct http_object_request’ has no member named ‘slot’
http.c: In function ‘finish_http_object_request’:
http.c:1532: error: ‘struct http_object_request’ has no member named ‘http_code’
http.c:1534: error: ‘struct http_object_request’ has no member named ‘curl_result’
http.c:1534: error: ‘CURLE_OK’ undeclared (first use in this function)
http.c:1541: error: ‘struct http_object_request’ has no member named ‘stream’
http.c:1542: error: ‘struct http_object_request’ has no member named ‘real_sha1’
http.c:1542: error: ‘struct http_object_request’ has no member named ‘c’
http.c:1543: error: ‘struct http_object_request’ has no member named ‘zret’
http.c:1547: error: ‘struct http_object_request’ has no member named ‘sha1’
http.c:1547: error: ‘struct http_object_request’ has no member named ‘real_sha1’
http.c:1551: error: ‘struct http_object_request’ has no member named ‘rename’
http.c:1552: error: ‘struct http_object_request’ has no member named ‘sha1’
http.c:1554: error: ‘struct http_object_request’ has no member named ‘rename’
http.c: In function ‘release_http_object_request’:
http.c:1574: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1575: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1576: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1577: error: ‘struct http_object_request’ has no member named ‘slot’
http.c:1578: error: ‘struct http_object_request’ has no member named ‘slot’
make: *** [http.o] Error 1
[root@localhost git-1.9.2]# yum install libcurl4-gnutls-dev
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
No package libcurl4-gnutls-dev available.
Error: Nothing to do
[root@localhost git-1.9.2]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
[root@localhost git-1.9.2]# service sshd restart
Stopping sshd: [FAILED]
Starting sshd: [ OK ]
[root@localhost git-1.9.2]# yum update curl libcurl
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Update Process
No Packages marked for Update
[root@localhost git-1.9.2]# yum -y install libcurl-devel.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libcurl-devel.x86_64 0:7.19.7-37.el6_4 will be installed
--> Processing Dependency: libidn-devel for package: libcurl-devel-7.19.7-37.el6_4.x86_64
--> Processing Dependency: automake for package: libcurl-devel-7.19.7-37.el6_4.x86_64
--> Running transaction check
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
--> Processing Dependency: autoconf >= 2.62 for package: automake-1.11.1-4.el6.noarch
---> Package libidn-devel.x86_64 0:1.18-2.el6 will be installed
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libcurl-devel x86_64 7.19.7-37.el6_4 base 244 k
Installing for dependencies:
autoconf noarch 2.63-5.1.el6 base 781 k
automake noarch 1.11.1-4.el6 base 550 k
libidn-devel x86_64 1.18-2.el6 base 137 k
Transaction Summary
================================================================================
Install 4 Package(s)
Total download size: 1.7 M
Installed size: 4.8 M
Downloading Packages:
(1/4): autoconf-2.63-5.1.el6.noarch.rpm | 781 kB 00:33
(2/4): automake-1.11.1-4.el6.noarch.rpm | 550 kB 00:19
(3/4): libcurl-devel-7.19.7-37.el6_4.x86_64.rpm | 244 kB 00:08
(4/4): libidn-devel-1.18-2.el6.x86_64.rpm | 137 kB 00:00
--------------------------------------------------------------------------------
Total 27 kB/s | 1.7 MB 01:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : autoconf-2.63-5.1.el6.noarch 1/4
Installing : automake-1.11.1-4.el6.noarch 2/4
Installing : libidn-devel-1.18-2.el6.x86_64 3/4
Installing : libcurl-devel-7.19.7-37.el6_4.x86_64 4/4
Verifying : libidn-devel-1.18-2.el6.x86_64 1/4
Verifying : libcurl-devel-7.19.7-37.el6_4.x86_64 2/4
Verifying : autoconf-2.63-5.1.el6.noarch 3/4
Verifying : automake-1.11.1-4.el6.noarch 4/4
Installed:
libcurl-devel.x86_64 0:7.19.7-37.el6_4
Dependency Installed:
autoconf.noarch 0:2.63-5.1.el6 automake.noarch 0:1.11.1-4.el6
libidn-devel.x86_64 0:1.18-2.el6
Complete!
[root@localhost git-1.9.2]# make prefix=/usr/install/git all
CC http.o
CC http-walker.o
CC http-fetch.o
LINK git-http-fetch
CC http-push.o
http-push.c:17:19: warning: expat.h: No such file or directory
http-push.c:839: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
http-push.c:839: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
http-push.c: In function ‘lock_remote’:
http-push.c:910: error: ‘XML_Parser’ undeclared (first use in this function)
http-push.c:910: error: (Each undeclared identifier is reported only once
http-push.c:910: error: for each function it appears in.)
http-push.c:910: error: expected ‘;’ before ‘parser’
http-push.c:917: warning: implicit declaration of function ‘XML_SetUserData’
http-push.c:917: error: ‘parser’ undeclared (first use in this function)
http-push.c:918: warning: implicit declaration of function ‘XML_SetElementHandler’
http-push.c:920: warning: implicit declaration of function ‘XML_SetCharacterDataHandler’
http-push.c:920: error: ‘xml_cdata’ undeclared (first use in this function)
http-push.c:921: warning: implicit declaration of function ‘XML_Parse’
http-push.c:926: warning: implicit declaration of function ‘XML_ErrorString’
http-push.c:927: warning: implicit declaration of function ‘XML_GetErrorCode’
http-push.c:930: warning: implicit declaration of function ‘XML_ParserFree’
http-push.c: In function ‘remote_ls’:
http-push.c:1154: error: ‘XML_Parser’ undeclared (first use in this function)
http-push.c:1154: error: expected ‘;’ before ‘parser’
http-push.c:1161: error: ‘parser’ undeclared (first use in this function)
http-push.c:1164: error: ‘xml_cdata’ undeclared (first use in this function)
http-push.c: In function ‘locking_available’:
http-push.c:1228: error: ‘XML_Parser’ undeclared (first use in this function)
http-push.c:1228: error: expected ‘;’ before ‘parser’
http-push.c:1235: error: ‘parser’ undeclared (first use in this function)
make: *** [http-push.o] Error 1
[root@localhost git-1.9.2]# yum -y install expat-devel.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 2948.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 37 M RSS (885 MB VSZ)
Started: Wed May 7 02:06:41 2014 - 00:52 ago
State : Sleeping, pid: 2948
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 37 M RSS (885 MB VSZ)
Started: Wed May 7 02:06:41 2014 - 00:54 ago
State : Sleeping, pid: 2948
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 37 M RSS (885 MB VSZ)
Started: Wed May 7 02:06:41 2014 - 00:56 ago
State : Sleeping, pid: 2948
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 37 M RSS (885 MB VSZ)
Started: Wed May 7 02:06:41 2014 - 00:58 ago
State : Sleeping, pid: 2948
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 37 M RSS (885 MB VSZ)
Started: Wed May 7 02:06:41 2014 - 01:00 ago
State : Sleeping, pid: 2948
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 37 M RSS (885 MB VSZ)
Started: Wed May 7 02:06:41 2014 - 01:02 ago
State : Sleeping, pid: 2948
^C
Exiting on user cancel.
[root@localhost git-1.9.2]# rm -rf /var/run/yum.pid
[root@localhost git-1.9.2]# yum -y install expat-devel.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package expat-devel.x86_64 0:2.0.1-11.el6_2 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
expat-devel x86_64 2.0.1-11.el6_2 base 120 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 120 k
Installed size: 476 k
Downloading Packages:
expat-devel-2.0.1-11.el6_2.x86_64.rpm | 120 kB 00:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : expat-devel-2.0.1-11.el6_2.x86_64 1/1
Verifying : expat-devel-2.0.1-11.el6_2.x86_64 1/1
Installed:
expat-devel.x86_64 0:2.0.1-11.el6_2
Complete!
出现的错排二:
[root@localhost git-1.9.2]# make prefix=/usr/install/
git/ git-1.9.2/ git-1.9.2.tar.gz nginx/
[root@localhost git-1.9.2]# make prefix=/usr/install/git all
CC http-push.o
LINK git-http-push
CC credential-cache.o
LINK git-credential-cache
CC credential-cache--daemon.o
LINK git-credential-cache--daemon
CC remote-curl.o
LINK git-remote-http
LN/CP git-remote-https
LN/CP git-remote-ftp
LN/CP git-remote-ftps
* new script parameters
GEN git-am
GEN git-bisect
GEN git-difftool--helper
GEN git-filter-branch
GEN git-merge-octopus
GEN git-merge-one-file
GEN git-merge-resolve
GEN git-mergetool
GEN git-pull
GEN git-quiltimport
GEN git-rebase
GEN git-request-pull
GEN git-stash
GEN git-submodule
GEN git-web--browse
GEN perl/PM.stamp
SUBDIR perl
/usr/bin/perl Makefile.PL PREFIX='/usr/install/git' INSTALL_BASE='' --localedir='/usr/install/git/share/locale'
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
make[1]: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2
[root@localhost git-1.9.2]# yum install perl-ExtUtils-MakeMaker package
肯能出现的错误三:
/bin/sh: msgfmt: command not found
yum install gettext-devel
更多推荐
所有评论(0)