Cov txheej txheem:

Tsev Brew - Mac: 14 Kauj Ruam
Tsev Brew - Mac: 14 Kauj Ruam

Video: Tsev Brew - Mac: 14 Kauj Ruam

Video: Tsev Brew - Mac: 14 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Tsev Brew - Mac
Tsev Brew - Mac

Cov Lus Qhia no yuav siv rau hauv ob peb lwm cov ntaub ntawv thiab yog li kuv txiav txim siab cais nws tawm txhawm rau tiv thaiv kev nce qib hauv lwm Cov Lus Qhia Kuv yuav sau.

Cov Lus Qhia no yuav coj koj mus txog cov txheej txheem rau teeb tsa HomeBrew uas yuav tso cai rau ntau tus UNIX daim ntawv thov raug teeb tsa ntawm macOS.

Kauj ruam 1: Nruab Xcode

Nruab Xcode
Nruab Xcode

Tag nrho cov txheej txheem vam khom rau Xcode raug teeb tsa tab sis xov xwm zoo yog nws tsis xav tau tag nrho version ntawm Xcode los teeb tsa.

Txawm li cas los xij, txhawm rau kev yooj yim Kuv yuav pom zoo rub tawm tag nrho version ntawm Xcode los ntawm Mac App Store raws li qhov no yuav teeb tsa tus lej ntawm cov cuab yeej txhim kho muaj zog rau macOS thaum tseem txhim kho cov kab hais kom ua cov cuab yeej xav tau rau Tsev Brew.

Thaum rub tawm tau khiav lub app thiab lees txais cov lus sib tham uas tuaj. Qhov no yuav tsum suav nrog txhim kho cov cuab yeej kab hais kom ua.

Kauj ruam 2: Khiav Terminal

Khiav Terminal
Khiav Terminal

Kuv siv macOS Sierra thiaj li khiav Terminal Kuv tsuas yog nyem Rocketship hauv Dock tom qab ntawd hauv Launchpad window Kuv nyem Lwm yam tom qab ntawd nrhiav thiab nyem rau ntawm Terminal.

Kauj Ruam 3: Txhim Kho Brew

Txhim kho Brew
Txhim kho Brew

Luam thiab paste cov cai hauv qab no rau hauv Terminal qhov rai:

/usr/bin/ruby -e $ (curl -fsSL

Qhov no yuav rub tawm thiab teeb tsa HomeBrew los ntawm kab hais kom ua.

Kauj Ruam 4: Nias Rov Qab

Nias Rov Qab
Nias Rov Qab

Koj yuav tau txais tos nrog lub vijtsam uas qhia koj tias yuav muaj dab tsi tshwm sim.

Cias ua raws qhov kev ceeb toom kom nias tus yuam sij RETURN

Kauj ruam 5: Ntaus koj tus Password

Sau koj tus Password
Sau koj tus Password

Thaum koj teeb tsa koj lub tshuab nws yuav tau nug koj kom tsim lub npe siv thiab tus password.

Tus password koj yuav tsum nkag mus yog tus no thiab tsuas yog tus lej no.

Thaum nkag mus rau tus password koj yuav tsis pom ib qho cim qhia txog tus password yog li cas thiaj li paub tseeb tias koj tau txais nws raug.

Nias RETURN tus yuam sij thaum koj tau ntaus tus password.

Kauj Ruam 6: Tsuas Cia Nws Ua Haujlwm

Cia Cia Nws Khiav
Cia Cia Nws Khiav

Cov txheej txheem no yuav siv qee lub sijhawm thiab tsis muaj ib yam dab tsi uas koj tuaj yeem ua tau tam sim ntawd thiab rub ib khob kas fes (lossis tshuaj yej yog tias koj muaj kev txawj ntse li kuv;-)).

Kauj Ruam 7: Ua tiav - Txheeb Ntawm

Tiav - Sort Of
Tiav - Sort Of

Kev teeb tsa tiav tab sis tsis tiav.

Muaj ob peb txoj kev xaiv uas yuav tsum tshwm sim.

Kauj Ruam 8: Ntxiv Txoj Hauv Kev rau Koj Cov Ntaub Ntawv Terminal

Ntxiv Txoj Hauv Kev rau Koj Lub Tsev Haujlwm Profile
Ntxiv Txoj Hauv Kev rau Koj Lub Tsev Haujlwm Profile

Ntau UNIX cov lus txib teeb tsa sab nrauv ntawm macOS tsis tuaj yeem pom thiab koj yuav tau txais yuam kev txog cov lus txib tsis pom. Nov yog qhov kho yooj yim los ntawm kev ntxiv txoj hauv kev. Kev zoo nkauj ntawm HomeBrew yog tias nws siv txoj hauv kev zoo ib yam rau txhua yam yog li nws tseem yuav xav tau ntxiv rau koj li Terminal profile.

Cias luam thiab muab lo lus txib no mus rau Terminal thiab nias RETURN:

echo export PATH = '/usr/local/bin: $ PATH' >> ~/.bash_profile

Qhov no yuav tsim cov ntawv sau uas Terminal nyeem. Raws li Terminal tau khiav lawm nws yuav tsis rov nyeem cov ntawv no yooj yim dua li hais kom ua W ces nias Command N.

Qhov no yuav kaw lub qhov rais uas twb muaj lawm ces qhib lub tshiab.

TSIS TXHOB NTSHUAM Q li qhov no yuav kaw daim ntawv thov. Yog tias koj ua qhov no yooj yim rerun Terminal.

Kauj Ruam 9: Hu Tus Kws Kho Mob

Hu rau Tus Kws Kho Mob
Hu rau Tus Kws Kho Mob

Tam sim no tias HomeBrew tau teeb tsa thiab Terminal muaj txoj hauv kev raug teeb tsa koj xav tau kom ntseeg tau tias HomeBrew zoo mus.

Kev txheeb xyuas yooj yim yog raws li hauv qab no:

brew kws kho mob

Kauj ruam 10: Npaj rau Brew

Npaj txhij rau Brew
Npaj txhij rau Brew

Yog tias tsis muaj teeb meem koj yuav tsum pom cov lus

Koj lub cev npaj txhij rau brew

Kauj ruam 11: Hloov Brew

Hloov tshiab Brew
Hloov tshiab Brew

Txawm hais tias koj nyuam qhuav tau teeb tsa HomeBrew tuaj yeem hloov kho cov ntaub ntawv thaum txheej txheem yog li ntaus:

brew hloov tshiab

Kauj Ruam 12: Txhua Yam Zoo

Txhua Yam Zoo
Txhua Yam Zoo

Yog tias txhua yam zoo ces muaj ib lo lus txib kawg

Kauj Ruam 13: Kev hloov kho tshiab tsis zoo ib yam li hloov kho tshiab

Kev hloov kho tshiab tsis zoo ib yam li hloov tshiab
Kev hloov kho tshiab tsis zoo ib yam li hloov tshiab

Hom:

brew txawj tej yam ntxiv

Qhov no teeb tsa tom qab cov khoos phis tawj loj tsis hloov pauv nyob rau tam sim no. Xav txog nws raws li kev txhim kho macOS Sierra los ntawm macOS El Capitan tsis txhob txhim kho macOS El Capitan 10.11.1 thiab lwm yam.

Kauj ruam 14: Thaum kawg Txhim Kho

Thaum kawg Txhim Kho
Thaum kawg Txhim Kho

Tam sim no HomeBrew tau ua tiav kev teeb tsa, tau teeb tsa kom pom txhua lub sijhawm koj siv Terminal, tau hloov kho thiab hloov kho tshiab thiab tshuaj xyuas tias txhua yam zoo.

Tam sim no koj tuaj yeem teeb tsa ib daim ntawv thov uas nyob hauv HomeBrew database.

Pom zoo: