Computer Engineering (24)
[CentOS] libtool configure failed

[root@localhost libURI-1.0.0]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... (cached) c++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
ltconfig: you must specify a host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed


 

./configure --target=x86_64-unknown-gnu

 

'Computer Engineering > Linux' 카테고리의 다른 글

[CentOS] pip install error  (0) 2016.04.07
[CentOS] PIP 설치  (0) 2016.04.04
[CentOS] libsctp 설치  (0) 2016.03.30
[CentOS] JSON 라이브러리 jansson 설치  (0) 2016.02.22
[CentOS] configure: error: Can't find ext2fs library  (0) 2016.02.11
  Comments,     Trackbacks
[CentOS] pip install error

오류

 

[root@localhost utils]# pip install --upgrade pip


Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/pip/

 


 

해결법

 

설정해놓은 네임서버에서 pypi 홈페이지를 찾아갈 수 없는 모양..

현재 학교에 설치해둔 서버의 네임서버엔 학교 네임서버만 등록되어 있었다.

학교 ISP인 kt의 네임서버를 추가해줌으로 해결

 

vi /etc/resolv.conf

 

nameserver 168.126.63.1 // kt dns

  Comments,     Trackbacks
[CentOS] PIP 설치

PIP

 

파이썬 패키지를 설치하고 관리하는데 사용되는 툴

 


 

설치

 

yum install python-pip

 


 

참고

 

https://pypi.python.org/pypi/pip/

  Comments,     Trackbacks
[Web Crawler] HTTrack

HTTrack

 

C언어 기반 오픈소스 웹 크롤러

https 지원

크롤링한 데이터는 파일시스템을 이용해 저장

자세한 설정 없이 많은 페이지를 긁어오는데 좋아보임

 


 

 

설치

 

git clone https://github.com/xroche/httrack.git --recurse

 

cd httrack

 

./configure && make -j8 && make install DESTDIR=/

 


 

 

사용법

 

 httrack "https://www.httrack.com/" -r2 -O "/tmp/httrack" -B -v

 

 Arguments


1    Start URL
2    Hops / -rN
3    Output (Log)
4    Log File Path
5    Expert options (*.test.com / www.test.com/*)
6    Verbose (Log on screen)

 

httrack -help 참조

 


 

 

참고

 

https://www.httrack.com/html/fcguide.html

https://www.httrack.com/

 

  Comments,     Trackbacks
[CentOS] libsctp 설치

yum install lksctp-tools-devel

  Comments,     Trackbacks
[Network] DNS(Domain Name System)

DNS(Domain Name System)

 

 - 기억하기 힘든 IP 주소 대신 기억하기도 좋고 표현하기도 좋은 도메인 이름을 부여해 IP 주소 대신 사용

 - 웹 브라우저의 주소 창 도메인 주소로 입력할 시 컴퓨터에 등록된 기본 DNS 서버에 입력한 도메인 이름에 해당하는 IP 주소를 얻게되고 그 IP 주소로 접속하는 방식

 - 기본 DNS 서버가 모르는 도메인 이름을 물을 시 다른 DNS 서버에 요청하여 응답

 - 계층적으로 관리되는 일종의 분산 데이터베이스 시스템(Distributed Database System)

  Comments,     Trackbacks
[Network] IGMP(Internet Group Management Protocol)

IGMP(Internet Group Management Protocol; 인터넷 그룹 관리 프로토콜)

 

 - 서브넷 상의 멀티캐스팅 그룹 관리를 위한 프로토콜

 - 하나의 라우터와 여러 호스트로 구성되는 서브넷 상에서 라우터 및 호스트들이 어떤 멀티캐스트 그룹에 속하는지 확인하기 위한 일종의 그룹 관리용 신호 프로토콜(Signaling Protocol)

 


 

IGMP Query Message

: 멀티캐스트 라우터가 주기적으로 서브넷 호스트 그룹에 전송하여 호스트를 확인하는 메시지

 


 

IGMP Report Message

: 멀티캐스트 라우터의 쿼리 메시지에 응답하는 메시지이나, 쿼리 메시지 없이도 전송 가능

  호스트가 자신이 가입하고자 하는 그룹주소 정보를 라우터에게 전송

 


 

IGMP 그룹 멤버쉽 동작

 

 - 그룹 가입(Joining)

: 그룹에 가입하고자 하는 요청을 라우터에게 보고

 

 - 그룹 멤버쉽 조사(Monitoring)

: 멤버쉽 쿼리 메시지를 보내서 응답을 기다림

 

 - 멤버쉽 연속(Member Continuation)

: 멤버쉽을 계속해서 유지하기 원하는 보고 메시지

 

 - 그룹 탈퇴(Leaving)

: 탈퇴에 대한 응답 메시지를 보내지 않음

 


 

참고 : http://www.ktword.co.kr/abbr_view.php?m_temp1=1716

  Comments,     Trackbacks
[Network] 브로드캐스트(Broadcast)

브로드캐스트(Broadcast)

 

 - 한번에 여러 호스트에게 데이터를 전송

 - 동일한 네트워크로 연결되어 있는 호스트에게만 데이터를 전송할 수 있음

 


 

Directed Broadcast

 

: 192.12.34 네트워크에 연결되어있는 호스트에게 전송 시 192.12.34.255

 


 

Local Broadcast

 

: 192.12.34 네트워크에 속해있는 호스트가 255.255.255.255로 전송하면 속해있는 네트워크에 전송

 


 

참고 : 열혈 TCP/IP 소켓 프로그래밍, 윤성우 저

 

 

  Comments,     Trackbacks
[Network] 멀티캐스트(Multicast)

멀티캐스트(Multicast)

 

 - 멀티캐스트 방식의 데이터 전송은 UDP 기반

 - 목적지는 특정 그룹에 등록되어 있는 다수의 호스트

 - 단 한번의 데이터 전송으로 다수의 호스트에게 데이터를 전송

 


 

멀티캐스트 방식

 

 

 

 

 - 유니캐스트는 3개의 호스트에 파일을 전송하려면 파일 전송을 3회 해야한다.

 - 반면에 멀티캐스트는 1회 전송으로 다수의 호스트에 전송할 수 있다.

 - 라우터에 따라 멀티캐스트를 지원하지 않거나, 막아놓은 경우 터널링 기술을 사용한다.

 


 

TTL(Time to Live)

 

 - '패킷을 얼마나 멀리 전달할 것인가' 를 결정하는 주 요소

 - 정수로 표현

 - 라우터를 하나 거칠 때마다 1씩 감소

 - 값이 0이 되면 패킷은 더 이상 전달되지 못하고 소멸

 - 너무 크게 설정하면 네트워크 트래픽에 좋지 못한 영향을 줌

 - 너무 작게 설정하면 목적지에 도달하지 않을 수 있음

 


 

참고 : 열혈 TCP/IP 소켓 프로그래밍, 윤성우 저

 

 

 

  Comments,     Trackbacks
[CentOS] JSON 라이브러리 jansson 설치

다운로드

 

wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz

 


 

압축 해제

 

tar -zxvf jansson-2.7.tar.gz

 


 

디렉토리 이동

 

cd jansson-2.7

 


 

설치

 

./configure && make && make install && make check

 

  Comments,     Trackbacks