I have a Gradle task from X-road project:
task runModelTests(dependsOn: [updateSQLiteDbSchema], type: Exec) {
commandLine = ['jruby', '-S', 'rake', 'test:units', 'RAILS_ENV=test']
}
The task is failed with following exception:
Could not start 'jruby'
Cannot run program "jruby" (in directory "/home/virtdev/IdeaProjects/X-Road/src/center-service"): error=2, No such file or directory
error=2, No such file or directory
But I have jruby -v:
warning: --1.9 ignored
jruby 9.2.9.0 (2.5.7) 2019-10-30 458ad3e Eclipse OpenJ9 VM openj9-0.26.0 on 11.0.11+9 +jit [linux-x86_64]
rvm -v:
rvm 1.29.12
Ubuntu 20.04
Update:
I don't have a problem with Gradle.
The problem is jruby: No suck file or directory -- warble (LoadError)
when I run jruby -S warble
cmd
in /src/central-server
dir.
Similar issue
I manually install warbler
after that script failed with another dependency error.
In the end I completely reinstalled RVM
with and it helped.