본문 바로가기
【Fundamental Tech】/Ubuntu

[Ubuntu 10.04] disksim 3/4 Compile하기

반응형

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.

  1. 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
  2. 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.
  3. 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
  4. In terminal , go to usr/bin location and make sure you have gcc2.95 and cpp 2.95 there.
  5. 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.

1.cpp-2.95_2.95.4-24_i386.deb

2.gcc-2.95_2.95.4-24_i386.deb

반응형