1.激活一個(gè)已經(jīng)安裝的port
tcl舉例子 如果以前裝過(guò)
$ port installed tcl
The following ports are currently installed:
tcl @8.4.16_0 (active)
后來(lái)升級(jí)了蔚舀。老版本被deactivate.
$ sudo port upgrade tcl
[snip]
$ port installed tcl
The following ports are currently installed:
tcl @8.4.16_0
tcl @8.5.0_0 (active)
自由切換版本
$ sudo port activate tcl @8.4.16_0
--->Deactivating tcl @8.5.0_0
--->Activating tcl @8.4.16_0
要徹底刪除
$ sudo port uninstall tcl @8.4.16_0
2.裝一個(gè)自己沒(méi)有安裝過(guò)的老版本
相當(dāng)?shù)穆闊?/p>
step1:找到你要的版本
我是從這里這里這里這里這里找到要的軟件 看左上角位于哪個(gè)目錄
source:trunk/dports/devel/boost/Portfile@139798
再?gòu)?a target="_blank" rel="nofollow">這個(gè)網(wǎng)址進(jìn)去查找具體svn地址
step2:下載
$ svn checkout -r 30810 https://svn.macports.org/repository/macports/trunk/dports/lang/tcl
step3:編譯
$ cd tcl
$ sudo port install
install后面不加?xùn)|西哦
指定一個(gè)變量?(不懂)
$ sudo port install +quartz
去掉一個(gè)變量?(不懂)
$ sudo port install -- -x11
指定一個(gè)子port(不懂)
$ cd py-pylint
$ sudo port install subport=py27-pylint
ps:我自己編譯老的boost感覺(jué)失敗了~~!