I've just upgraded from MX 19.4 to 21.3 and need to recompile my C-language apps. Immediately after installing I tried compiling but gcc was not found. So I brought up the MX Package Installer and installed gcc-10 from the Enabled Repos tab. The install completed without error but gcc still does not exist in /usr/bin (gcc-10 does).
I imagine I've left an important step out but, after scanning the wiki, I'm still clueless. Can someone tell/link me to the correct steps?
TIA,
mike
how to install gcc for development work [Solved]
- Eadwine Rose
- Administrator
- Posts: 14616
- Joined: Wed Jul 12, 2006 2:10 am
Re: how to install gcc for development work
Please share your Quick System Info, thanks.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030
Re: how to install gcc for development work
Code: Select all
System: Kernel: 5.10.0-21-amd64 [5.10.162-1] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-21-amd64
root=UUID=<filter> ro quiet splash
Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7
dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower January 15 2023
base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Desktop System: Compaq Presario 061 product: EL435AA-ABA SR1720NX NA610
v: 0nx1411RE101AMBEM00 serial: <filter>
Mobo: ASUSTek model: Amberine M v: 1.03 serial: <filter> BIOS: Phoenix v: 3.13
date: 11/15/2005
CPU: Info: Single Core model: AMD Sempron 3500+ bits: 64 type: UP arch: K8 rev.E
family: F (15) model-id: 2F (47) stepping: 2 microcode: N/A cache: L2: 256 KiB
flags: lm nx pae sse sse2 sse3 bogomips: 3979
Speed: 1000 MHz min/max: 1000/2000 MHz Core speed (MHz): 1: 1000
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass status: Not affected
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics: Device-1: AMD RS480 [Radeon Xpress 200 Series] vendor: Hewlett-Packard driver: radeon
v: kernel bus-ID: 01:05.0 chip-ID: 1002:5954 class-ID: 0300
Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.18.0 driver:
loaded: ati,radeon unloaded: fbdev,modesetting,vesa display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1280x1024 s-dpi: 96 s-size: 338x270mm (13.3x10.6")
s-diag: 433mm (17")
Monitor-1: VGA-0 res: 1280x1024 hz: 60 dpi: 96 size: 337x270mm (13.3x10.6")
diag: 432mm (17")
OpenGL: renderer: ATI RS480 v: 2.1 Mesa 20.3.5 direct render: Yes
Audio: Device-1: AMD IXP SB400 AC97 Audio vendor: Hewlett-Packard driver: snd_atiixp v: kernel
bus-ID: 00:14.5 chip-ID: 1002:4370 class-ID: 0401
Sound Server-1: ALSA v: k5.10.0-21-amd64 running: yes
Sound Server-2: PulseAudio v: 14.2 running: yes
Network: Device-1: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter vendor: Hewlett-Packard
driver: 8139too v: 0.9.28 modules: 8139cp port: dc00 bus-ID: 02:03.0 chip-ID: 10ec:8139
class-ID: 0200
IF: eth0 state: unknown speed: 100 Mbps duplex: full mac: <filter>
Drives: Local Storage: total: 149.05 GiB used: 8.04 GiB (5.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST3160021A size: 149.05 GiB
block-size: physical: 512 B logical: 512 B speed: <unknown> type: N/A serial: <filter>
rev: 8.11 scheme: MBR
Partition: ID-1: / raw-size: 146.17 GiB size: 142.81 GiB (97.71%) used: 8.04 GiB (5.6%) fs: ext4
dev: /dev/sda1 maj-min: 8:1
Swap: Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 2.87 GiB used: 1.5 MiB (0.1%) priority: -2
dev: /dev/sda2 maj-min: 8:2
Sensors: System Temperatures: cpu: 40.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos: Packages: note: see --pkg apt: 2073 lib: 1069 flatpak: 0
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian bullseye main contrib non-free
2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bullseye main non-free
Info: Processes: 176 Uptime: 1h 24m wakeups: 1 Memory: 1.87 GiB used: 720.1 MiB (37.5%)
Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: N/A
alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06
Boot Mode: BIOS (legacy, CSM, MBR)
Re: how to install gcc for development work [Solved]
Why didn't you install gcc? It's available in the repos. I think that actually just creates a link to /usr/bin/gcc-10 but that's all you need...
Re: how to install gcc for development work
Hi Adrian,
You are right, that's all I needed to do. Problem solved.
I didn't install the "gcc" package yesterday because it was described as being for version 4:10.2,1-1 which I stupidly misinterpreted as version 4. Why install version 4 when 9 and 10 are available, right?
A thousand pardons for the noise and thank you for your response!
-mike
You are right, that's all I needed to do. Problem solved.
I didn't install the "gcc" package yesterday because it was described as being for version 4:10.2,1-1 which I stupidly misinterpreted as version 4. Why install version 4 when 9 and 10 are available, right?
A thousand pardons for the noise and thank you for your response!
-mike
Re: how to install gcc for development work
Please click on the post that solved the issue and then on the check mark at the upper right of that post.
You do not have the required permissions to view the files attached to this post.
Forum Rules
Guide - How to Ask for Help
richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB
Guide - How to Ask for Help
richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB
Re: how to install gcc for development work
No worries, Debian package naming and versioning can be confusing sometime.
Re: how to install gcc for development work
Richb:
I checkmarked Adrian's first reply.
I checkmarked Adrian's first reply.