質問編集履歴
3
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
Mac OS YosemiteとSierraです。
|
2
|
+
PHP5.6。
|
2
3
|
ローカルにintlをインストールするために下記コマンドを実行したのですが、
|
3
4
|
|
4
5
|
```
|
5
6
|
// Xcode Command Line Developer Toolsをインストール
|
6
7
|
xcode-select --install
|
7
|
-
(PHP5.6)
|
8
8
|
|
9
|
+
// Homebrew インストール
|
10
|
+
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
11
|
+
|
9
12
|
// PEARをインストール
|
10
13
|
sudo php /usr/lib/php/install-pear-nozlib.phar
|
11
14
|
|
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
ローカルにintlをインストールするために下記コマンドを実行したのですが、
|
3
3
|
|
4
4
|
```
|
5
|
+
// Xcode Command Line Developer Toolsをインストール
|
6
|
+
xcode-select --install
|
7
|
+
(PHP5.6)
|
8
|
+
|
5
9
|
// PEARをインストール
|
6
10
|
sudo php /usr/lib/php/install-pear-nozlib.phar
|
7
11
|
|
1
コマンドの追加
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
【Mac OS】pecl install intl
|
1
|
+
【Mac OS】pecl install intl が失敗する
|
body
CHANGED
@@ -65,4 +65,33 @@
|
|
65
65
|
phpは`xcode-select --install`でコマンドラインツールを入れています。
|
66
66
|
|
67
67
|
何か、わかることがあれば教えて頂けますと幸いです。
|
68
|
-
何卒よろしくお願い致します。
|
68
|
+
何卒よろしくお願い致します。
|
69
|
+
|
70
|
+
##追記
|
71
|
+
|
72
|
+
`icu4c`をインストールした際に、
|
73
|
+
|
74
|
+
```
|
75
|
+
For compilers to find this software you may need to set:
|
76
|
+
LDFLAGS: -L/usr/local/opt/icu4c/lib
|
77
|
+
CPPFLAGS: -I/usr/local/opt/icu4c/include
|
78
|
+
```
|
79
|
+
|
80
|
+
と表示されるのでオプションで指定したり、C++11の指定をしたりのオプションを入れてみましたが、エラーはなくなりませんでした。
|
81
|
+
|
82
|
+
`sudo pecl install intl -- --with-ldflags=-L/usr/local/opt/icu4c/lib --with-cppflags=-I/usr/local/opt/icu4c/include --with-cxxflags=-std=c++11`
|
83
|
+
|
84
|
+
下記のように表示されているので認識されていない・無効になっているように思います。
|
85
|
+
指定方法が間違っているのでしょうか?
|
86
|
+
```
|
87
|
+
Attempting to discover channel "--with-ldflags=-L/usr/local/opt/icu4c"...
|
88
|
+
Attempting fallback to https instead of http on channel "--with-ldflags=-L/usr/local/opt/icu4c"...
|
89
|
+
unknown channel "--with-ldflags=-L/usr/local/opt/icu4c" in "--with-ldflags=-L/usr/local/opt/icu4c/lib"
|
90
|
+
invalid package name/package file "--with-ldflags=-L/usr/local/opt/icu4c/lib"
|
91
|
+
Attempting to discover channel "--with-cppflags=-I/usr/local/opt/icu4c"...
|
92
|
+
Attempting fallback to https instead of http on channel "--with-cppflags=-I/usr/local/opt/icu4c"...
|
93
|
+
unknown channel "--with-cppflags=-I/usr/local/opt/icu4c" in "--with-cppflags=-I/usr/local/opt/icu4c/include"
|
94
|
+
invalid package name/package file "--with-cppflags=-I/usr/local/opt/icu4c/include"
|
95
|
+
parsePackageName(): invalid package name "--with-cxxflags=-std=c++11" in "--with-cxxflags=-std=c++11"
|
96
|
+
invalid package name/package file "--with-cxxflags=-std=c++11"
|
97
|
+
```
|