Install the GCC development environment in SuSE 11

Source: Internet
Author: User

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 ([email protected]) (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

Install the GCC development environment in SuSE 11

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.