# Re: Running rake mspec:lib

**URL:** <https://www.ruby-forum.com/t/re-running-rake-mspec-lib/139640>\
**Category:** IronRuby\
**Created:** [June 5, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/re-running-rake-mspec-lib/139640 "2008-06-05T18:28:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_LSSIRONRUBY](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Post date:** [June 5, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/re-running-rake-mspec-lib/139640/1 "2008-06-05T18:28:50Z")

</div>

Can you verify this behavior by doing a local deploy and running the svn  
build from a non merlin cmd prompt?

- John  
Sent from my phone

* * *

From: Jim D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Thursday, June 05, 2008 12:24 PM  
To: removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] Running rake mspec:lib

Optparse should be in the Libs folder with our hacks and such. If itâ€™s  
not then something didnâ€™t get pushed out correctly.

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Michael  
Letterle  
Sent: Thursday, June 05, 2008 6:28 AM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Running rake mspec:lib

Copy optparse.rb from an MRI installation (i.e.  
lib/ruby/1.8/optparse.rb) into the same directory as ir.exe … I believe  
this worked for me when I was working on getting mspec running.  
On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon D.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

I am having trouble running the RubySpecs from rake.

First I get this:

D:\dev\ruby\ironruby\head\>rake mspec:lib

(in D:/dev/ruby/ironruby/head)

mspec/bin/mspec:141:in `exec’: No such file or directory -  
d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT)

```
    from mspec/bin/mspec:141:in `run'

    from 

```

d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.rb:91:in  
`main’

```
    from mspec/bin/mspec:146

```

rake aborted!

Command failed with status (1): [ruby mspec/bin/mspec ci -t  
d:\dev\ruby\iro…]

D:/dev/ruby/ironruby/head/rakefile:350:in `invoke\_mspec’

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

It appears that ir.cmd is hard-coded inside rake to look in the release  
folder rather than debug, which is to where rake compile is building.

OK so I copy the files over from debug to release and now I get:

D:\dev\ruby\ironruby\head\>rake mspec:lib

(in D:/dev/ruby/ironruby/head)

d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in  
`require’: no such file to load – optparse (LoadError)

```
    from :0:in `Initialize##1'

```

rake aborted!

Command failed with status (1): [ruby mspec/bin/mspec ci -t  
d:\dev\ruby\iro…]

D:/dev/ruby/ironruby/head/rakefile:351:in `invoke\_mspec’

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

I get the same result with rake mspec:core and mspec:lang.

Any ideas?

Pete
