프로그래밍 3

DBT-2를 ubuntu 13.10 64bit에서 컴파일 시

기본적인 사항은 http://samurai-mysql.blogspot.kr/2009/03/settingup-dbt-2.html 참조 1. DBT-2를 컴파일하기 위해서는 MySQL의 개발자 라이브러리가 필요하다. libmysqlclient-dev를 설치하자. sudo apt-get install libmysqlclient-dev 2. configure에서 --with-mysql 옵션만 주면 library나 include는 알아서 처리해줌. 3. make를 했을때, mysql 함수 관련으로 undefined reference가 뜬다면 1) 제대로 mysql 개발관련 library를 설치했는지 우선 확인해보자. locate libmysqlclient 를 쳤을경우 설치된 libmysqlclient의 경로가 잡..

Programming/기타 2013.12.14

Hadoop common version(v2.1.0 beta) compile 하기

Source code를 받으면, BUILDING.txt 문서가 있는데 이를 참조. Requirements: * Unix System* JDK 1.6* Maven 3.0* Findbugs 1.3.9 (if running findbugs)* ProtocolBuffer 2.4.1+ (for MapReduce and HDFS)* CMake 2.6 or newer (if compiling native code)* Internet connection for first build (to fetch all Maven and Hadoop dependencies) Ubuntu의 경우, Findbugs를 제외하고 apt를 통해서 받을 수 있다. ProtocolBuffer의 경우, 이름이 protobuf-c-compiler,..

Programming/Java 2013.08.23

[C/C++]Linux 시스템콜을 이용한 TCP/IP 프로그래밍 기초

= TCP/IP 소켓 관련 시스템콜 = struct sockaddr_in { short int sin_family; /* Address family */ unsigned short int sin_port; /* Port number */ struct in_addr sin_addr; /* Internet address */ unsigned char sin_zero[8]; /* Same size as struct sockaddr */ }; -> 실제로 사용하게 되는 구조체. 꼭 기억하자! // htons()--"Host to Network Short" // htonl()--"Host to Network Long" // ntohs()--"Network to Host Short" // ntohl()--"Netw..

Programming 2010.08.28