中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

在leopard中使用MacPorts(DarwinPorts)

發布時間:2020-04-08 06:19:19 來源:網絡 閱讀:4099 作者:fsjoy1983 欄目:編程語言
macports(darwinports)是mac操作系統上的一個非常不錯的包管理器,可以很方便的編譯安裝軟件,在安裝一個軟件的時候會將這個軟件所依賴的軟件環境一起搭建好,這樣可以很方便的安裝和升級所需要的軟件。就像gem一樣的方便。


http://www.macports.org/install.php
這是macports的安裝說明
http://guide.macports.org/
這是macprots的完整的說明書

用macports*.dmg來安裝macports,位于/opt目錄下。如果對于port卸載命令卸載軟件失敗時,可以直接將opt文件夾刪除

一般情況使用macports*.dmg安裝之后,環境變量中會包含/opt/local/bin如果沒有添加到~/.bashrc里即可。
重啟terminal,運行
sudo port selfupdate

更新ports tree和macports版本

----下面是用macports來安裝ror環境來說明macports的好用之處:

以前對于ruby的安裝是比較麻煩的,需要gnu的readline(比較容易出現很多問題,譬如ldconfig 問題)
現在用macports可以很方便的來安裝ruby:

---> Computing dependencies for ruby
---> Fetching gperf
---> Attempting to fetch gperf-3.0.4.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/gperf
---> Verifying checksum(s) for gperf
---> Extracting gperf
---> Configuring gperf
---> Building gperf
---> Staging gperf into destroot
---> Installing gperf @3.0.4_0
---> Activating gperf @3.0.4_0
---> Cleaning gperf
---> Fetching libiconv
---> Attempting to fetch libiconv-1.13.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/libiconv
---> Verifying checksum(s) for libiconv
---> Extracting libiconv
---> Applying patches to libiconv
---> Configuring libiconv
---> Building libiconv
---> Staging libiconv into destroot
---> Installing libiconv @1.13_0
---> Activating libiconv @1.13_0
---> Cleaning libiconv
---> Fetching ncursesw
---> Attempting to fetch ncurses-5.7.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/ncurses
---> Verifying checksum(s) for ncursesw
---> Extracting ncursesw
---> Configuring ncursesw
---> Building ncursesw
---> Staging ncursesw into destroot
---> Installing ncursesw @5.7_0
---> Activating ncursesw @5.7_0
---> Cleaning ncursesw
---> Fetching ncurses
---> Verifying checksum(s) for ncurses
---> Extracting ncurses
---> Configuring ncurses
---> Building ncurses
---> Staging ncurses into destroot
---> Installing ncurses @5.7_0
---> Activating ncurses @5.7_0
---> Cleaning ncurses
---> Fetching zlib
---> Attempting to fetch zlib-1.2.3.tar.bz2 from http://distfiles.macports.org/zlib
---> Verifying checksum(s) for zlib
---> Extracting zlib
---> Applying patches to zlib
---> Configuring zlib
---> Building zlib
---> Staging zlib into destroot
---> Installing zlib @1.2.3_3
---> Activating zlib @1.2.3_3
---> Cleaning zlib
---> Fetching openssl
---> Attempting to fetch openssl-0.9.8k.tar.gz from http://distfiles.macports.org/openssl
---> Verifying checksum(s) for openssl
---> Extracting openssl
---> Applying patches to openssl
---> Configuring openssl
---> Building openssl
---> Staging openssl into destroot
---> Installing openssl @0.9.8k_0+darwin
---> Activating openssl @0.9.8k_0+darwin
---> Cleaning openssl
---> Fetching readline
---> Attempting to fetch readline-6.0.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/readline
---> Verifying checksum(s) for readline
---> Extracting readline
---> Applying patches to readline
---> Configuring readline
---> Building readline
---> Staging readline into destroot
---> Installing readline @6.0.000_2+darwin
---> Activating readline @6.0.000_2+darwin
---> Cleaning readline
---> Fetching ruby
---> Attempting to fetch ruby-1.8.7-p174.tar.bz2 from ftp://ftp.ruby-lang.org/pub/ruby/1.8
---> Verifying checksum(s) for ruby
---> Extracting ruby
---> Applying patches to ruby
---> Configuring ruby
---> Building ruby
---> Staging ruby into destroot
---> Installing ruby @1.8.7-p174_0+darwin+thread_hooks
---> Activating ruby @1.8.7-p174_0+darwin+thread_hooks
---> Cleaning ruby


這樣安裝就可以將ruby及其所依賴的軟件環境全部搭建好了,現在可以運行一下
port installed
來查看用port安裝過的包及其版本號:

port installed
The following ports are currently installed:
gperf @3.0.4_0 (active)
libiconv @1.13_0 (active)
ncurses @5.7_0 (active)
ncursesw @5.7_0 (active)
openssl @0.9.8k_0+darwin (active)
readline @6.0.000_2+darwin (active)
ruby @1.8.7-p174_0+darwin+thread_hooks (active)
zlib @1.2.3_3 (active)



再下面來安裝mysql

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

延边| 德昌县| 商水县| 鹤庆县| 麻江县| 都昌县| 浮山县| 板桥市| 泰兴市| 湘西| 平湖市| 聂拉木县| 五大连池市| 明星| 汨罗市| 临沧市| 读书| 公主岭市| 额尔古纳市| 确山县| 祁门县| 大同市| 项城市| 沅江市| 安义县| 景宁| 宜州市| 清流县| 同心县| 米脂县| 桐柏县| 叶城县| 永顺县| 安平县| 潼关县| 沛县| 通海县| 宁河县| 滕州市| 射洪县| 岐山县|