Fóruns: users (Thread #47760)

ruby3.0で動作せず (2022-12-11 11:15 by 西山 #92949)

初めまして。以前まで動作していたのですが、
OSのバージョンを上げたところ動作しなくなりました。
Spamフィルタリングが働かず、困っています。

OS: Ubuntu 22.04 LTS
Linux v133-130-71-53.myvps.jp 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

bsfilter: RELEASE 1.0.19 REVISION 1.87

ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]

bsfilter 11079の結果
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- sdbm (LoadError)
Did you mean? dbm
from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/bin/bsfilter:3106:in `get_options'
from /usr/bin/bsfilter:3262:in `setup'
from /usr/bin/bsfilter:3413:in `<main>'

対処方法ありましたら、アドバイスお願いします。

Responder a #92949×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: ruby3.0で動作せず (2022-12-11 16:49 by nabeken #92950)

レポートありがとうございます。
Ruby3.0 で SDBM が標準ライブラリから削除されたようで、それが原因と思われます。
gem install sdbm
を実行する等して、SDBMライブラリをインストール貰えませんでしょうか。
Responder a #92949

Responder a #92950×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: ruby3.0で動作せず(解決) (2022-12-13 19:02 by 西山 #92976)

アドバイス通りの手順で動作しました。

gem install sdbm
( ruby-devが必要でした。)

ありがとうございました。


Responder a #92949

Responder a #92976×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login