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...

migrasi data user hotspot mikrotik dengan export terse

Selamat Malam, Assalamuallaikum Wr. Wb. Malam ini kebetulan lagi nemu solusi dari permasalahan yang sedang saya hadapi yaitu upgrade perangkat mikrotik dari RB Hap AC2 ke RB 450gx4. Sebelum lupa saya buru buru mencatat solusi ini. Permaasalahan upgrade ini yaitu data hotspot di RB Hap AC2 tidak bisa dipindah ke RB 450gx4 melalui fitur restore maupun fitur import file rsc . Anehnya untuk bagian selain hotspot, dengan import file rsc saja bisa selesai tapi bagian hotspot tidak bisa. Jadi solusi untuk permasalahan ini dengan menggunakan fitur export terse dan import terse . Namun untuk menggunakan kedua fitur itu harus menyiapkan hal-hal sebagai berikut: 1. ambil rsc queue di RB Hap AC2 dengan perintah /queue export terse file-name=queue.rsc 2. ambil rsc hotspot di RB Hap AC2 dengan perintah /ip hotspot export terse file-name=hotspot.rsc 3. buka file rsc hotspot di notepad dan hapus baris user admin kemudian simpan (save) file rsc hotspot tadi. 4. copy kan file queue.rsc ...