Yuav Ua Li Cas Rau Nruab Perl Modules

Cov txheej txheem:

Yuav Ua Li Cas Rau Nruab Perl Modules
Yuav Ua Li Cas Rau Nruab Perl Modules

Video: Yuav Ua Li Cas Rau Nruab Perl Modules

Video: Yuav Ua Li Cas Rau Nruab Perl Modules
Video: Yuav Nqi Peev Lis Cas Thiaj Lis Zoo Rau Koj Txoj Kev Lag Luam? - By Tayvee lyk 2024, Hlis ntuj nqeg
Anonim

Ib qho ntawm qhov tseem ceeb ntawm Perl cov lus sau ua lus yog qhov muaj ntawm cov npaj tau tsim (cov tsev qiv ntawv) uas yooj yim rau kev ua haujlwm ntawm cov programmer. Cov qauv tau yooj yim nruab ntawm lwm lub tsev qiv ntawv CPAN lossis los ntawm tus thawj tswj hwm pob ActivePerl.

Yuav ua li cas rau nruab Perl modules
Yuav ua li cas rau nruab Perl modules

Cov Lus Qhia

Kauj ruam 1

CPAN module tsim los ua haujlwm nrog cov txuas ntxiv txuas thiab tso cai rau koj cia li rub tawm cov pob tsim nyog thiab cov kev vam khom, cov ntaub ntawv rub tawm, tshawb xyuas qhov hloov tshiab, thiab lwm yam. Txhawm rau nruab ib qho module los ntawm hauv Unux, nkag mus rau kab hauv qab no ntawm kab kab hais kom ua (yog tias koj siv lub plhaub graphical, siv cov Terminal program hauv cov qauv thov ntu): perl –MCPAN'e 'install' Lo lus txib no txhais tau tias yog cov kab lus perl tsis tu ncua nrog kab: siv CPAN; nruab ('module npe')

Kauj ruam 2

Lub kaw lus cia li kuaj tag nrho cov dependencies, txhim kho qhov tshiab uas yuav tsum tau ua thiab thov teeb tsa.

Kauj ruam 3

ActivePerl tseem muaj nws tus thawj tswj hwm pob, hu ua ppm, uas tau pib nrog cov lus txib nram qab no: c_perl_directory inppm.bat Tom qab khiav cov ntaub ntawv no, console yuav tshwm sim, qhov twg koj tuaj yeem nkag mus rau cov lus qhia tsim nyog rau kev teeb tsa lub installation lossis tshem tawm. Txhua lub tsev qiv ntawv tau rub tawm los ntawm ActivePerl site.

Kauj ruam 4

Hloov mus rau hom kab hais kom ua (rau Windows - "Pib" - "Txhua qhov haujlwm" - "Khoom siv" - "Kab kab") thiab nkag mus rau qhov kev thov: ppm nruab https:// full_address _to_module / module.ppd

Kauj ruam 5

Yog tias koj siv Linux, rub tawm cov qauv uas yuav tsum tau ua hauv.tar.gz hom ntawv thiab tsis sau cov ntsiab lus ntawm cov ntawv rau hauv cov ntawv yuav tsum hloov thiab hloov mus rau qhov chaw kab ntawv nrog lub chaw rub tawm hauv qhov Terminal: cd path_to_unpacked_folder Tom qab ntawd hais kom meej cov lus txib: perl makefile plmake && ua kev sim && ua kom nruab

Pom zoo: