logo

한국어

file-5.18.tar.gz


1. 빌드에 필요한 CentOS x86_64 패키지 설치

#!/bin/sh
###########################################################
#
# 필요한 패키지 설치 (기본)
#
###########################################################
sudo yum -y install arj
sudo yum -y install ftp
sudo yum -y install git
sudo yum -y install lrzsz
sudo yum -y install man
sudo yum -y install mc
sudo yum -y install ntsysv
sudo yum -y install p7zip
sudo yum -y install samba
sudo yum -y install svn
sudo yum -y install telnet
sudo yum -y install unrar
sudo yum -y install vsftpd

###########################################################
#
# EPEL 저장소 설정
#
###########################################################
sudo wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
sudo rm -f epel-release-6-8.noarch.rpm remi-release-6.rpm

###########################################################
#
# 필요한 패키지 설치 (개발)
#
###########################################################
sudo yum -y install bzr
sudo yum -y install ccache
sudo yum -y install glibc.i686
sudo yum -y install hg
sudo yum -y install json-c
sudo yum -y install json-c-devel
sudo yum -y install libgc
sudo yum -y install libstdc++.i686
sudo yum -y install ncurses*
sudo yum -y install python-magic
sudo yum -y install python-matplotlib
sudo yum -y install qemu*
sudo yum -y install tex4ht
sudo yum -y install xz-devel
sudo yum -y install zlib-devel
sudo yum -y install zlib.i686


2. file 유틸리티 빌드 및 설치

Download : ftp://ftp.astron.com/pub/file/ (v5.18만 가능-첨부파일 참조)

#!/bin/sh
sudo rm -f /usr/lib64/libmagic.*
sudo rm -f /usr/lib/libmagic.*
sudo rm -f /usr/share/misc/magic*
sudo rm -f /usr/lib64/python2.6/site-packages/magic.so
./configure --prefix=/usr && sudo make install
cd ~/file-5.18/python && sudo python setup.py build
cd ~/file-5.18/python && sudo python setup.py install
sudo ln -s /usr/lib/libmagic.so.1.0.0 /usr/lib64/libmagic.so.1.0.0
sudo ln -s /usr/lib/libmagic.so.1.0.0 /usr/lib64/libmagic.so.1
sudo ln -s /usr/lib/libmagic.so.1.0.0 /usr/lib64/libmagic.so


3. sdcc(small device c compiler) 빌드 및 설치

cvs -z3 -d:pserver:anonymous@sdcc.cvs.sourceforge.net:/cvsroot/sdcc co sdcc

./configure --prefix=/usr
sudo make install


4. firmware-mod-kit 빌드

firmware-mod-kit는 bin 파일의 분해를 위해 필요.

https://code.google.com/p/firmware-mod-kit/

tar -xvzf fmk_099.tar.gz
cd fmk/src
./configure
make all


번호 제목 날짜 조회 수
8 OpenWRT VLAN 설정 2014.05.14 263
7 OpenWRT에 pure-ftpd 설치하기 2014.05.04 33
6 ipTIME N604M 2014.05.03 197
5 TP-Link TL-WR740N 2014.05.03 50
4 OpenWRT StrongSwan IPSec VPN 설정 file 2014.05.02 160
3 OpenWRT Package 제작 2014.05.02 78
2 OpenWRT Cross Compile 2014.05.01 341
1 CentOS x86_64에 libmagic 최신버전 설치 2014.04.25 20