Install the GCC development environment in SUSE 11
Install the GCC development environment in SUSE 11
Download package website: http: // 213.174.32.130/sles/distribution/11.0-SP1/repo/disk1/suse/x86_64/
RPM package search Web site: http://rpm.pbone.net/
View the Linux version
Linux :~ # Cat/etc/issue
Welcome to SUSE Linux Enterprise Server 11SP1 (x86_64)-Kernel \ r (\ l ).
View the Linux Kernel
Linux :~ # Cat/proc/version
Linux version 2.6.32.12-0.7-default (geeko @ buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSELinux) #1 SMP 2010-05-20 11:14:20 + 0200
Install gcc and g ++
1) mount the ISO image file (root permission required ):
# Mkdir/mnt/iso
# Mount-o loop-t iso9660 <iso file>/mnt/iso
Or insert an optical drive and mount it:
# Mkdir/mnt/cdrom
Note: The method for viewing the CDROM device name is usually/dev/cdrom:
* Run: $ dmesg | egrep-I -- color 'cdrom | dvd | cd/rw | writer'
[5.437164] sr0: scsi3-mmc drive: 24x/24x writerdvd-ram cd/rw xa/form2 cdda tray
[5.437307] cdrom: Uniform CD-ROM driverRevision: 3.20
* Execution: $ less/proc/sys/dev/cdrom/info
CD-ROMinformation, Id: cdrom. c 3.20 2003/12/17
Drive name: sr0
Drive speed: 24
* Run lsblk to list all Block devices)
# Mount-t iso9660/dev/cdrom/mnt/cdrom
2) Go to the installation location:
# Cd <cdrom>/suse
Dependency (install 64-bit without 32-bit installation ):
-Install glibc-devel-2.9-13.2.x86_64.rpm
-- Requires linux-kernel-headers-2.6.27-2.22.noarch.rpm
-Install gcc-4.3-62.198.x86_64.rpm
-- Gcc43-4.3.3_20081022-11.18.x86_64.rpm needs to be installed
-Install glibc-devel-32bit-2.9-13.2.x86_64.rpm
-Install gcc-32bit-4.3-62.198.x86_64.rpm
-- Gcc43-32bit-4.3.3_20081022-11.18.x86_64.rpm needs to be installed
--- Need to install libgomp43-32bit-4.3.3_20081022-11.18.x86_64.rpm
-Install libstdc ++ 43-devel-4.3.3_20081022-11.18.x86_64.rpm
-Install gcc-c ++-4.3-62.198.x86 _ 64.rpm
-- Need to install gcc43-c ++-4.3.3 _ 20081022-11.18.x86_64.rpm
-Install libstdc ++ 43-devel-32bit-4.3.3_20081022-11.18.x86_64.rpm
-Install libstdc ++-devel-4.3-62.198.x86_64.rpm
3) install and install glibc-devel
Rpm-ivh noarchy/linux-kernel-headers-2.6.32-1.4.13.noarch.rpm
# Rpm-ivhglibc-devel-2.11.1-0.17.4.x86_64.rpm
4) install gcc
# Rpm-ivh gcc43-4.3.3_20081022-11.18.x86_64.rpm
# Rpm-ivhgcc-4.3-62.198.x86_64.rpm
5) install g ++
# Rpm-ivh libstdc ++ devel-4.3-62.198.x86_64.rpm
# Rpm-ivh libstdc ++ 43-devel-4.3.3_20081022-11.18.x86_64.rpm
# Rpm-ivh gcc-c +++-4.3-62.198.x86 _ 64.rpm
# Rpm-ivh gcc43-c + +-4.3.3 _ 20081022-11.18.x86_64.rpm
Yast source construction
1) attach an ISO Image
Create a directory
Mkdir/mnt/iso
Mount the iso file to this directory:
Mount-o loop/data/suse11sp1/64-2d-dvd1.iso/mnt/iso
2) Add zypper installation Source
Zypperaddrepo/mnt/iso/suse11sp1iso
Or zypper sa file: // mnt/iso/suse11sp1iso
Note: directly mount the ISO image file and modify the path <iso-path> by yourself. command:
# Zypper sa iso :///? Iso = <iso-path>/SLES-11-SP1-x86_64-DVD1.iso
# Zypper refresh takes effect, and ISO is recognized as the yast source.
3) display the zypper installation source command:
Zypper repos
Zypper lr
4) install GCC and G ++
Zypper insallgcc-c ++
Zyppr install gcc
Ubuntu 12.04 embedded cross-compilation environment arm-linux-GCC Build Process Diagram
Install the cross-compiler arm-none-linux-gnueabi-GCC in Ubuntu 12.10
Install and use Vim + GCC + GDB in Ubuntu
Switch two GCC versions in Ubuntu
GCC details: click here
GCC: click here