开发者

Fed up trying to install android source behind http_proxy

I am trying to download android sources. I have to access internet via proxy server. Therefore, I followed the following steps, however always failing: Downloaded a tool corkscrew from http://www.agroman.net/corkscrew/

tar zxvf  corkscrew-2.0.tar.gz
cd corkscrew-2.0
开发者_开发百科./configure
make
cp corkscrew ~/bin 

Created a shell script named 'git-proxy' in ~/bin, with following content:

#!/bin/sh
exec ~/bin/corkscrew <proxy name> <proxy port> $*
//mine is: exec ~/bin/corkscrew proxy.company.com 3128 $*

and then did:

git config --global core.gitproxy '~/bin/git-proxy'

Everything seems ok. I have a "repo" in my ~/bin directory. I just rejoice. And then the problem starts when I type:

repo init --trace -u http://android.git.kernel.org/platform/manifest.git -b eclair

This is the error I keep getting:

/home/**/bin/repo: line 2: syntax error near unexpected token `newline'
/home/**/bin/repo: line 2: `<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'

Any ideas??

I have also set the environment variable http_proxy as: http://proxy.company.com:3128/

Please help!!


This has nothing to do with proxy, kernel.org got hacked, Google asked to take Android out of the repository for a while...

Here's a way people say it's working: http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/


Use the global setting file of git for setting the $http_proxy and $HTTP_PROXY properties e.g.

  1. sets up the http_proxy Environment variable. To do this, simply do: export http_proxy=http://someuser:somepassword@proxy_ip:proxy_port"

Check this for more information: using GIT behind proxy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