質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,7 +112,7 @@
|
|
112
112
|
|
113
113
|
Downloading 1.2.0...
|
114
114
|
|
115
|
-
Composer successfully installed to: /home/
|
115
|
+
Composer successfully installed to: /home/xxx/composer.phar
|
116
116
|
|
117
117
|
Use it: php composer.phar
|
118
118
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -89,3 +89,103 @@
|
|
89
89
|
|
90
90
|
|
91
91
|
composerをインストール時に1行目に警告がでたのでroot権限外でインストールしてみたのですが結果は変わりませんでした。
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
### 追記
|
98
|
+
|
99
|
+
ご回答ありがとうございます。
|
100
|
+
|
101
|
+
それぞれやってみたのですが、自分の力及ばずうまくいきませんでした・・・。すみません。
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
実行結果は以下のようになりました。
|
106
|
+
|
107
|
+
```CentOS
|
108
|
+
|
109
|
+
[xxx@xxx ~]$ curl -sS https://getcomposer.org/installer | php
|
110
|
+
|
111
|
+
All settings correct for using Composer
|
112
|
+
|
113
|
+
Downloading 1.2.0...
|
114
|
+
|
115
|
+
Composer successfully installed to: /home/r_tani0522/composer.phar
|
116
|
+
|
117
|
+
Use it: php composer.phar
|
118
|
+
|
119
|
+
[xxx@xxx ~]$ echo $PATH
|
120
|
+
|
121
|
+
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/xxx/.local/bin:/home/xxx/bin
|
122
|
+
|
123
|
+
[xxx@xxx ~]$ sudo mv composer.phar /usr/local/bin/
|
124
|
+
|
125
|
+
[xxx@xxx ~]$ composer -v
|
126
|
+
|
127
|
+
-bash: composer: command not found
|
128
|
+
|
129
|
+
[xxx@xxx ~]$ php composer.phar -v
|
130
|
+
|
131
|
+
Could not open input file: composer.phar
|
132
|
+
|
133
|
+
[xxx@xxx ~]$ cd /usr/local/bin/
|
134
|
+
|
135
|
+
[xxx@xxx bin]$ php composer.phar -v
|
136
|
+
|
137
|
+
______
|
138
|
+
|
139
|
+
/ ____/___ ____ ___ ____ ____ ________ _____
|
140
|
+
|
141
|
+
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
|
142
|
+
|
143
|
+
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
|
144
|
+
|
145
|
+
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
|
146
|
+
|
147
|
+
/_/
|
148
|
+
|
149
|
+
Composer version 1.2.0 2016-07-19 01:28:52
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
154
|
+
|
155
|
+
```
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
ちなみにcomposer.pharがあるディレクトリなら実行できるようだったので
|
160
|
+
|
161
|
+
composer.jsonがあるディレクトリに直接composer.pharを設置して
|
162
|
+
|
163
|
+
php composer.phar install
|
164
|
+
|
165
|
+
を実行してみると真っ赤な文字と共に以下のエラーが帰ってきてしまいました・・・。
|
166
|
+
|
167
|
+
```CentOS
|
168
|
+
|
169
|
+
[xxx@xxx sendgridjp-php-example]$ php composer.phar install
|
170
|
+
|
171
|
+
Loading composer repositories with package information
|
172
|
+
|
173
|
+
Updating dependencies (including require-dev)
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
[RuntimeException]
|
178
|
+
|
179
|
+
/var/www/html/private/sendgridjp-php-example/vendor does not exist and could not be created.
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
|
184
|
+
|
185
|
+
```
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
この結果から何か私の間違いなどわかるでしょうか?
|
190
|
+
|
191
|
+
重ね重ねの質問申し訳ございませんがよろしくお願いします。
|