Mokhoa oa ho kenya CMake ho Rocky Linux 9

CMake ke moqapi ea tsebahalang ea tsebahalang haholo lilemong tsa morao tjena. Lebaka le ka sehloohong la ho tsebahala ha eona ke hore e na le mohloli o bulehileng le sethala sa marang-rang, kahoo bahlahisi ba ka e sebelisa ho sistimi efe kapa efe eo ba e batlang mme ha ba hloke ho tšoenyeha ka litefiso tsa laesense. Ntle le moo, CMake e ka hlahisa li-wrappers le li-executable ka motsoako ofe kapa ofe, oa e etsa hore e feto-fetohe haholo.

Le ha bahlahisi ba bang ba etselitsoe ho sebetsa feela ka lipuo tse itseng kapa lits'ebetso tse sebetsang, CMake e ka sebelisoa ka puo efe kapa efe ea lenaneo le sethaleng sefe kapa sefe. Sena se etsa hore e be khetho e nepahetseng bakeng sa bahlahisi ba batlang ho fetoha le maemo ho sebetsa mererong e fapaneng. CMake le eona e lula e nchafatsoa ka likarolo tse ncha le lintlafatso, kahoo bahlahisi ba ka kholiseha hore ba sebelisa sesebelisoa sa morao-rao se lulang se le teng. Ka melemo ea eona e mengata, ha ho makatse hore ebe CMake e se e tumme hakana lilemong tsa morao tjena.

Thutong e latelang, u tla ithuta ho kenya CMake ho Rocky Linux 9 workstation kapa seva u sebelisa terminal line line ka mekhoa e 'meli: dnf mookameli oa sephutheloana ka mokhoa oa tlhaho oa app-stream kapa mokhoa oa ho bokella.

Ntlafatsa Rocky Linux

Ntlha ea pele, ntlafatsa tsamaiso ea hau ho netefatsa hore liphutheloana tsohle tse teng li ntse li le teng.

sudo dnf upgrade --refresh -y

Kenya CMake - DNF Method

Mokhoa oa pele o khothalletsoang basebelisi ba bangata o tla kenya CMake ho tsoa ho appstream. Phetolelo ena e khothaletsoa ntle le haeba o kopa mofuta o itseng kapa oa morao-rao, oo u tla o hloka ho sebelisa mokhoa oa ho bokella.

Ho qala ho kenya, sebelisa taelo e latelang.

sudo dnf install cmake

Ha e se e kentsoe, netefatsa ts'ebetso ka ho hlahloba mofuta oa CMake.

cmake --version

Kenya CMake - Kopanya Mohloli oa Mohloli

Khetho ea bobeli bakeng sa basebelisi ba hlokang mofuta oa morao-rao oa CMake ke ho khoasolla mohloli le ho o bokella. Ona ke mokhoa o motle kaha o o lumella ho kenya mofuta o mocha ka ho fetesisa, empa o tla ka litšenyehelo tsa ho hopola ho jarolla le ho bokella hape bakeng sa liapdeite.

Pele o tsoela pele ho ea pele, kenya litšepiso tse latelang tse hlokahalang ho sistimi ea hau u sebelisa taelo e latelang.

sudo dnf install gcc gcc-c++ openssl-devel bzip2-devel libffi-devel zlib-devel make -y

Pele, etela file ea Github e hlahisa leqephe 'me u fumane sehokelo sa morao-rao.

Se ke oa lebala ho etsa sena, kaha sehokelo sa mehlala se ka tlase se tla siuoa ke nako ka nako.

Ka mor'a moo, khoasolla li-archive u sebelisa wget taelo.

Mohlala feela:

wget https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0.tar.gz

Ntša litaba tsa polokelo ka ho sebelisa taelo e latelang.

tar -zxvf cmake-{version number}.tar.gz

Joale CD e kene bukeng e nkiloeng.

cd cmake-{version number}

Ka boikhethelo, tsamaisa bukana ea CMake ka tlase / khetha / sebaka.

sudo mv cmake* /opt/

Joale, ea ho directory.

cd /opt/cmake-{your version}

Karolong e latelang, u tla phetha faele ea Bootstrap script. Haeba u kopana le bothata bofe kapa bofe, etsa bonnete ba hore litšepiso tse boletsoeng li kentsoe.

sudo ./bootstrap

Sephetho sa mohlala hang ha se felile:

Mokhoa oa ho kenya CMake ho Rocky Linux 9

Script ea Bootstrap e ka nka metsotso e seng mekae. Ha u qetile, sebelisa sesebelisoa etsa taelo ho haha ​​sephutheloana.

sudo make

Mokhoa ona o ka nka metsotso e seng mekae ho isa ho metsotso e ka bang leshome ho etsa kofi kapa ho noa seno.

Mohlala ha e felile:

Mokhoa oa ho kenya CMake ho Rocky Linux 9

E latelang, kenya CMake u sebelisa tse latelang etsa taelo ea ho kenya.

sudo make install

Mohlala oa tlhahiso:

Mokhoa oa ho kenya CMake ho Rocky Linux 9

Hang ha ts'ebetso e felile, hlahloba mofuta oa CMake.

Ha u se u qetile, netefatsa mofuta oo u sebelisa taelo e latelang

cmake --version

Mohlala oa tlhahiso:

Mokhoa oa ho kenya CMake ho Rocky Linux 9

Maikutlo le Qetello

Ka bokhuts'oane, CMake ke moqapi o matla le o feto-fetohang o fumaneng botumo bo boholo lilemong tse 'maloa tse fetileng. Sebopeho sa eona se bulehileng le sa sethala se etsa hore e be khetho e khahlehang bakeng sa bahlahisi ba maemo ohle. Ka lehlakoreng le leng, bokhoni ba eona ba ho hlahisa li-wrappers le li-executable bo e etsa khetho e ntle bakeng sa morero ofe kapa ofe.

Ho bala ho eketsehileng, etela Litokomane tsa molao tsa CMake.



Latela LinuxCapable.com!

Na u rata ho fumana liapdeite? Re latele ho e 'ngoe ea li-account tsa rona tsa litaba tsa sechaba!