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

Getting error when installing dependencies on Mac #304

Open
perifitdevs opened this issue Sep 6, 2023 · 0 comments
Open

Getting error when installing dependencies on Mac #304

perifitdevs opened this issue Sep 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@perifitdevs
Copy link

perifitdevs commented Sep 6, 2023

Hello,

I've been trying to generate SBOM in my project but I still cannot run the tool successfully since I got some error related to dependencies installing.
I got this error:

INFO[2023-09-06T17:45:15+07:00] Starting to generate SPDX ...
FATA[2023-09-06T17:45:15+07:00] Failed to initialize command: * Tool only supports ruby gems projects with valid .gemspec manifest in project root directory

Then I tried this command that I found in issues:
bundle config set --local path 'vendor/bundle' && bundle install && bundle exec rake install

I got another error:

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/Users/binhtnt/Perifit/mainapp/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>' /Users/binhtnt/.rvm/gems/ruby-3.1.3/bin/ruby_executable_hooks:22:in eval'
/Users/binhtnt/.rvm/gems/ruby-3.1.3/bin/ruby_executable_hooks:22:in `

'
(See full trace by running task with --trace)

Here is my Gemfile:

source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '>= 2.6.10'

gem 'rake', '>= 11.3.0'

gem 'bundler', '>= 2.3.26'

gem 'cocoapods', '>= 1.11.3'

Looking forward for your help.
Thanks

@perifitdevs perifitdevs added the bug Something isn't working label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant