Post view

在macOS Mojave 10.14安裝MacProts再繼續加裝php55-imagick、php72-imagick、php55-ssh2模組

請先閱讀前篇這些文章:

在沒有macOS Server之後,只好在macOS Mojave 10.14測試改裝XAMPP 7.2.10、XAMPP 5.6.38、MacPorts

在macOS Mojave 10.14安裝Homebrew與PHP 5.6

在macOS Mojave 10.14安裝Homebrew再繼續安裝ImageMagick的php56-imagick模組

既然XAMPP 5.6.38、XAMPP 7.0.32在目前最新的macOS Mojave 10.14系統上都完全不能用,那接下來要怎麼辦?當然是現成的伺服器包裝套件無法使用,只好全部DIY一個一個自己手動安裝!

安裝MacPorts

在macOS上,除了現成的XAMPP套件以外,想要自己動手一一安裝每個伺服器程式的話,也可使用MacPorts或是Homebrew這兩個著名的套件安裝程式。由於MacPorts必須依賴Apple的Xcode才能使用,Homebrew完全不需要從App Store下載Xcode就可以直接安裝Apache、PHP、ImageMagick、MySQL(這個可以從Oracle網站下載,直接安裝)等,好像比MacPorts更好。

但其實Homebrew會自動上網下載Xcode Command Line Tools命令列工具程式,所以其實並沒有比MacPorts更好。MacPorts、Homebrew兩個系統完全是50步笑百步,兩個都很難用!

MacPorts的安裝方式非常簡單,只要按「Continue」繼續安裝即可。

雖然很快就安裝好了,但是你絕對在「應用程式」裡面永遠都找不到安裝的新程式!也就是說,不像XAMPP會在「應用程式」裡面有一個XAMPP的圖示。安裝好MacPorts以後,在「應用程式」裡面絕對沒有一個程式叫做MacPorts!

因為MacPorts沒有視窗操作介面,單純只是一個命令列指令,在安裝好Xcode以後,只能打開「終端機」,透過命令列的指令來安裝Apache、PHP、ImageMagick、MySQL... 完全就像Homebrew一樣!

在macOS Mojave 10.14(所有的版本)已經有內建PHP,不需要再另外下載安裝。除非你想要使用目前最新的PHP 7.2版。目前macOS Mojave 10.14內建的PHP版本是:

MacBook-Pro:~ brent$ php -v

PHP 7.1.19 (cli) (built: Aug 17 2018 18:03:17) ( NTS )

Copyright (c) 1997-2018 The PHP Group

 

Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

在macOS High Sierra 10.13.6內建的PHP版本是:

MacBook-Pro:~ brent$ php -v

PHP 7.1.16 (cli) (built: Mar 31 2018 02:59:59) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

你可以看到這兩個版本其實沒有太大的差別。macOS 10.14內建的是PHP 7.1.19、macOS 10.13內建的是PHP 7.1.16。但是,因為insoler網站目前使用的海豚系統還沒有支援PHP 7,所以insoler網站目前使用的是OS X El Capitan 10.11.6內建的PHP 5.5.38。等到海豚系統支援PHP 7以後,才能升級系統版本到macOS 10.13。不能升級到macOS 10.14的理由,當然是因為Apple的Server已經不再是伺服器。只支援Xsan,只是一個很普通的NAS(Network Attached Storag)網路磁碟機而已。

PHP Version 5.5.38

System  Darwin www.insoler.com 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 21 20:07:40 PDT 2018; root:xnu-3248.73.11~1/RELEASE_X86_64 x86_64 
Build Date  Oct 29 2017 20:43:05 

 

雖然php 5.5.38的版本數字比目前最新的PHP 7.2來說,好像十分老舊。但其實是Build Date Oct 29 2017 20:43:05編譯的版本,也就是一年前2017年10月編譯的版本。一年前的版本,並不算十分老舊。

安裝php55-ssh2模組

要安裝php55-ssh只要輸入紅色粗體字標示的這個指令即可:

mysql:~ brent$ sudo port install php55-ssh2

Password:(輸入Mac電腦的管理者密碼)

--->  Computing dependencies for php55-ssh2

The following dependencies will be installed: 

 bzip2

 gettext

 gsed

 libedit

 libiconv

 libssh2

 libxml2

 mhash

 ncurses

 openssl

 pcre

 php55

 php_select

 xz

 zlib

Continue? [Y/n]: y

--->  Fetching archive for zlib

--->  Attempting to fetch zlib-1.2.11_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/zlib

--->  Attempting to fetch zlib-1.2.11_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/zlib

--->  Installing zlib @1.2.11_0

--->  Activating zlib @1.2.11_0

--->  Cleaning zlib

--->  Fetching archive for openssl

--->  Attempting to fetch openssl-1.0.2p_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/openssl

--->  Attempting to fetch openssl-1.0.2p_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/openssl

--->  Installing openssl @1.0.2p_0

--->  Activating openssl @1.0.2p_0

--->  Cleaning openssl

--->  Fetching archive for libssh2

--->  Attempting to fetch libssh2-1.8.0_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libssh2

--->  Attempting to fetch libssh2-1.8.0_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libssh2

--->  Installing libssh2 @1.8.0_0

--->  Activating libssh2 @1.8.0_0

--->  Cleaning libssh2

--->  Fetching archive for bzip2

--->  Attempting to fetch bzip2-1.0.6_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/bzip2

--->  Attempting to fetch bzip2-1.0.6_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/bzip2

--->  Installing bzip2 @1.0.6_0

--->  Activating bzip2 @1.0.6_0

--->  Cleaning bzip2

--->  Fetching archive for libiconv

--->  Attempting to fetch libiconv-1.15_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libiconv

--->  Attempting to fetch libiconv-1.15_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libiconv

--->  Installing libiconv @1.15_0

--->  Activating libiconv @1.15_0

--->  Cleaning libiconv

--->  Fetching archive for ncurses

--->  Attempting to fetch ncurses-6.1_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/ncurses

--->  Attempting to fetch ncurses-6.1_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/ncurses

--->  Installing ncurses @6.1_0

--->  Activating ncurses @6.1_0

--->  Cleaning ncurses

--->  Fetching archive for gettext

--->  Attempting to fetch gettext-0.19.8.1_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/gettext

--->  Attempting to fetch gettext-0.19.8.1_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/gettext

--->  Installing gettext @0.19.8.1_0

--->  Activating gettext @0.19.8.1_0

--->  Cleaning gettext

--->  Fetching archive for gsed

--->  Attempting to fetch gsed-4.5_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/gsed

--->  Attempting to fetch gsed-4.5_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/gsed

--->  Installing gsed @4.5_0

--->  Activating gsed @4.5_0

--->  Cleaning gsed

--->  Fetching archive for libedit

--->  Attempting to fetch libedit-20170329-3.1_2.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libedit

--->  Attempting to fetch libedit-20170329-3.1_2.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libedit

--->  Installing libedit @20170329-3.1_2

--->  Activating libedit @20170329-3.1_2

--->  Cleaning libedit

--->  Fetching archive for xz

--->  Attempting to fetch xz-5.2.4_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/xz

--->  Attempting to fetch xz-5.2.4_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/xz

--->  Installing xz @5.2.4_0

--->  Activating xz @5.2.4_0

--->  Cleaning xz

--->  Fetching archive for libxml2

--->  Attempting to fetch libxml2-2.9.7_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libxml2

--->  Attempting to fetch libxml2-2.9.7_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libxml2

--->  Installing libxml2 @2.9.7_0

--->  Activating libxml2 @2.9.7_0

--->  Cleaning libxml2

--->  Fetching archive for mhash

--->  Attempting to fetch mhash-0.9.9.9_1.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/mhash

--->  Attempting to fetch mhash-0.9.9.9_1.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/mhash

--->  Installing mhash @0.9.9.9_1

--->  Activating mhash @0.9.9.9_1

--->  Cleaning mhash

--->  Fetching archive for pcre

--->  Attempting to fetch pcre-8.42_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/pcre

--->  Attempting to fetch pcre-8.42_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/pcre

--->  Installing pcre @8.42_0

--->  Activating pcre @8.42_0

--->  Cleaning pcre

--->  Fetching archive for php_select

--->  Attempting to fetch php_select-1.0_0.darwin_17.noarch.tbz2 from http://kmq.jp.packages.macports.org/php_select

--->  Attempting to fetch php_select-1.0_0.darwin_17.noarch.tbz2.rmd160 from http://kmq.jp.packages.macports.org/php_select

--->  Installing php_select @1.0_0

--->  Activating php_select @1.0_0

--->  Cleaning php_select

--->  Fetching archive for php55

--->  Attempting to fetch php55-5.5.38_2+libedit.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/php55

--->  Attempting to fetch php55-5.5.38_2+libedit.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/php55

--->  Installing php55 @5.5.38_2+libedit

--->  Activating php55 @5.5.38_2+libedit

--->  Cleaning php55

--->  Fetching archive for php55-ssh2

--->  Attempting to fetch php55-ssh2-0.13_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/php55-ssh2

--->  Attempting to fetch php55-ssh2-0.13_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/php55-ssh2

--->  Installing php55-ssh2 @0.13_0

--->  Activating php55-ssh2 @0.13_0

--->  Cleaning php55-ssh2

--->  Updating database of binaries

--->  Updating database of C++ stdlib usage              

--->  Scanning binaries for linking errors

--->  No broken files found.

--->  No broken ports found.

--->  Some of the ports you installed have notes:

  php55 has the following notes:

    PHP 5.5 has reached end-of-life. Please upgrade to PHP 5.6 or newer. The

    newest stable version is 7.2.

    To learn how to update your code, please read the following guide:

        http://php.net/manual/en/migration72.php

    To customize php55, copy /opt/local/etc/php55/php.ini-development (if this

    is a development server) or /opt/local/etc/php55/php.ini-production (if this

    is a production server) to /opt/local/etc/php55/php.ini and then make

    changes.

mysql:~ brent$

MacPorts與Homebrew其實都是只負責幫你從網路下載指定的檔案,再把下載的檔案copy到他們個別預設的檔案夾而已(MacPorts是copy到 /opt/、Homebrew是copy到 /usr/local/),並不負責安裝、設定。所以你還要自己手動在PHP的純文字設定檔php.ini...通常是放在 /etc 檔案夾,但是要改成MacPorts與Homebrew的PHP檔案夾,根據上面的訊息,MacPorts的php.ini是放在這個檔案夾路徑:

/opt/local/etc/php55/php.ini

使用BBEdit等文字編輯程式,在php.ini裡面加上這一行加裝延伸模組的指令:

extension=/opt/local/lib/php55/extensions/no-debug-non-zts-20121212/ssh2.so

再重新啟動Apache的Web Server,才能在php程式裡面使用ssh2的相關函式。

安裝php72-ssh2模組

Last login: Mon Oct  8 18:46:12 on ttys001

mysql:~ brent$ sudo port install php72-ssh2

Password:(輸入Mac電腦的管理者密碼)

--->  Computing dependencies for php72-ssh2

The following dependencies will be installed: 

 bzip2

 gettext

 gsed

 libedit

 libiconv

 libssh2

 libxml2

 mhash

 ncurses

 openssl

 pcre

 php72

 php_select

 xz

 zlib

Continue? [Y/n]: y

--->  Fetching archive for zlib

--->  Attempting to fetch zlib-1.2.11_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/zlib

--->  Attempting to fetch zlib-1.2.11_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/zlib

--->  Installing zlib @1.2.11_0

--->  Activating zlib @1.2.11_0

--->  Cleaning zlib

--->  Fetching archive for openssl

