[解決] gitのerror: Could not resolve hostにハマる

ストリーミング処理 for Big Data Apache S4のインストールに至らず - なぜか数学者にはワイン好きが多い

> git clone http://git-wip-us.apache.org/repos/asf/incubator-s4.git/
Cloning into 'incubator-s4'...
error: Could not resolve host: git-wip-us.apache.org (Timeout while contacting DNS servers) while accessing http://git-wip-us.apache.org/repos/asf/incubator-s4.git/info/refs
fatal: HTTP request failed
> git clone https://git-wip-us.apache.org/repos/asf/incubator-s4.git/
Cloning into 'incubator-s4'...
error: Could not resolve host: git-wip-us.apache.org (Timeout while contacting DNS servers) while accessing https://git-wip-us.apache.org/repos/asf/incubator-s4.git/info/refs
fatal: HTTP request failed


ずいぶん長い間悩んでしまいました.

リアルタイム処理for Big DataのStormのサンプルを動かしてみる - なぜか数学者にはワイン好きが多い

次に,ZeroMQのJavaバインディングをインストールします.node.jsバインディングもインストールに苦労しましたが(CとRubyは簡単だった気がします),ちょっと苦労しました.

> git clone https://github.com/nathanmarz/jzmq.git
Cloning into 'jzmq'...
error: Could not resolve host: github.com (Timeout while contacting DNS servers) while accessing https://github.com/nathanmarz/jzmq.git/info/refs
fatal: HTTP request fai

gitでhttpやhttpsが使えなくて悩んでいたのですが,バグレポートをやっと見つけました.
167517 – devel/git: failed to resolve dns

ports/167517: devel/git: failed to resolve dns

Git (https & http pull/push)will failed to resolve dns when curl compiled with c-ares binding.

なるほど......これでgitnubやsourceforgeのgitレポジトリにhttpsでpush/pullが出来るようになりました.

cd /usr/ports/curl; make config


この一番上のオプション,CARES(c-ares: library for asynchronous name resolves)の使用がオンになっていると,gitでエラーになるのでした.
オフにしてcurlをmake;make install,その後,gitをmake;make installすると,http/httpsがgitで使えるようになりました.

これで,apache s4も...と思いきや,

> git clone https://git-wip-us.apache.org/repos/asf/incubator-s4.git
Cloning into 'incubator-s4'...
remote: Counting objects: 12439, done.
remote: Compressing objects: 100% (4727/4727), done.
remote: Total 12439 (delta 6035), reused 10194 (delta 5079)
Receiving objects: 100% (12439/12439), 23.87 MiB | 1.51 MiB/s, done.
Resolving deltas: 100% (6035/6035), done.
> cd incubator-s4/
> ./gradlew install
./gradlew: Command not found.

あれ...
gradelewの一行目が/bin/bashになっていたので,/usr/local/bin/bashに書き換えても,まだダメでした.

道は遠い...