Skip to main content

Install gcc terbaru di ubuntu

 4.2. Downloading GCC

To begin with, let’s utilize the wget command to download the source code as a .tar archive from the official GCC website:

$ wget http://ftp.gnu.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.gz

or you go to the gcc website to check for new version of gcc and change a .tar archive accordingly.

http://ftp.gnu.org/gnu/gcc/

In the above link, we used 14.2.0 as the version to download since it’s the current latest version available for GCC.


After that, we use the tar command to extract the contents from the .tar archive to the current directory:

$ tar -xf gcc-14.2.0.tar.gz

Here, the -x option, short for –extract, extracts the contents from the archive and the -f option, short for –file, specifies the archive that contains the files to extract.

After extraction, a new subdirectory with the contents from the .tar archive appears in the working directory.

4.3. Preparing for Installation

Let’s navigate to the new subdirectory:

$ cd gcc-14.2.0

Then, we use the ./configure command to get the system ready for the installation:


$ ./configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --prefix=/usr/local/gcc-14.2.0 --enable-checking=release \
--enable-languages=c,c++ --disable-multilib --program-suffix=-14.2.0

Command completed successfully.

The last line suggests that the machine is ready for the installation.

4.4. Installing GCC

The final step is to build and install GCC on the system.

So, let’s build it by running the make command:

$ make

Finally, we install GCC on the machine:

$ sudo make install

After completion, we should have the utility successfully installed on the system.

Let’s perform a version check to verify the installation:

$******/gcc-14.2.0/bin/gcc-14.2.0 --version
gcc-14.2.0 (GCC) 14.2.0

Visibly, the latest version is now installed on the machine.

5. Conclusion

In this article, we’ve provided a detailed explanation of three methods that we can use to install GCC on Ubuntu.

By following any of these methods, we can seamlessly integrate GCC with a Ubuntu system and start compiling code.



Comments

Popular posts from this blog

Masalah Deassigned assigned hotspot mikrotik

Tiba-tiba dapat masalah user hotspot terputus dari jaringan dan otomatis internet terputus.  kemudian dilakukan pengcekan log dan didapatkan log mencurigakan dhcp1 deassigned .. dhcp1 assigned ... dhcp1 deassigned .. dhcp1 assigned ... dhcp1 deassigned .. dhcp1 assigned ... dan jumlahnya sangat banyak. Identifikasi dhcp1 adalah proses dhcp server meminjamkan (assigned) dan menarik kembali (deassigned) ip address ke perangkat di jaringan. setingnya di /ip dhcp server dengan mengacukan pada /ip pool dhcp_pool0 . TAPI hotspot mikrotik juga mengacu ke pool yang sama di /ip hotspot address-pool . Solusi: disable-kan dhcp server di hotspot. caranya masuk ke  /ip hotspot address-pool seting ke none. Sumber: https://forum.mikrotik.com/viewtopic.php?t=49054 Salam, Arie B. 

Merubah Akun Default SUPERUSER ( telcomadmin dan Support ) Pada Modem Huawei HG8245A Indihome

Tujuan merubah akun default modem huawei hg8245a ini adalah untuk melindungi modem dari tangan-tangan jahil yang mau merubah setingan modem. Klo modem ini digunakan di cafee, tentu yang terjadi adalah ketidaknyamanan menggunakan internet di cafe/warkop tersebut. Ok langsung saja, jadi perlu diketahui bahwasannya modem ini bisa diakses melalui IP 192.168.100.1 dan memiliki akun default yaitu: username: telecomadmin | password: admintelecom atau username: Support | password: theworldinyourhand Nah, coba saja salah satu akun diatas, insyaAllah bisa masuk dan mendapat akses SUPERUSER. Para teknisi telkom menggunakan akun ini untuk menseting modem-modem pelanggan tanpa perlu menanyakan password modem. Kedua akun diatas derajatnya lebih tinggi dibanding akun default yang tertulis di belakang modem, yang biasanya:  username: Admin | password: admin Baik, saya akan mejelaskan cara-cara merubah kedua akun default SUPERUSER tersebut. 1. Masuk ke modem HG8245A melalui web. bi...

Setingan WA201DK-NE Huawei fit to FAT

Sumber: facebook https://www.facebook.com/gilankyuda PANDUAN WA201DK-NE   Set IP Komputer 192.168.1.xx karena ip default bawaan AP 192.168.1.1 , gunakan IP selain IP 1.1   Download Putty,jalankan putty ssh ke 192.168.1.1 login user: admin password: hwap@com       CLI Command   ●      Setting MODE IP DHCP   AP Ketik command:   configure ip ap ip-mode dhcp exit reset board     ●      Setting MODE IP STATIC AP show Ketik command:   Configure ip ap ip-mode static ip ap address 192.168.4.3 255.255.255.0 192.168.4.1 exit reset board   -         192.168.4.3 adalah IP AP -         255.255.255.0 adalah subnet mask -         192.168.4.1 adalah gateway   Reboot AP biarkan sampe selesai rebootnya, untuk mengc...