BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 129 forks source link

COSMOS4 Jruby dependency install errors (RHEL7) #1749

Open awaddelow opened 2 years ago

awaddelow commented 2 years ago

I'm having trouble executing bundle install on my cosmos4 project when using Jruby.

Linux kernel version: 3.10.0-1160.71.1.el7.x86_64 Jruby version: jruby 9.2.6.0 (2.5.3) 2022-07-18 15ba00b OpenJDK 64-Bit Server VM 25.332-b09 on 1.8.0_332-b09 +jit [linux-x86_64] rvm version: 1.29.9 bundler version: 2.3.18 Desired cosmos version: 4.5.2

When I ran rvm install jruby this was the default version that it pulled down. There seems to be an issue when building the psych gem.

Output from running bundle install from within my cosmos project directory:


Resolving dependencies.......
Using rake 13.0.6
Using bundler 2.3.18
Installing bit-struct 0.17
Installing coderay 1.1.3
Installing json 2.6.1 (java)
Installing httpclient 2.8.3
Installing method_source 1.0.0
Installing ffi 1.15.5 (java)
Installing nokogiri 1.10.10 (java)
Installing webrick 1.7.0
Installing jar-dependencies 0.4.1
Installing puma 3.12.6 (java)
Installing rack 2.2.3
Installing rdoc 6.3.3
Installing rubyzip 1.3.0
Installing snmp 1.3.2
Installing uuidtools 2.2.0
Fetching spoon 0.0.6
Installing spoon 0.0.6
Fetching yard 0.9.27
Fetching psych 3.3.2 (java)
Installing psych 3.3.2 (java)
Installing yard 0.9.27
  jar dependencies for psych-3.3.2-java.gemspec . . .
Installing gem 'ruby-maven' . . .
Fetching pry 0.14.1 (java)
Installing pry 0.14.1 (java)
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5

using maven for the first time results in maven
downloading all its default plugin and can take time.
as those plugins get cached on disk and further execution
of maven is much faster then the first time.

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/jars/gemspec_pom.rb: only whitespace content allowed before start tag and not # (position: START_DOCUMENT seen #... @1:1)  @ line 1, column 1
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project  (/usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/jars/gemspec_pom.rb) has 1 error
[ERROR]     Non-parseable POM /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/jars/gemspec_pom.rb: only whitespace content allowed before start tag and not # (position: START_DOCUMENT seen #... @1:1)  @ line 1, column 1 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
--- ERROR REPORT TEMPLATE -------------------------------------------------------