--->  Attempting to fetch openssl-1.0.2p_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/openssl

--->  Attempting to fetch openssl-1.0.2p_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/openssl

--->  Installing openssl @1.0.2p_0

--->  Activating openssl @1.0.2p_0

--->  Cleaning openssl

--->  Fetching archive for libssh2

--->  Attempting to fetch libssh2-1.8.0_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libssh2

--->  Attempting to fetch libssh2-1.8.0_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libssh2

--->  Installing libssh2 @1.8.0_0

--->  Activating libssh2 @1.8.0_0

--->  Cleaning libssh2

--->  Fetching archive for bzip2

--->  Attempting to fetch bzip2-1.0.6_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/bzip2

--->  Attempting to fetch bzip2-1.0.6_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/bzip2

--->  Installing bzip2 @1.0.6_0

--->  Activating bzip2 @1.0.6_0

--->  Cleaning bzip2

--->  Fetching archive for libiconv

--->  Attempting to fetch libiconv-1.15_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libiconv

--->  Attempting to fetch libiconv-1.15_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libiconv

--->  Installing libiconv @1.15_0

--->  Activating libiconv @1.15_0

--->  Cleaning libiconv

--->  Fetching archive for ncurses

--->  Attempting to fetch ncurses-6.1_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/ncurses

--->  Attempting to fetch ncurses-6.1_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/ncurses

--->  Installing ncurses @6.1_0

--->  Activating ncurses @6.1_0

--->  Cleaning ncurses

--->  Fetching archive for gettext

--->  Attempting to fetch gettext-0.19.8.1_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/gettext

--->  Attempting to fetch gettext-0.19.8.1_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/gettext

--->  Installing gettext @0.19.8.1_0

--->  Activating gettext @0.19.8.1_0

--->  Cleaning gettext

--->  Fetching archive for gsed

--->  Attempting to fetch gsed-4.5_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/gsed

--->  Attempting to fetch gsed-4.5_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/gsed

--->  Installing gsed @4.5_0

--->  Activating gsed @4.5_0

--->  Cleaning gsed

--->  Fetching archive for libedit

--->  Attempting to fetch libedit-20170329-3.1_2.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libedit

--->  Attempting to fetch libedit-20170329-3.1_2.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libedit

--->  Installing libedit @20170329-3.1_2

--->  Activating libedit @20170329-3.1_2

--->  Cleaning libedit

--->  Fetching archive for xz

--->  Attempting to fetch xz-5.2.4_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/xz

--->  Attempting to fetch xz-5.2.4_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/xz

--->  Installing xz @5.2.4_0

--->  Activating xz @5.2.4_0

--->  Cleaning xz

--->  Fetching archive for libxml2

--->  Attempting to fetch libxml2-2.9.7_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libxml2

--->  Attempting to fetch libxml2-2.9.7_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libxml2

--->  Installing libxml2 @2.9.7_0

--->  Activating libxml2 @2.9.7_0

--->  Cleaning libxml2

--->  Fetching archive for mhash

--->  Attempting to fetch mhash-0.9.9.9_1.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/mhash

--->  Attempting to fetch mhash-0.9.9.9_1.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/mhash

--->  Installing mhash @0.9.9.9_1

--->  Activating mhash @0.9.9.9_1

--->  Cleaning mhash

--->  Fetching archive for pcre

--->  Attempting to fetch pcre-8.42_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/pcre

--->  Attempting to fetch pcre-8.42_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/pcre

--->  Installing pcre @8.42_0

--->  Activating pcre @8.42_0

--->  Cleaning pcre

--->  Fetching archive for php_select

--->  Attempting to fetch php_select-1.0_0.darwin_17.noarch.tbz2 from http://kmq.jp.packages.macports.org/php_select

--->  Attempting to fetch php_select-1.0_0.darwin_17.noarch.tbz2.rmd160 from http://kmq.jp.packages.macports.org/php_select

--->  Installing php_select @1.0_0

--->  Activating php_select @1.0_0

