manywaypark's Blog
개발, 검색, 함수

그냥 간단하게 미리 빌드된 rebarwget을 써서 가져다 쓰려고 했는데 다음과 같은 에러가 나면서 아예 받아오지를 못했다.

$ wget https://raw.github.com/wiki/rebar/rebar/rebar && chmod u+x rebar

--2014-01-13 14:27:23--  https://raw.github.com/wiki/rebar/rebar/rebar

Resolving raw.github.com (raw.github.com)... 103.245.222.133

Connecting to raw.github.com (raw.github.com)|103.245.222.133|:443... connected.

ERROR: The certificate of `raw.github.com' is not trusted.

ERROR: The certificate of `raw.github.com' hasn't got a known issuer.


--no-check-certificate 옵션을 추가하면 해결되는데, 원래는 이렇게 쓰면 안될거같은데... 

$ wget --no-check-certificate https://raw.github.com/wiki/rebar/rebar/rebar && chmod u+x rebar


happy hackin'


2015-01-16: ca-certificates 패키지 까는 것이 정공법이다.

새 윈도우 박스에 cygwin을 깔고 github에서 소스를 받으려고 했는데 에러가 났다.

인증서는 제대로 등록되어있는 상태.

문제:

$ git clone https://github.com/foo/bar.git

Cloning into 'bar'...

error: error setting certificate verify locations:

  CAfile: /usr/ssl/certs/ca-bundle.crt

  CApath: none while accessing https://github.com/namjae/rebar.git/info/refs

fatal: HTTP request failed


해결:

아래 참고 페이지에 보면 여러 해결 방법이 있으나, 그 중에 ca-certificates 패키지를 설치하는 방법이 제일 간단하다 (내경우 잘 해결되었다는 말)



ref:

http://stackoverflow.com/questions/3777075/ssl-certificate-rejected-trying-to-access-github-over-https-behind-firewall


happy hackin'

아래와 같은 메시지가 나오면서 빌드가 안되는 경우가 있다.

com.android.sdklib.build.ApkCreationException: Debug Certificate expired on ...

메시지를 보면 인증서 기한 문제인데, debug용 key는 없으면 자동으로 생성되므로 지워주면 된다.

rm ~/.android/debug.keystore

ref:

http://stackoverflow.com/questions/3814503/ant-rules-r3-xml-error


happy hackin'

1 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

03-29 04:16