Linux/Unix

pchero on May 28th, 2014

아래 내용들은 GCC49 버전으로 컴파일 했을 때 발생한 에러들이다. GCC46 버전으로 컴파일 시, 다른 에러들이 발생할 수 있다. 가급적 최신의 컴파일러를 사용하자. Asterisk 컴파일 에러. 컴파일 중 발생한 에러로서, 참조 에러이다. 파일 수정이 필요하다. creating config.h [LD] abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o backtrace.o bridge.o bridge_after.o […]

Continue reading about Asterisk-12.2.0 compile error in FreeBSD-10

pchero on May 23rd, 2014

Freeswitch 를 설치하는데 openssl-1.0 이상 버전을 요구했다. 현재 운용중인 서버 버전은 Debian-6.0 apt-get 으로 설치 가능한 openssl 버전은 0.9.x 버전이었다.   즉, openssl 버전 문제로 정상적인 설치가 안되는 상황. openssl 최신버전이야 소스 설치를 하면 되겠는데.. 문제는 이미 사용중인 openssl-0.9.x 버전은 어떻게 하느냐였다. 이미 많은 수의 패키지들이 라이브러리를 참조하고 있었다. 실제로 apt-get remove 명령어로 해당 패키지를 […]

Continue reading about Upgrade openssl-1.0.1 on Debian 6

pchero on May 6th, 2014

사용가능한 Python 모듈들을 알아보기 위해 python 인터프리터에서 전체 모듈보기 명령어를 입력했는데, 다음과 같은 오류 메시지를 확인했다. pchero@MyDebian:/usr/lib/pymodules/python2.7$ python Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 Type “help”, “copyright”, “credits” or “license” for more information. >>> help(‘modules’) Please wait a moment while I gather a list of all available modules… /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: […]

Continue reading about Could not get python modules list…

pchero on May 5th, 2014

시스템 부팅시 자동으로 NIC 에 IP 를 할당하고 싶다면 /etc/rc.conf 파일을 이용한다. rc.conf 설정 예제. root@FBSD10:/etc # vi rc.conf hostname=”FBSD10″ #ifconfig_em0=”DHCP” ifconfig_em0=”10.0.2.16/24″ ifconfig_em0_ipv6=”inet6 accept_rtadv” sshd_enable=”YES” ntpd_enable=”YES” # Set dumpdev to “AUTO” to enable crash dumps, “NO” to disable dumpdev=”AUTO” # Set for em1 ifconfig_em1=”192.168.200.12/24″ # Set for em2 ifconfig_em2=”192.168.201.12/24″ # Default route gateway defaultrouter=”10.0.2.2″   […]

Continue reading about [FreeBSD] Network configure

pchero on March 27th, 2014

사내에서 개발한 리눅스 플랫폼 프로그램을 테스팅하면서 File descriptor 를 감시해야 하는 경우가 생겼다. Socket 을 열고 정상적으로 종료를 하는지 확인하는 내용이었는데.. 이를 위해서 lsof 유틸리티를 사용했다. $ lsof -p [PID] | wc -l 의 명령어로 갯수를 확인하면서 open file descriptor 수를 감시했다. 그러던 중, lsof 의 결과 출력을 분석했는데 이상한 것이 있었다. cbapid 5560 root […]

Continue reading about lsof anon_inode