--->  Cleaning php_select

--->  Fetching archive for php72

--->  Attempting to fetch php72-7.2.10_0+libedit.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/php72

--->  Attempting to fetch php72-7.2.10_0+libedit.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/php72

--->  Installing php72 @7.2.10_0+libedit

--->  Activating php72 @7.2.10_0+libedit

--->  Cleaning php72

--->  Fetching archive for php72-ssh2

--->  Attempting to fetch php72-ssh2-1.1.2_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/php72-ssh2

--->  Attempting to fetch php72-ssh2-1.1.2_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/php72-ssh2

--->  Installing php72-ssh2 @1.1.2_0

--->  Activating php72-ssh2 @1.1.2_0

--->  Cleaning php72-ssh2

--->  Updating database of binaries

--->  Updating database of C++ stdlib usage              

--->  Scanning binaries for linking errors

--->  No broken files found.

--->  No broken ports found.

--->  Some of the ports you installed have notes:

  php72 has the following notes:

    To customize php72, copy /opt/local/etc/php72/php.ini-development (if this

    is a development server) or /opt/local/etc/php72/php.ini-production (if this

    is a production server) to /opt/local/etc/php72/php.ini and then make

    changes.

只要在終端機的提示號輸入「sudo port install php72-ssh2」指令就可以安裝好php72-ssh2模組?絕對不是!前面有提到MacPorts與Homebrew只會幫你從網路下載指定的檔案,再copy到預設的檔案夾而已,你還必須按照最後的說明修改 /opt/local/etc/php72/php.ini 檔案,自己手動加入這個在PHP加裝延伸模組的指令:

extension=/opt/local/lib/php72/extensions/no-debug-non-zts-20170718/ssh2.so

然而,只要加上這個指令就可以使用?很可能不行!因為如果macOS的Apache或是XAMPP的Apache,沒有改用放在 /opt/local/etc/php72 的PHP 7.2的話,只是修改完全沒人使用的php.ini設定檔,不會有任何作用!

安裝php72-imagick模組

也許你不需要安裝「php72-ssh2」,但是幾乎所有現代的網站系統都會需要使用號稱Adobe Photoshop命令列模式的ImageMagick圖形處理模組,所以不管是使用macOS的Apache或是XAMPP的Apache,還是自己從MacPorts、Homebrew下載的Apache都要另外加裝這個圖形模組。

但是ImageMagick必須搭配對應的PHP版本才能一起使用,不同的版本要使用不同的安裝指令:

  • sudo port install php55-imagick(已無法安裝,會產生Error錯誤訊息)
  • sudo port install php56-imagick(已無法安裝,會產生Error錯誤訊息)
  • sudo port install php71-imagick(無法安裝,會產生Error錯誤訊息)
  • sudo port install php72-imagick(無法安裝,會產生Error錯誤訊息)

就像Homebrew已經無法安裝php56-imagick,換成MacPorts也會有相同的問題!但是PHP 7.1、PHP 7.2是目前的最新版本,竟然會看到無法安裝的Error錯誤訊息!

mysql:~ brent$ sudo port install php72-imagick

--->  Computing dependencies for php72-imagick

The following dependencies will be installed: 

 ImageMagick

 autoconf

 automake

 db48

 djvulibre

 expat

 fftw-3

 fontconfig

 freetype

 gdbm

 ghostscript

 giflib

 ilmbase

 jasper

 jbig2dec

 jbigkit

 jpeg

 lcms2

 libffi

 libidn

 libpaper

 libpng

 libraw

 libtool

 openexr

 openjpeg

 ossp-uuid

 perl5

 perl5.26

 pkgconfig

 python27

 python2_select

 python_select

 readline

 sqlite3

 tiff

 urw-fonts

 webp

 xorg-libX11

 xorg-libXau

 xorg-libXdmcp

 xorg-libXext

 xorg-libXt

 xorg-libice

 xorg-libpthread-stubs

 xorg-libsm

 xorg-libxcb

 xorg-xcb-proto

 xorg-xorgproto

Continue? [Y/n]: y

--->  Fetching archive for autoconf

--->  Attempting to fetch autoconf-2.69_5.darwin_17.noarch.tbz2 from http://kmq.jp.packages.macports.org/autoconf

--->  Attempting to fetch autoconf-2.69_5.darwin_17.noarch.tbz2.rmd160 from http://kmq.jp.packages.macports.org/autoconf

--->  Installing autoconf @2.69_5

--->  Activating autoconf @2.69_5

--->  Cleaning autoconf

--->  Fetching archive for automake

--->  Attempting to fetch automake-1.16.1_0.darwin_17.noarch.tbz2 from http://kmq.jp.packages.macports.org/automake

--->  Attempting to fetch automake-1.16.1_0.darwin_17.noarch.tbz2.rmd160 from http://kmq.jp.packages.macports.org/automake

--->  Installing automake @1.16.1_0

--->  Activating automake @1.16.1_0

--->  Cleaning automake

--->  Fetching archive for jpeg

--->  Attempting to fetch jpeg-9c_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/jpeg

--->  Attempting to fetch jpeg-9c_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/jpeg

--->  Installing jpeg @9c_0

--->  Activating jpeg @9c_0

--->  Cleaning jpeg

--->  Fetching archive for tiff

--->  Attempting to fetch tiff-4.0.9_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/tiff

--->  Attempting to fetch tiff-4.0.9_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/tiff

--->  Installing tiff @4.0.9_0

--->  Activating tiff @4.0.9_0

--->  Cleaning tiff

--->  Fetching archive for djvulibre

--->  Attempting to fetch djvulibre-3.5.27_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/djvulibre

--->  Attempting to fetch djvulibre-3.5.27_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/djvulibre

--->  Installing djvulibre @3.5.27_0

--->  Activating djvulibre @3.5.27_0

--->  Cleaning djvulibre

--->  Fetching archive for expat

--->  Attempting to fetch expat-2.2.6_1.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/expat

--->  Attempting to fetch expat-2.2.6_1.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/expat

--->  Installing expat @2.2.6_1

--->  Activating expat @2.2.6_1

--->  Cleaning expat

--->  Fetching archive for fftw-3

--->  Attempting to fetch fftw-3-3.3.8_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/fftw-3

--->  Attempting to fetch fftw-3-3.3.8_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/fftw-3

--->  Installing fftw-3 @3.3.8_0

--->  Activating fftw-3 @3.3.8_0

--->  Cleaning fftw-3

--->  Fetching archive for libpng

--->  Attempting to fetch libpng-1.6.35_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libpng

--->  Attempting to fetch libpng-1.6.35_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libpng

--->  Installing libpng @1.6.35_0

--->  Activating libpng @1.6.35_0

--->  Cleaning libpng

--->  Fetching archive for freetype

--->  Attempting to fetch freetype-2.9.1_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/freetype

--->  Attempting to fetch freetype-2.9.1_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/freetype

--->  Installing freetype @2.9.1_0

--->  Activating freetype @2.9.1_0

--->  Cleaning freetype

--->  Fetching archive for readline

--->  Attempting to fetch readline-7.0.005_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/readline

--->  Attempting to fetch readline-7.0.005_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/readline

--->  Installing readline @7.0.005_0

--->  Activating readline @7.0.005_0

--->  Cleaning readline

--->  Fetching archive for gdbm

--->  Attempting to fetch gdbm-1.16_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/gdbm

--->  Attempting to fetch gdbm-1.16_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/gdbm

--->  Installing gdbm @1.16_0

--->  Activating gdbm @1.16_0

--->  Cleaning gdbm

--->  Fetching archive for perl5.26

--->  Attempting to fetch perl5.26-5.26.2_1.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/perl5.26

--->  Attempting to fetch perl5.26-5.26.2_1.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/perl5.26

--->  Installing perl5.26 @5.26.2_1

