Simulator을 위한 다양한 환경구축..in ubuntu
1. 우분투 첨에 깔면 자주 발생하는 root권한 획득
su: Authentication failure
해결법
sudo passwd root
그다음 패스워드 쭈르르~~ 치면된다.
이제 su를 사용할 수 있다.
2. GCC/G++ 개발환경과 파이썬 모듈 설치
sudo apt-get install build-essential
sudo apt-get install python-dev
sudo apt-get install python-docutils
3. Scons 설치
2.0.1 버전 기준.
wget http://prdownloads.sourceforge.net/scons/scons-2.0.1.tar.gz
tar -xvf scons ... (생략)
cd scons ... (생략)
python setup.py install
설치파일은 거의 이렇게
4. hg 사용하기 (mercurial 설치)
sudo apt-get install mercurial 시도.
or
sudo add-apt-repository ppa:mercurial-ppa/releases
sudo apt-get update
sudo apt-get install mercurial
위에것이 안먹힌다면
https://mercurial.selenic.com/wiki/Download
여기서 환경에 따라 다운로드.
wget 으로 ~
tar -xvf 로 압축 풀고
cd로 들어가서
make all
make install
(python setup.py install 도 같은듯?)
which hg 를 쳐서 경로를 확인하므로서 설치확인.
home directory에 ./hgrc 를 만든다.
username을 하나 만든다.
(왜 만들지?)
[ui]
# Name data to appear in commits
username = Mary Anthony manthony@atlassian.com
5. gem 5 빌드
일단 필요한것들을 설치(mercurial 포함됨)
sudo apt-get install mercurial swig m4 libgoogle-perftools-dev protobuf-dev
(scons 쓰다보면 libgoogle-perftools 설치시 12% 성능향상된다고 나온다. 이 후 빌드함;;)
hg clone http://repo.gem5.org/gem5-stable
cd gem5-stable
scons build/ARM/gem5.opt (예시)
다음은 구글링으로 찾은 파일의 일부다.
Compile an instance of the simulator for alpha based machine – scons -j 4 build/ALPHA_MESI_CMP_directory/gem5.fast RUBY=true
Run a simple example, to check all has been well done
|
'시뮬레이터/리눅스' 카테고리의 다른 글
리눅스 멀티부팅 에러...해결... (0) | 2015.11.06 |
---|---|
su , bash Permission Denied (0) | 2015.07.13 |
[Sniper Sim] Tutorial Links (0) | 2015.07.06 |
[memo] mount usb (0) | 2015.06.29 |
Simulator을 위한 다양한 환경구축..in ubuntu (0) | 2015.06.29 |
linux configuration help 한글버전 (0) | 2015.06.21 |