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

Can not install, bundle install error #507

Open
FalcoGer opened this issue Feb 11, 2021 · 0 comments
Open

Can not install, bundle install error #507

FalcoGer opened this issue Feb 11, 2021 · 0 comments

Comments

@FalcoGer
Copy link

I get the following output when trying to install via bundle install as instructed:

~/repos/snorby>bundle install
Following files may not be writable, so sudo is needed:
  /usr/local/bin
  /var/lib/gems/2.7.0
  /var/lib/gems/2.7.0/build_info
  /var/lib/gems/2.7.0/bundler
  /var/lib/gems/2.7.0/cache
  /var/lib/gems/2.7.0/doc
  /var/lib/gems/2.7.0/extensions
  /var/lib/gems/2.7.0/gems
  /var/lib/gems/2.7.0/specifications
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency warbler (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency jruby-rack-worker (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
error: cannot open .git/FETCH_HEAD: Permission denied

Retrying `git fetch --force --quiet --tags "/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88"` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88"` in directory /var/lib/gems/2.7.0/bundler/gems/delayed_job_data_mapper-6f1c4a8c3ad6 has failed.
If this error persists you could try removing the cache directory '/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88'error: cannot open .git/FETCH_HEAD: Permission denied

Retrying `git fetch --force --quiet --tags "/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88"` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88"` in directory /var/lib/gems/2.7.0/bundler/gems/delayed_job_data_mapper-6f1c4a8c3ad6 has failed.
If this error persists you could try removing the cache directory '/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88'error: cannot open .git/FETCH_HEAD: Permission denied

Retrying `git fetch --force --quiet --tags "/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88"` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88"` in directory /var/lib/gems/2.7.0/bundler/gems/delayed_job_data_mapper-6f1c4a8c3ad6 has failed.
If this error persists you could try removing the cache directory '/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88'error: cannot open .git/FETCH_HEAD: Permission denied

Git error: command `git fetch --force --quiet --tags "/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88"` in directory
/var/lib/gems/2.7.0/bundler/gems/delayed_job_data_mapper-6f1c4a8c3ad6 has failed.
If this error persists you could try removing the cache directory '/home/ubuntu/.bundle/cache/git/delayed_job_data_mapper-997ddf5a3c457cc24fa473f313d1b18056addb88'



~/repos/snorby>sudo bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency warbler (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
The dependency jruby-rack-worker (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.....
Using rake 0.9.2
Fetching RedCloth 4.2.9
Installing RedCloth 4.2.9 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.7.0/gems/RedCloth-4.2.9/ext/redcloth_scan
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210211-231080-6zh104.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.7.0/gems/RedCloth-4.2.9 for inspection.
Results logged to /var/lib/gems/2.7.0/extensions/aarch64-linux/2.7.0/RedCloth-4.2.9/gem_make.out

An error occurred while installing RedCloth (4.2.9), and Bundler cannot continue.
Make sure that `gem install RedCloth -v '4.2.9' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  RedCloth

~/repos/snorby>sudo gem install RedCloth -v '4.2.9' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR:  Error installing RedCloth:
	ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.7.0/gems/RedCloth-4.2.9/ext/redcloth_scan
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210211-231271-1k95rf5.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.7.0/gems/RedCloth-4.2.9 for inspection.
Results logged to /var/lib/gems/2.7.0/extensions/aarch64-linux/2.7.0/RedCloth-4.2.9/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant