Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install but can't use. #264

Open
gxxxh opened this issue Sep 19, 2024 · 5 comments
Open

install but can't use. #264

gxxxh opened this issue Sep 19, 2024 · 5 comments
Labels

Comments

@gxxxh
Copy link

gxxxh commented Sep 19, 2024

I use centos to install this tool. But it can't be use, here is the error.
/usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems.rb:281:in find_spec_for_exe': can't find gem seccomp-tools (>= 0.a) with executable seccomp-tools (Gem::GemNotFoundException)
from /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems.rb:300:in activate_bin_path'

Do you have binary file that can be used directly?

@david942j
Copy link
Owner

Hi @gxxxh

could you provide your output of
gem list seccomp-tools

and

ruby -e 'require "seccomp-tools"; p SeccompTools::VERSION'

and

seccomp-tools -h

?

@gxxxh
Copy link
Author

gxxxh commented Sep 23, 2024

gem list seccomp-tools list nothing


*** LOCAL GEMS ***

ruby -e 'require "seccomp-tools"; p SeccompTools::VERSION'

<internal:/usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- seccomp-tools (LoadError)
        from <internal:/usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from -e:1:in `<main>'

seccomp-tools -h

/usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems.rb:281:in `find_spec_for_exe': can't find gem seccomp-tools (>= 0.a) with executable seccomp-tools (Gem::GemNotFoundException)
        from /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems.rb:300:in `activate_bin_path'
        from /usr/local/bin/seccomp-tools:23:in `<main>'

ruby -v

ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]

rvm version

rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]

I think I didn't install it successfully, but it's hard there is no error reported when I install it, I don't know how to handle it.
Btw, it's not convenient to install it with ruby, is it possible to release as a binary?

@david942j
Copy link
Owner

The expected way to install seccomp-tools is running gem install seccomp-tools

@gxxxh
Copy link
Author

gxxxh commented Sep 27, 2024

The expected way to install seccomp-tools is running gem install seccomp-tools

Yes, I install it in this way, but It doesn't work

@david942j
Copy link
Owner

david942j commented Sep 28, 2024

What were the error messages when you installed it? Since your previous output of gem list seccomp-tools had nothing, there must be some error happened when you ran gem install seccomp-tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants