Sida loo rakibo GCC on Ubuntu
GCC waa mid ka mid ah aaladaha ay jecel yihiin ee ay adeegsadaan horumariyayaasha ka shaqeeya madal Linux . Waxay u adeegtaa sidii isku-dubarid dhowr-sameeyayaal oo loogu talagalay luqadaha barnaamijyada caanka ah sida Java , C, C++, Fortran , iyo qaar kaloo badan. Haddii aad ku bilaabayso safarkaaga Linux , maxay tahay doorashada ka fiican Ubuntu . Ubuntu waa kan ugu caansan dhammaan Linux qaybinta halkaas. Waxaa la og yahay in ay fududahay in la barto iyada oo aan la dhimin sifooyinka hore ee waxyaabaha. Marka, haddii aad u baahan tahay inaad ogaato sida loogu rakibo GCC Ubuntu kaaganidaamka, maqaalkani waa meesha ugu fiican ee laga bilaabo. Waxaan ku baari doonaa sida loo soo dejiyo oo loogu rakibo GCC Ubuntu qaybaha hoose. Laakin intaa ka hor aan wax badan ka ogaano GCC .
Sida loo rakibo GCC on Ubuntu(How to Install GCC on Ubuntu)
GCC ( GNU Compiler Collection ) waa qalabyo loogu talagalay ururinta koodka isha ee luuqadaha barnaamijyada kala duwan ee loo yaqaan binaries, fulinta, ama maktabadaha. GCC waa kombuyuutar-kumbuyuutar kaas oo laga yaabo in lagu rakibo Ubuntu .
- Isku- duwaha GCC(GCC compiler) , iyo sidoo kale maktabado badan iyo qalabyo kale oo lagama maarmaanka u ah abuurista codsiyada, ayaa lagu daray kaydka Ubuntu ee aasaasiga ah sida dhisme-muhiim ah(is included in the default Ubuntu repository as build-essential) .
- C, C++, Java, Objective-C, Go, Fortran, Ada , iyo luuqado badan oo barnaamij ah (programming languages) waxa taageera GCC(are supported by GCC) .
- Mashruucyo badan oo il furan, oo ay ku jiraan utility GNU iyo kernel Linux, waxay u baahan yihiin GCC inay dhisto koodka(GNU utilities and the Linux kernel, require GCC to build their code) .
Casharradan ayaa ku tusi doona sida loo sameeyo isku-xidhaha GCC ee Ubuntu 18.04 . Waxaan ku bari doonaa sida loo rakibo nooca xasilloon ee qaybinta iyo sidoo kale nooca ugu dambeeyay ee GCC . Tallaabooyinka waxay la mid yihiin Ubuntu 16.04 iyo qaybinta ku saleysan Ubuntu, sida Kubuntu , Linux Mint , iyo OS hoose(Elementary OS) .
Xusuusin:(Note:) Waa in laguu soo galaa xidid ahaan ama isticmaale leh mudnaanta sudo si aad u abuurto kayd cusub oo aad ugu rakibto baakadaha nidaamkaaga Ubuntu .
Habka 1: Iyadoo loo marayo Ubuntu Terminal(Method 1: Through Ubuntu Terminal)
Si aad GCC ugu dejiso Ubuntu , waxaad u baahan doontaa inaad soo dejiso oo aad rakibto xidhmada muhiimka ah ee dhismaha. Fur daaqad terminal si aad u soo dejiso gcc ubuntu. Raac tillaabooyinka la bixiyay si aad GCC ugu rakibto Ubuntu iyada oo loo marayo Terminalka(Terminal) .
Xulashada 1: Ku rakib Nooca GCC ee Gaarka ah(Option 1: Install a Particular GCC Version)
1. Taabo Ctrl + Alt + T keys si aad u furto daaqad terminal ah oo ku taal Desktop -ka .
Xusuusin:(Note:) Haddii kale, aad menu-ka app oo raadi Terminal .
2. Isticmaal amarka ku rakibida hoose si aad ugu rakibto xidhmada muhiimka ah ee Ubuntu marka uu furmo daaqada terminaalka.
sudo apt install dhis-muhiim ah(sudo apt install build-essential)
Fiiro gaar ah:(Note:) Amarka Sudo wuxuu ku weydiinayaa eraygaaga sirta ah. Isticmaalayaashu waxay isticmaali karaan amarkan si ay u socodsiiyaan hal hawl oo xidid ah.
3.Ubuntu waxa ay ku waydiin doontaa furahaga (password)Geli eraygaaga sirta ah(password) ee isticmaalaha si aad u sii wadato
4. Marxaladda terminalku waxay soo ururin doontaa dhammaan ku tiirsanaanta xirmada muhiimka(build-essential) ah marka aad keento eraygaaga sirta ah. Ubuntu ayaa marka xigta ku waydiin doonta inaad rabto inaad xidho xidhmo iyo in kale. Si aad u sii waddo, taabo furaha Y. Markaad ku dhufatid furaha Y , Ubuntu wuxuu bilaabi doonaa ku rakibida GCC mashiinkaaga.
5. Habkani waa inuu qaataa wax ka badan dhowr daqiiqo. Amarka man gcc , waxaad ka dhex baadh kartaa dukumeentiyada GCC ka dib marka nidaamka la dhammeeyo.
Xulashada 2: Ku rakib noocyo badan oo GCC ah(Option 2: Install Multiple GCC Versions)
Iyadoo inta badan isticmaalayaasha Ubuntu ay ku qanacsan yihiin xirmada muhiimka ah ee dhismaha sababtoo ah waxay ka kooban tahay GCC 10 , maaha nooca kaliya ee GCC ee la heli karo. Taageerada luuqadaha dheeriga ah, waxqabadka la wanaajiyay, iyo shaqaynta la fidiyay ayaa dhamaantood lagu daray noocyada cusub ee isku xidhka GCC(GCC) . Waxaad haysataa ikhtiyaarka ah inaad ku rakibto noocyo kala duwan oo GCC ah Ubuntu . Waa kan sida loo soo dejiyo gcc ubuntu.
1. Marka hore(First) , on desktop Ubuntu , fur daaqad terminal ah.(terminal)
2. Marka ay furto, adeegso amarkan soo socda(following) si aad uga baadho kaydadka software- ka Ubuntu ee xirmooyinka GCC ee la heli karo:(GCC)
raadinta habboon gcc(apt search gcc)
3. Ka raadi(Search) isla markiiba nooca GCC ee( GCC version) aad rabto inaad ku rakibto Ubuntu. GCC 7, GCC 8, 9, iyo 10(GCC 7, GCC 8, 9, and 10 ) ayaa diyaar u ah in lagu rakibo.
4. Ku rakib GCC adoo isticmaalaya habraaca ku habboon ee hoos ku(apt install instructions) qoran marka aad hesho nooca aad rabto inaad ku rakibto PC-gaaga Ubuntu. gcc-7, gcc-8, gcc-9, iyo gcc-10 waa xirmooyinka GCC.
5. Si aad ugu rakibto nooca GCC 7(version 7) ee Ubuntu.
sudo apt install gcc-7 g++-7
6. Si aad ugu rakibto nooca GCC 8(version 8) ee Ubuntu.
sudo apt install gcc-8 g++-8
7. Si aad ugu rakibto nooca GCC nooca 9(version 9) ee Ubuntu.
sudo apt install gcc-9 g++-9
8. Iyadoo la rakibayo xirmada muhiimka ah ee dhismaha ayaa si adag loogu talinayaa in GCC 10 uu ku shaqeeyo Ubuntu , maaha doorashada kaliya ee lagu sameeyo. Ku rakibida xirmooyinka gcc-10 iyo g++-10 waxay sidoo kale rakibi doontaa GCC 10 .
sudo apt install gcc-10 g++-10
Sidoo kale akhri: (Also Read:) 20ka ugu Fiican Linux Distros ee 2022(20 Best Lightweight Linux Distros of 2022)
Habka 2: Iyadoo loo marayo Maamulaha Xidhmada Synaptic(Method 2: Through Synaptic Package Manager)
Haddii aadan rabin inaad isticmaasho konsole si aad GCC ugu rakibto Ubuntu , waxaad isticmaali kartaa Maareeyaha Xidhmada Synaptic(Synaptic Package Manager) si aad u soo dejiso GCC gudaha ubuntu.
Xulashada 1: Ku rakib Nooca GCC ee Gaarka ah(Option 1: Install a Particular GCC Version)
Raac tillaabooyinkan si aad GCC ugu rakibto Maareeyaha Xidhmada Synaptic(Synaptic Package Manager) .
1. Si aad u bilawdo, hubi in Synaptik(Synaptic) la rakibay. Si aad u hesho Synaptic , aad barnaamijka Software-ka Ubuntu(Ubuntu Software) oo raadi Synaptic , ka dibna ku rakib.
2. Fur Maareeyaha Xidhmada Synaptika(Synaptic Package Manager) adiga oo ka dhex raadiya liiska abka marka la rakibo.
3. Kadibna, dhanka kore ee midig ee shaashadda, ka raadi(search) badhanka raadinta.
4. Si aad u muujiso natiijooyinka raadinta, dooro badhanka raadinta Synaptik(Synaptic search button) iyo gelinta muhiimka ah(build-essential) oo ay ku xigto furaha Gelida(Enter) .
5. Ka eeg natiijooyinka raadinta Synaptik si loo dhiso-muhiim ah(build-essential) .
6. Marka aad aqoonsato, midig-guji oo dooro Naqshadaynta(Designate for installation) ikhtiyaarka rakibida si aad u calaamadiso xidhmada muhiimka ah ee dhisidda Synaptic.
7. Gudaha Synaptic, hel badhanka Codso(Apply) oo guji si aad u bilowdo rakibaadda GCC ee (GCC)Ubuntu .
Sidoo kale akhri: (Also Read:) Sida loo rakibo Linux Bash Shell On Windows 10(How To Install Linux Bash Shell On Windows 10)
Xulashada 2: Ku rakib noocyo badan oo GCC ah (Option 2: Install Multiple GCC Versions )
Si aad ugu rakibto nooca GCC oo aan ahayn kan la keenay xirmada muhiimka ah ee dhismaha Ubuntu , samee tillaabooyinka hoose.
1. Marka hore, fur Maareeyaha Xidhmada Synaptic(Synaptic Package Manager) .
2. Marka Synaptik uu furmo, dhagsii badhanka raadinta(search button) .
3. Kadib dooro mid ka mid ah alaabta(products) liiska hoose oo geli sanduuqa raadinta(search box) .
- GCC 7: gcc-7, g++-7
- GCC 8: gcc-8, g++-8
- GCC 9: gcc-9, g++-9
- GCC 10: gcc-10, g++-10
4. Si aad u rakibto xidhmada GCC ee(GCC package(s)) aad ka heshay Synaptic , ku dhufo midigta oo dooro badhanka Codso(Apply) .
5. Ku soo celi nidaamkan markaad u baahan tahay si aad ugu rakibto noocyo badan oo GCC ah sidaad jeceshahay Ubuntu.
Su'aalaha Inta Badan La Isweydiiyo (FAQs)(Frequently Asked Questions (FAQs))
Q1. GCC horaa ma loogu rakibay Ubuntu kaaga?(Q1. Is GCC already installed on your Ubuntu?)
Jawaab. (Ans. )Dhammaan noocyada desktop -ka Ubuntu , xirmada (Ubuntu)GCC waxaa lagu rakibay si caadi ah.
Q2. Amarkee ayaa loo isticmaalaa in lagu rakibo GCC?(Q2. Which command is used to install GCC?)
Jawaab. (Ans. )Install GNI C/C++ ( GCC ) oo loo baahan yahay libs adigoo isticmaalaya amarka 2date(up2date) , yum command, ama apt-get amarka, taas oo ku xidhan Linux distro kaaga.
Q3. Waa maxay ujeedada Ubuntu?(Q3. What is the purpose of Ubuntu?)
Jawaab. (Ans. )Ubuntu waxay haysataa wax kasta oo aad u baahan tahay si aad u maamusho shirkaddaada, dugsiga, gurigaaga, ama ganacsigaaga. Dhammaan software-yada ugu muhiimsan, sida qolka xafiiska, daalacashada, iimaylka, iyo barnaamijyada warbaahinta, horay ayaa loo rakibay, iyo Xarunta Software-ka Ubuntu waxay(Ubuntu Software Centre) leedahay boqollaal ciyaaro iyo codsiyo dheeraad ah.
lagu taliyay:(Recommended:)
- Sida loo helo badhanka hurdada ee Windows 10(How to Find Sleep Button on Windows 10)
- Sida GIF-yada loogu diro Slack(How to Send GIFs in Slack)
- Sida Loo Haysto Xaaladda Kooxaha Microsoft La heli karo(How to Keep Microsoft Teams Status Available)
- Sida loo soo diro Koodhka Skype oo leh qaab habboon(How to Send Skype Code with Proper Format)
Waxaan rajeyneynaa in maqaalkani uu noqon doono mid waxtar leh si loo ogaado sida loo rakibo gcc Ubuntu(how to install gcc Ubuntu) . Waxaad ka heli kartaa maqaallo badan oo kale oo badan oo la xiriira teknoolojiyadda mareegahayaga. Haddii aad hayso wax talo iyo tusaale ah oo ku saabsan maqaalkan, waxaad nagula soo xiriiri kartaa qaybta faallooyinka ee hoose.
Related posts
10ka Emulators Android ugu Wanaagsan Windows iyo Mac
Sida Loo Helo Liiska Rajada Amazon Qof
Sida loo cadaadiyo PDF si loo yareeyo cabbirka faylka
Sida loo ciyaaro Chess Titans ee Windows 10
Sida Loo Haysto Xaaladda Kooxaha Microsoft La heli karo
Sida Loo Sameeyo Hal Bog Muuqaal Dhuleed oo Word ah
Sida gacanta loogu daro ciyaarta khibradda GeForce
3 siyaabood oo loo wadaago gelitaanka Wi-Fi iyada oo aan la muujin erayga sirta ah
Si fudud uga guuri iimaylada hal akoon oo Gmail ah una guuri mid kale
Sida loo hagaajiyo Qaladka Codsiga 0xc0000005
Sida loo soo dejiyo, loo rakibo, oo loo isticmaalo WGET Windows 10
Sida Loo Arko Sawirada Qarsoon Ee Facebook
Ku dar dhammaan xisaabaadkaaga iimaylka hal sanduuq oo Gmail ah
Hagaaji Twitch Aan Ka Shaqeyn Chrome
3 Siyaabood Oo Looga Saarayo Sawir-qaadista Mareegaha Kasta
Muuji Liiska Xidhmooyinka Software-ka ee Dhawaan lagu Rakibay Ubuntu
Sida loo joojiyo ama loo tirtiro akoonkaaga Instagram-ka (2022)
Sida Loo Isticmaalo Bookmarks on Twitter
Waa maxay siyaasadda hubinta asalka ee Amazon?
Sida loo tirtiro PhonePe taariikhda wax kala iibsiga