Skip to content

RuntimeError: no local gem found for mocha #830

@phs

Description

@phs

I'm having trouble getting my dev environment bootstrapped.

Following the README, I've been trying out the test suite. ant test seems fine (only 2 failures out of a few hundred tests) but ant spec and ant spec-short both fail in a similar way:

$ ant spec-short
Buildfile: /Users/phil/code/jruby/build.xml

init:

prepare-bin-jruby:

jar:

init:

create-dirs:

copy-resources:

copy-bc-resources:

copy-jline-resources:

update-constants:
     [echo] Updating Constants.java
     [echo] ...using git revision = 678a355, tzdata = 2012j
     [copy] Copying 1 file to /Users/phil/code/jruby/build/src_gen/org/jruby/runtime

_uc_internal_:

prepare:

compile-annotation-binder:

compile-jruby:

emma:

instrument:

generate-method-classes:

_gmc_internal_:

generate-unsafe:

_gu_internal_:

compile:

unzip-native-libs:

jar-jruby:

add-emma-jars:

jar-jopenssl:

jar-readline:

install-dev-gems:

install-jruby-launcher-gem:

install-gems:

spec:ci_interpreted_18_19:
     [echo] Running rake spec:ci_interpreted_18_19
     [echo] compile=OFF, threshold=20, objectspace=true threadpool=false reflection=false
     [java] JAVA options: {:fork=>"true", :failonerror=>"true", :classname=>"org.jruby.Main", :maxmemory=>"1024M"}
     [java] JAVA options: {:fork=>"true", :failonerror=>"true", :classname=>"org.jruby.Main", :maxmemory=>"1024M"}
     [java] RuntimeError: no local gem found for mocha
     [java]   maybe_install_gems at /Users/phil/code/jruby/build/classes/jruby/jruby/commands.rb:37
     [java]              reject! at org/jruby/RubyArray.java:2648
     [java]            delete_if at org/jruby/RubyArray.java:2661
     [java]   maybe_install_gems at /Users/phil/code/jruby/build/classes/jruby/jruby/commands.rb:20
     [java]               (root) at maybe_install_gems:1
     [java] /Users/phil/code/jruby/lib/ruby/gems/shared/gems/rake-10.0.3/lib/rake/task.rb:176 warning: singleton on non-persistent Java type Java::OrgApacheToolsAnt::ExitStatusException (http://wiki.jruby.org/Persistence)
     [java] rake aborted!
     [java] Java returned: 1
     [java] org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
     [java] org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions