Install GCC in CDLINUX-general Linux technology-Linux programming and kernel information. For more information, see. Author: QQ: 262589084 e-mail: wtx358@gmail.com
Before reading this article, I think you have understood the basic LINUX commands and related usage.
CDlinux is a good release version. It is small in size, has many practical functions, and is easy to use. However, it is insufficient to use the GCC compiling environment. So I found out a way to use GCC of other releases to put it in CDLINUX to use GCC in CDLINUX.
To install GCC according to the method described below, first install CDLINUX into an EXT2 or EXT3 partition, because this method is intended for using CDLINUX on the hard disk. Debian3.1rc must be installed on your hard disk.
Cdlinux kernel version 2.4.29
Debian3.1rc kernel version 2.4.27
These two kernel versions are slightly different.
The gcc deb package installed in cdlinux comes from the debian3.1rc disc. Therefore, it is best to prepare a debian3.1rc disc.
Deb package required for GCC installation:
Binutils_2.15-6_i386.deb
Libc6-dev_2.3.2.ds1-22_i386.deb
Cpp-3.3_3.3.5-13_i386.deb
Libgc1_6.4-1_i386.deb
Cpp_3.3.5-3_i386.deb
Libgcc1_3.4.3-13_i386.deb
G ++-3.3 _ 3.3.5-13_i386.deb
Libglib1.2 _ 1.2.10-9_i386.deb
G ++ _ 3.3.5-3_i386.deb
Libglib2.0-0_2.6.4-1_i386.deb
Gcc-3.3_3.3.5-13_i386.deb
Libstdc ++ 5_3.3.5-13_i386.deb
Gcc_3.3.5-3_i386.deb
Libstdc ++ 5-3.3-dev_3.3.5-13_i386.deb
Gcc-3.3-base_3.3.5-13_i386.deb
Libungif4g_4.1.3-2sarge1_i386.deb
Libc6_2.3.2.ds1-22_i386.deb
Locales_2.3.2.ds1-22_all.deb
The above installation package was installed with a script named undeb, which may not be found online. I posted it:
CODE :#! /Bin/sh # # This shoshould work with the GNU version of tar and gzip! # This shoshould work with the bash or ash shell! # Requires the programs (ar, tar, gzip, and the pager more or less ). # Usage (){ Echo "Usage: undeb-c package. deb " Echo "undeb-l package. deb " Echo "undeb-x package. deb/foo/boo Echo "put. for current directory>" Exit } Deb = $2 Exist (){ If ["$ deb" = ""]; then Usage Elif [! -S "$ deb"]; then Echo "Can't find $ deb! " Exit Fi } If ["$1" = ""]; then Usage Elif ["$1" = "-l"]; then Exist Type more>/dev/null 2> & 1 & pager = more Type less>/dev/null 2> & 1 & pager = less ["$ Pager" = ""] & echo "No pager found! "& Exit (Ar-p $ deb control.tar.gz | tar-xzO * control; echo-e "\ nPress enter to scroll, q to Quit! \ N "; ar-p $ deb data.tar.gz | tar-tzv) | $ pager Exit Elif ["$1" = "-c"]; then Exist Ar-p $ deb control.tar.gz | tar-xzO * control Exit Elif ["$1" = "-x"]; then Exist If ["$3" = ""]; then Usage Elif [! -D "$3"]; then Echo "No such directory $3! " Exit Fi Ar-p $ deb data.tar.gz | tar-xzvpf--C $3 | exit Echo Echo "Extracted $ deb to $3! " Exit Else Usage Fi |