質問編集履歴
3
Capistranoのエラー発生箇所について追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
10
|
Railsアプリ側でのEC2へデプロイ(capistranoでの自動デプロイ)した際、
|
11
|
-
|
11
|
+
以下エラーが出ました。
|
12
|
+
なお、エラーになったCapistranoタスク箇所については、`deploy:bundle` (bundle install時)と推測しています。
|
13
|
+
(下記エラーメッセージで `Tasks: TOP => deploy:migrate` と出ていることから、その前のタスクである`deploy:bundle` がエラー箇所に該当しそう)
|
12
14
|
|
13
15
|
`Could not open library '/usr/local/lib/libmecab.so': /usr/local/lib/libmecab.so: cannot open shared object file: No such file or directory` と出ています。
|
14
16
|
|
2
別の方法も追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,20 +32,15 @@
|
|
32
32
|
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/natto-1.2.0/lib/natto/binding.rb:6:in `<module:Natto>'
|
33
33
|
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/natto-1.2.0/lib/natto/binding.rb:2:in `<top (required)>'
|
34
34
|
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
|
35
|
-
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
|
36
|
-
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
|
37
|
-
|
35
|
+
(中略)
|
38
36
|
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/natto-1.2.0/lib/natto/natto.rb:2:in `<top (required)>'
|
39
37
|
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
|
40
|
-
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
|
41
|
-
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
|
42
|
-
|
38
|
+
(中略)
|
43
39
|
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/natto-1.2.0/lib/natto.rb:2:in `<top (required)>'
|
44
40
|
/home/ec2-user/****/releases/20220302084015/config/application.rb:12:in `<top (required)>'
|
45
|
-
|
41
|
+
(中略)
|
46
|
-
/home/ec2-user/****/releases/20220302084015/Rakefile:4:in `<top (required)>'
|
47
42
|
/home/ec2-user/****/shared/bundle/ruby/2.6.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
|
48
|
-
|
43
|
+
(中略)
|
49
44
|
/home/ec2-user/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'
|
50
45
|
```
|
51
46
|
|
@@ -125,15 +120,7 @@
|
|
125
120
|
/usr/local/src/mecab-0.996/src/mecab-test-gen
|
126
121
|
/usr/local/src/mecab-0.996/doc/mecab.css
|
127
122
|
/usr/local/src/mecab-0.996/doc/mecab.html
|
128
|
-
/usr/local/src/mecab-0.996/doc/doxygen/mecab_8h-source.html
|
129
|
-
/usr/local/src/mecab-0.996/doc/doxygen/structmecab__dictionary__info__t-members.html
|
130
|
-
/usr/local/src/mecab-0.996/doc/doxygen/structmecab__node__t-members.html
|
131
|
-
/usr/local/src/mecab-0.996/doc/doxygen/structmecab__path__t-members.html
|
132
|
-
/usr/local/src/mecab-0.996/doc/doxygen/structmecab__dictionary__info__t.html
|
133
|
-
/usr/local/src/mecab-0.996/doc/doxygen/structmecab__path__t.html
|
134
|
-
/usr/local/src/mecab-0.996/doc/doxygen/mecab_8h_source.html
|
135
|
-
/usr/local/src/mecab-0.996/doc/doxygen/structmecab__node__t.html
|
136
|
-
|
123
|
+
(中略)
|
137
124
|
/usr/local/src/mecab-0.996/doc/libmecab.html
|
138
125
|
/usr/local/src/mecab-0.996/mecab.iss.in
|
139
126
|
/usr/local/src/mecab-0.996/mecab-config.in
|
@@ -184,6 +171,24 @@
|
|
184
171
|
https://qiita.com/Takka_Log/items/a534680ad224ea3e6b62
|
185
172
|
https://stackoverflow.com/questions/59278226/could-not-open-library-usr-lib-libmecab-so-2-usr-lib-libmecab-so-2-cannot
|
186
173
|
|
174
|
+
### 別の方法で試したこと
|
175
|
+
以下のようにgroongaのリポジトリを入れて行う方法も各所で紹介されていたので試しましたが、yum installができませんでした。
|
176
|
+
https://mebee.info/2021/02/18/post-29277/
|
177
|
+
```bash
|
178
|
+
[ec2-user@*** ~]$ sudo yum install --nogpgcheck -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
|
179
|
+
# こちらは正常完了
|
180
|
+
[ec2-user@*** ~]$ sudo yum repolist enabled | grep groonga
|
181
|
+
groonga-amazon-linux/aarch64 The Groonga Project for Amazon Lin 24
|
182
|
+
[ec2-user@*** ~]$ sudo yum -y install mecab mecab-ipadic mecab-devel --nogpgcheck
|
183
|
+
読み込んだプラグイン:extras_suggestions, langpacks, priorities, update-motd
|
184
|
+
235 packages excluded due to repository priority protections
|
185
|
+
パッケージ mecab は利用できません。
|
186
|
+
パッケージ mecab-ipadic は利用できません。
|
187
|
+
パッケージ mecab-devel は利用できません。
|
188
|
+
エラー: 何もしません
|
189
|
+
```
|
190
|
+
こちらの方法でも、もし可能な方法や、エラーの原因であり得るものなどありましたらご教示いただけますと幸いです。
|
191
|
+
|
187
192
|
### 補足情報(FW/ツールのバージョンなど)
|
188
193
|
Ruby 2.6.6
|
189
194
|
Rails 5.2.5
|
1
試したこと追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -142,6 +142,9 @@
|
|
142
142
|
/usr/local/src/mecab-0.996/mecabrc
|
143
143
|
/usr/local/src/mecab-ipadic-2.7.0.tar.gz
|
144
144
|
/usr/local/src/mecab-ipadic-2.7.0-20070801
|
145
|
+
[ec2-user@*** ~]$ sudo find / -name libmecab.so*
|
146
|
+
[ec2-user@*** ~]$
|
147
|
+
|
145
148
|
```
|
146
149
|
|
147
150
|
### インストールしたときの手順
|