[Solved] How to Install GCC

Post here if you are a new Porteus member and you're looking for some help.
Sam007
Ronin
Ronin
Posts: 1
Joined: 20 Sep 2023, 18:11
Distribution: Porteus

[Solved] How to Install GCC

Post#1 by Sam007 » 20 Sep 2023, 18:18

How to Install 'gcc' in Porteus XFCE v5.0 64-bit Linux?

I tried to Install it using 'slackpkg' command, but it's giving error: test.c:1:10: fatal error: stdio.h: No such file or directory
1 | #include <stdio.h>
Last edited by Sam007 on 27 Sep 2023, 18:49, edited 1 time in total.

roadie
Full of knowledge
Full of knowledge
Posts: 400
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 5.0-RC1
Location: In a hayfield

How to Install GCC

Post#2 by roadie » 20 Sep 2023, 19:52

Sam007 wrote:
20 Sep 2023, 18:18
How to Install 'gcc' in Porteus XFCE v5.0 64-bit Linux?

I tried to Install it using 'slackpkg' command, but it's giving error: test.c:1:10: fatal error: stdio.h: No such file or directory
1 | #include <stdio.h>
Go to this link:

http://ftp.nluug.nl/os/Linux/distr/port ... -devel.xzm

This module contains gcc and the other files needed to compile.

Put the module into your Porteus modules folder, or optional folder and activate it.

EDIT: The 05-devel.xzm is technically a base module and should probably be moved to the porteus/base folder with the others. If you don't want it to be activated on booting, you can keep it in the porteus/optional folder and activate it when you wish which is the method I use.

User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

How to Install GCC

Post#3 by Rava » 20 Sep 2023, 23:35

roadie wrote:
20 Sep 2023, 19:52
The 05-devel.xzm is technically a base module and should probably be moved to the porteus/base folder with the others. If you don't want it to be activated on booting, you can keep it in the porteus/optional folder and activate it when you wish which is the method I use.
Since 05-devel.xzm is a large module, you should better not put it in your base/ folder unless you will compile stuff every time you run Porteus.

@Sam007 Make sure the 05-devel.xzm is from the same version than your Porteus. Because all such modules are named identically. Thus could be from 5.0i586; or for 4.0x86-64; or for 5.0rc2_x86-64 etcetera.
In your case you should only use a version for v5.0_x86-64

E.g. when you updated your Port system (e.g. in your case: Porteus XFCE v5.0 64-bit) Yay, another XFCE user :friends: - as seen via

Code: Select all

cat /etc/porteus/*
then use an updated 05-devel.xzm as well if it exists. If no updated version of 05-devel exists (often it doesn't) then use the correct one as described above. HTH.
Cheers!
Yours Rava

Post Reply