S.l.e!ep.¢%

像打了激速一样,以四倍的速度运转,开心的工作
简单、开放、平等的公司文化;尊重个性、自由与个人价值;
posts - 1098, comments - 335, trackbacks - 0, articles - 1
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

git install

Posted on 2014-06-20 21:51 S.l.e!ep.¢% 阅读(825) 评论(0)  编辑 收藏 引用 所属分类: TortoiseSVN
wget --no-check-certificate https://github.com/git/git/archive/v1.9.4.tar.gz
tar xzvf v1.9.4
cd git-1.9.4/
autoconf
./configure --with-curl=/usr/local
make
make install
git --version

export GIT_SSL_NO_VERIFY=true
git clone

-- clone后出现以下问题
# git clone https://github.com/xxxx.git
Cloning into 'xxxx'...
fatal: unable to access 'https://github.com/xxxx.git': Protocol https not supported or disabled in libcurl

2014.11.03
wget ftp://ftp.openssl.org/source/openssl-1.0.2-beta3.tar.gz
tar -zxf openssl-1.0.2-beta3.tar.gz
cd openssl-1.0.2-beta3
./config  --prefix=/usr/local --openssldir=/usr/local/ssl
make
make install

wget http://curl.haxx.se/download/curl-7.38.0.tar.gz
tar -xvf curl-7.38.0.tar.gz
cd curl-7.38.0/
./configure --with-ssl
make

出现以下错误
../lib/.libs/libcurl.so: undefined reference to `ERR_remove_thread_state'
collect2: ld returned 1 exit status


google后有人说是版本问题
wget http://www.openssl.org/source/openssl-1.0.0o.tar.gz
tar -xvf openssl-1.0.0o.tar.gz
cd openssl-1.0.0o
./config  --prefix=/usr/local --openssldir=/usr/local/ssl
make
make install

问题依旧

cd ./curl-7.38.0
./configure --with-ssl=/usr/local/ssl
make
出现其它的错误
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value

ll /usr/local/ssl/lib/libssl.a
-rw-r--r-- 1 root root 631996 2013-09-26 11:32 /usr/local/ssl/lib/libssl.a

chmod +x /usr/local/ssl/lib/libssl.a
问题依旧,看来不是文件执行权限的问题

google到 http://qing.blog.sina.com.cn/1153369603/44bf0603330023r5.html
里面说到 这段错误说明ssl方面的错误,需要重新编译,并添加 -fPIC

cd openssl-1.0.0o
./config  --prefix=/usr/local --openssldir=/usr/local/ssl -fPIC
make clean
make
make install
cd ./curl-7.38.0
./configure --with-ssl=/usr/local/ssl
make
问题依旧

cd openssl-1.0.0o
./config --prefix=/usr/local -fPIC no-gost no-shared no-zlib
make clean
make
make install
cd ./curl-7.38.0
./configure --with-ssl=/usr/local/ssl
make
问题依旧

按博文的说法openssl 用 make depend 编译会出现以下错误
cd openssl-1.0.0o
make depend
making depend in crypto...
make[1]: Entering directory `/root/build/openssl-1.0.0o/crypto'
../util/domd: line 30: makedepend: command not found
mv: cannot stat `Makefile.new': No such file or directory
make[1]: *** [depend] Error 127
make[1]: Leaving directory `/root/build/openssl-1.0.0o/crypto'
make: *** [depend] Error 1




只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理