質問編集履歴
2
エラーの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,6 +64,22 @@
|
|
64
64
|
|
65
65
|
```
|
66
66
|
|
67
|
+
```
|
68
|
+
|
69
|
+
$ php -d memory_limit=228M composer.phar require spatie/laravel-analytics
|
70
|
+
|
71
|
+
Using version ^1.4 for spatie/laravel-analytics
|
72
|
+
|
73
|
+
./composer.json has been updated
|
74
|
+
|
75
|
+
Loading composer repositories with package information
|
76
|
+
|
77
|
+
Updating dependencies (including require-dev)
|
78
|
+
|
79
|
+
PHP Fatal error: Out of memory (allocated 702021632) (tried to allocate 67108864 bytes) in phar:///home/users/1/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 67
|
80
|
+
|
81
|
+
```
|
82
|
+
|
67
83
|
### 該当のソースコード
|
68
84
|
|
69
85
|
.htaccess
|
1
エラーメッセージの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
Laravelにて、spatie/laravel-analyticsをcomposer requestしたいのですが、メモリ不足とのことでダウンロードできません。
|
6
6
|
|
7
7
|
ロリポップを使っていますが、php.iniの設定画面から「php_value, php_flagを利用可能にする」をオンにして(オンの場合htaccessが優先される)、htaccessにて下記のソースコードにあるように書きました。
|
8
|
+
|
9
|
+
さらに、-dで直接メモリ容量も指定しましたが、解決しませんでした(エラーメッセージに記載)
|
8
10
|
|
9
11
|
ですが、問題は解決しません。
|
10
12
|
|
@@ -30,7 +32,37 @@
|
|
30
32
|
|
31
33
|
```
|
32
34
|
|
35
|
+
```
|
33
36
|
|
37
|
+
/usr/local/php7.1/bin/php -d memory_limit=128M composer.phar require spatie/laravel-analytics
|
38
|
+
|
39
|
+
Using version ^3.6 for spatie/laravel-analytics
|
40
|
+
|
41
|
+
./composer.json has been updated
|
42
|
+
|
43
|
+
Loading composer repositories with package information
|
44
|
+
|
45
|
+
Updating dependencies (including require-dev)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
mmap() failed: [12] Cannot allocate memory
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
mmap() failed: [12] Cannot allocate memory
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
mmap() failed: [12] Cannot allocate memory
|
58
|
+
|
59
|
+
PHP Fatal error: Out of memory (allocated 723525632) (tried to allocate 16777216 bytes) in phar:///home/users/1/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
Fatal error: Out of memory (allocated 723525632) (tried to allocate 16777216 bytes) in phar:///home/users/1/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
|
64
|
+
|
65
|
+
```
|
34
66
|
|
35
67
|
### 該当のソースコード
|
36
68
|
|