Koozali.org: home of the SME Server

How to install GCC

Offline hans354

  • *
  • 7
  • +0/-0
How to install GCC
« on: July 07, 2007, 06:15:54 PM »
Hou can i install gcc compiler and where can i download a goor version voor sme?

Please.help me.

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
How to install GCC
« Reply #1 on: July 07, 2007, 07:24:13 PM »
yum install gcc

Offline hans354

  • *
  • 7
  • +0/-0
How to install GCC
« Reply #2 on: July 07, 2007, 08:25:13 PM »
Thank you Michael,

And what version of gcc do i need?

gcc-4.2.0-20070316.tar.bz2
gcc-4.2.0-20070316.tar.gz
ada, core, g++ etc???

Thanks

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
How to install GCC
« Reply #3 on: July 07, 2007, 08:35:44 PM »
yum will find and install the latest version. Yum only installs RPM packages.
You should never manually install tarballs!

When you need additional packages install them using yum, too.
i.e.
yum install g++

Read the yum manual to get further information.

Offline hans354

  • *
  • 7
  • +0/-0
How to install GCC
« Reply #4 on: July 08, 2007, 12:54:50 AM »
Ok, Michael. I did it, but i think it isn't good.

[root@server files]# yum install g++
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Install Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
smeos                     100% |=========================|  951 B    00:00
smeupdates                100% |=========================|  951 B    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: g++
Nothing to do
================================================================
No new rpms were installed. No additional commands are required.
================================================================
[root@server files]# make
gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/2.6.9-42.0.3.ELsmp/build/include -I/usr/src/linux-2.6.9-42.0.3.ELsmp/drivers/usb/serial/ -O   -c -o ftdi_sio.o ftdi_sio.c
make: gcc: Command not found
make: *** [ftdi_sio.o] Error 127

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
How to install GCC
« Reply #5 on: July 08, 2007, 02:21:27 AM »
Code: [Select]
yum install gcc
Regards,
William

IF I give advise.. It's only if it was me....

Offline mmccarn

  • *
  • 2,651
  • +10/-0
How to install GCC
« Reply #6 on: July 08, 2007, 04:54:11 PM »
You are assumed to have the default yum repositories enabled: http://wiki.contribs.org/SME_Server:Documentation:FAQ#Which_repositories_should_be_enabled

If you originally installed your SME from any iso prior to 7.1 then you may need to enable the Centos - os and Centos - updates repositories before yum will find gcc...

Offline hans354

  • *
  • 7
  • +0/-0
How to install GCC
« Reply #7 on: July 08, 2007, 11:35:38 PM »
Thanks, thats good information!!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
How to install GCC
« Reply #8 on: July 09, 2007, 12:31:07 AM »
Quote from: "hans354"

And what version of gcc do i need?


You probably don't need any. SME server is not a development workstation.

Offline gilsaa

  • 2
  • +0/-0
Re: How to install GCC
« Reply #9 on: January 04, 2008, 06:58:36 PM »
Remember to perforn
Code: [Select]
signal-event post-upgrade
signal-event reboot

I just did, and it work like a charm :D