--->  Activating perl5.26 @5.26.2_1

--->  Cleaning perl5.26

--->  Fetching archive for ossp-uuid

--->  Attempting to fetch ossp-uuid-1.6.2_11+perl5_26.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/ossp-uuid

--->  Attempting to fetch ossp-uuid-1.6.2_11+perl5_26.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/ossp-uuid

--->  Installing ossp-uuid @1.6.2_11+perl5_26

--->  Activating ossp-uuid @1.6.2_11+perl5_26

--->  Cleaning ossp-uuid

--->  Fetching archive for fontconfig

--->  Attempting to fetch fontconfig-2.13.1_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/fontconfig

--->  Attempting to fetch fontconfig-2.13.1_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/fontconfig

--->  Installing fontconfig @2.13.1_0

--->  Activating fontconfig @2.13.1_0

--->  Cleaning fontconfig

--->  Fetching archive for jbig2dec

--->  Attempting to fetch jbig2dec-0.15_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/jbig2dec

--->  Attempting to fetch jbig2dec-0.15_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/jbig2dec

--->  Installing jbig2dec @0.15_0

--->  Activating jbig2dec @0.15_0

--->  Cleaning jbig2dec

--->  Fetching archive for lcms2

--->  Attempting to fetch lcms2-2.9_1.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/lcms2

--->  Attempting to fetch lcms2-2.9_1.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/lcms2

--->  Installing lcms2 @2.9_1

--->  Activating lcms2 @2.9_1

--->  Cleaning lcms2

--->  Fetching archive for libidn

--->  Attempting to fetch libidn-1.35_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libidn

--->  Attempting to fetch libidn-1.35_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libidn

--->  Installing libidn @1.35_0

--->  Activating libidn @1.35_0

--->  Cleaning libidn

--->  Fetching archive for libpaper

--->  Attempting to fetch libpaper-1.1.24.5_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libpaper

--->  Attempting to fetch libpaper-1.1.24.5_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libpaper

--->  Installing libpaper @1.1.24.5_0

--->  Activating libpaper @1.1.24.5_0

--->  Cleaning libpaper

--->  Fetching archive for libtool

--->  Attempting to fetch libtool-2.4.6_5.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libtool

--->  Attempting to fetch libtool-2.4.6_5.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libtool

--->  Installing libtool @2.4.6_5

--->  Activating libtool @2.4.6_5

--->  Cleaning libtool

--->  Fetching archive for perl5

--->  Attempting to fetch perl5-5.26.1_0+perl5_26.darwin_17.noarch.tbz2 from http://kmq.jp.packages.macports.org/perl5

--->  Attempting to fetch perl5-5.26.1_0+perl5_26.darwin_17.noarch.tbz2.rmd160 from http://kmq.jp.packages.macports.org/perl5

--->  Installing perl5 @5.26.1_0+perl5_26

--->  Activating perl5 @5.26.1_0+perl5_26

--->  Cleaning perl5

--->  Fetching archive for pkgconfig

--->  Attempting to fetch pkgconfig-0.29.2_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/pkgconfig

--->  Attempting to fetch pkgconfig-0.29.2_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/pkgconfig

--->  Installing pkgconfig @0.29.2_0

--->  Activating pkgconfig @0.29.2_0

--->  Cleaning pkgconfig

--->  Fetching archive for xorg-xorgproto

--->  Attempting to fetch xorg-xorgproto-2018.4_0.darwin_17.noarch.tbz2 from http://kmq.jp.packages.macports.org/xorg-xorgproto

--->  Attempting to fetch xorg-xorgproto-2018.4_0.darwin_17.noarch.tbz2.rmd160 from http://kmq.jp.packages.macports.org/xorg-xorgproto

--->  Installing xorg-xorgproto @2018.4_0

--->  Activating xorg-xorgproto @2018.4_0

--->  Cleaning xorg-xorgproto

--->  Fetching archive for xorg-libXau

--->  Attempting to fetch xorg-libXau-1.0.8_1.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/xorg-libXau

