etsuxのブログ

自分がハマったことなどを記録しています。

rails db:migrateのエラー(rmpd_util_str_to_dとlibexslt.so)

rmpd_util_str_to_dのシンボルが見つからないとのエラー。

$ rails db:migrate
rails aborted!
LoadError: dlopen failed: cannot locate symbol "rmpd_util_str_to_d" referenced by "/data/data/com.termux/files/usr/lib/ruby/2.6.0/aarch64-linux-android/bigdecimal/util.so"

patchelfでの対処が公開されていたので適用。

msfconsole didn't work · Issue #11492 · rapid7/metasploit-framework · GitHub

try this:

wget https://github.com/termux/termux-packages/files/2912002/fix-ruby-bigdecimal.sh.txt
bash fix-ruby-bigdecimal.sh.txt

and this after the one above:

$PREFIX/lib/ruby/2.6.0/aarch64-linux-android/bigdecimal/util.so

xsltのライブラリが見つからない。

$ rails db:migrate
rails aborted!
LoadError: dlopen failed: library "libexslt.so" not found

libxslt-devをインストール。

apt install libxslt-dev