반응형
By default, ubuntu comes with gcc and cpp of version 4.4 as of today.
If you want to remove the current version and put an older version, i warn you to think twice before doing it.
It might crash ur Ubuntu OS and might need to reinstall the whole OS all over again, like what I had to do twice.
So, I believe if you follow these steps, it should work for you.
- first make sure your ubuntu has build-essential , cpp and gcc package in it.
To get all these three , just use : $ sudo apt-get install build-essential - now, a difficult yet must do job.. find the gcc and cpp version 2.95 that work for disksim 3.0, download .deb files of them.
you can get from http://ftp.debian.org/pool/main/g/gcc-2.95/. or attachements. - Then install : cpp-2.95, gcc-2.95, bison, flex-old (do not use flex) and indent.
You must follow this order otherwise you’ll get dependency error.
1. sudo dpkg -i cpp-2.95
2. sudo dpkg -i gcc-2.95
3. sudo apt-get install bison
4. sudo apt-get install flex-old
5. sudo apt-get install indent - In terminal , go to usr/bin location and make sure you have gcc2.95 and cpp 2.95 there.
- Now you can make under the disksim-3.0 directory , first do
$ make clean
followed by
$ make CC=gcc-2.95 (for disksim 3)
or
$ make (for disksim 4)
you are done.
반응형
'【Fundamental Tech】 > Ubuntu' 카테고리의 다른 글
How to Compile and Install Linux Kernel 3.0 in Ubuntu 11.04, 10.10 and 10.04 (0) | 2011.09.19 |
---|---|
우분투 10.04를 설치한 뒤 해준 삽질들 (0) | 2011.09.19 |
[Ubuntu 10.04] How to compile a kernel on Ubuntu 10.04 (0) | 2011.09.19 |
How to compile DiskSim 4.0 + SSDSim(MS) in Ubuntu (0) | 2010.12.05 |
root 계정으로 로그인하기, 루트(root) 계정 만들기 (0) | 2010.10.04 |