--->  Attempting to fetch xorg-libXau-1.0.8_1.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/xorg-libXau

--->  Installing xorg-libXau @1.0.8_1

--->  Activating xorg-libXau @1.0.8_1

--->  Cleaning xorg-libXau

--->  Fetching archive for xorg-libXdmcp

--->  Attempting to fetch xorg-libXdmcp-1.1.2_1.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/xorg-libXdmcp

--->  Attempting to fetch xorg-libXdmcp-1.1.2_1.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/xorg-libXdmcp

--->  Installing xorg-libXdmcp @1.1.2_1

--->  Activating xorg-libXdmcp @1.1.2_1

--->  Cleaning xorg-libXdmcp

--->  Fetching archive for db48

--->  Attempting to fetch db48-4.8.30_4.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/db48

--->  Attempting to fetch db48-4.8.30_4.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/db48

--->  Installing db48 @4.8.30_4

--->  Activating db48 @4.8.30_4

--->  Cleaning db48

--->  Fetching archive for libffi

--->  Attempting to fetch libffi-3.2.1_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/libffi

--->  Attempting to fetch libffi-3.2.1_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/libffi

--->  Installing libffi @3.2.1_0

--->  Activating libffi @3.2.1_0

--->  Cleaning libffi

--->  Fetching archive for python2_select

--->  Attempting to fetch python2_select-0.0_2.darwin_17.noarch.tbz2 from http://kmq.jp.packages.macports.org/python2_select

--->  Attempting to fetch python2_select-0.0_2.darwin_17.noarch.tbz2.rmd160 from http://kmq.jp.packages.macports.org/python2_select

--->  Installing python2_select @0.0_2

--->  Activating python2_select @0.0_2

--->  Cleaning python2_select

--->  Fetching archive for python_select

--->  Attempting to fetch python_select-0.3_7.darwin_17.noarch.tbz2 from http://kmq.jp.packages.macports.org/python_select

--->  Attempting to fetch python_select-0.3_7.darwin_17.noarch.tbz2.rmd160 from http://kmq.jp.packages.macports.org/python_select

--->  Installing python_select @0.3_7

--->  Activating python_select @0.3_7

--->  Cleaning python_select

--->  Fetching archive for sqlite3

--->  Attempting to fetch sqlite3-3.25.2_0.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/sqlite3

--->  Attempting to fetch sqlite3-3.25.2_0.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/sqlite3

--->  Installing sqlite3 @3.25.2_0

--->  Activating sqlite3 @3.25.2_0

--->  Cleaning sqlite3

--->  Fetching archive for python27

--->  Attempting to fetch python27-2.7.15_1.darwin_17.x86_64.tbz2 from http://kmq.jp.packages.macports.org/python27

--->  Attempting to fetch python27-2.7.15_1.darwin_17.x86_64.tbz2.rmd160 from http://kmq.jp.packages.macports.org/python27

--->  Installing python27 @2.7.15_1

--->  Activating python27 @2.7.15_1

Error: Failed to activate python27: Image error: /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist already exists and does not belong to a registered port.  Unable to activate port python27. Use 'port -f activate python27' to force the activation.

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Error: Processing of port php72-imagick failed

發生重大的Error錯誤訊息,還要我向指定的MacPorts網站回報Bug問題?我想不需要我主動回報,任何人都不可能安裝成功!就像Homebrew一樣。

不是只有php72-imagick無法安裝,竟然是所有的版本都無法安裝!要如何解決這個問題?我不知道... 我想應該會有很多人都建議乾脆改用Linux或是Windows就不會遇到這些問題。不過,把作業系統換成Linux或是Windows的話,反而會遇到其他更多更頭痛的問題!

蘇言霖 2018/10/26 0 1075
Comments
Order by: 
Per page:
 
  • There are no comments yet
Rate
0 votes
Post info
蘇言霖
「超級懶貓級」社群網站站長
2018/10/26 (698 days ago)
Actions