Errno::ENOENT: No such file or directory - /usr/local/rvm/gems/jruby-9.2.6.0/gems/psych-3.3.2-java/deps.lst
  org/jruby/RubyIO.java:1236:in `sysopen'
  org/jruby/RubyIO.java:3770:in `read'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/jars/installer.rb:69:in `load_from_maven'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/jars/installer.rb:235:in `install_dependencies'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/jars/installer.rb:224:in `do_install'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/jars/installer.rb:170:in `vendor_jars'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/jars/post_install_hook.rb:28:in `block in <main>'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/rubygems/installer.rb:374:in `block in run_post_install_hooks'
  org/jruby/RubyArray.java:1792:in `each'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/stdlib/rubygems/installer.rb:373:in `run_post_install_hooks'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/rubygems_gem_installer.rb:43:in `install'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/source/rubygems.rb:207:in `install'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/installer/gem_installer.rb:54:in `install'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/worker.rb:62:in `apply_func'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/worker.rb:57:in `block in process_queue'
  org/jruby/RubyKernel.java:1411:in `loop'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/worker.rb:54:in `process_queue'
  /usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared/gems/bundler-2.3.18/lib/bundler/worker.rb:91:in `block in create_threads'

## Environment

Bundler             2.3.18
  Platforms         ruby, universal-java-1.8
Ruby                2.5.3p0 (2022-07-18 revision 66309) [universal-java-1.8]
  Full Path         /usr/local/rvm/rubies/jruby-9.2.6.0/bin/jruby
  Config Dir        /usr/local/rvm/rubies/jruby-9.2.6.0/etc
RubyGems            3.0.9
  Gem Home          /usr/local/rvm/gems/jruby-9.2.6.0
  Gem Path          /usr/local/rvm/gems/jruby-9.2.6.0:/usr/local/rvm/rubies/jruby-9.2.6.0/lib/ruby/gems/shared
  User Home         /root
  User Path         /root/.gem/jruby/2.5.0
  Bin Dir           /usr/local/rvm/gems/jruby-9.2.6.0/bin
OpenSSL             
  Compiled          JRuby-OpenSSL 0.14.0
  Loaded            JRuby-OpenSSL 0.14.0
  Cert File         /etc/pki/tls/certs/ca-bundle.crt
  Cert Dir          /etc/ssl/certs
Tools               
  Git               1.8.3.1
  RVM               1.29.9 (latest)
  rbenv             not installed
  chruby            not installed
  rubygems-bundler  (1.4.5)
Gem.ruby            /usr/local/rvm/rubies/jruby-9.2.6.0/bin/jruby
bundle #!           /usr/bin/env jruby

## Bundler Build Metadata

Built At          2022-07-14
Git SHA           fc31b7f7d9
Released Version  true

## Gemfile

### Gemfile

ruby
# encoding: ascii-8bit

source 'https://rubygems.org'

gem 'ruby-termios', '>= 0.9' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw|cygwin/i and RUBY_ENGINE=='ruby'
if ENV['COSMOS_DEVEL']
  gem 'cosmos', :path => ENV['COSMOS_DEVEL']
else
  gem 'cosmos', '>=4.5.0'
end

gem 'bit-struct', '>=0.16'
gem 'ffi', '>=1.9.10'

# Uncomment this line to add DART dependencies to your main Gemfile
# instance_eval File.read(File.join(__dir__, 'config/dart/Gemfile'))

### Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    bit-struct (0.17)
    coderay (1.1.3)
    cosmos (4.5.2)
      bundler (>= 1.3)
      httpclient (~> 2.8)
      json (>= 1.5, < 3)
      nokogiri (~> 1.10, < 1.13)
      opengl-bindings (~> 1.6)
      pry (~> 0.9)
      pry-doc (~> 0.5)
      psych (~> 3.3)
      puma (~> 3.10)
      qtbindings (~> 4.8.6, >= 4.8.6.2)
      rack (~> 2.0)
      rake (>= 10.0)
      rdoc (>= 4)
      rubyzip (~> 1.2)
      snmp (~> 1.0)
      uuidtools (~> 2.1)
      yard (~> 0.9.11)
    ffi (1.15.5)
    httpclient (2.8.3)
    json (2.6.1)
    method_source (1.0.0)
    mini_portile2 (2.4.0)
    nokogiri (1.10.10)
      mini_portile2 (~> 2.4.0)
    opengl-bindings (1.6.12)
    pry (0.14.1)
      coderay (~> 1.1)
      method_source (~> 1.0)
    pry-doc (0.13.5)
      pry (~> 0.11)
      yard (~> 0.9.11)
    psych (3.3.2)
    puma (3.12.6)
    qtbindings (4.8.6.5)
    rack (2.2.3)
    rake (13.0.6)
    rdoc (6.3.3)
    ruby-termios (1.1.0)
    rubyzip (1.3.0)
    snmp (1.3.2)
    uuidtools (2.2.0)
    webrick (1.7.0)
    yard (0.9.27)
      webrick (~> 1.7.0)

PLATFORMS
  ruby

DEPENDENCIES
  bit-struct (>= 0.16)
  cosmos (>= 4.5.0)
  ffi (>= 1.9.10)
  ruby-termios (>= 0.9)

BUNDLED WITH
   2.2.26

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.```