# Error when running script/plugin install with -x

**URL:** <https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368>\
**Category:** Rails\
**Created:** [August 6, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368 "2007-08-06T16:01:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hardbap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Post date:** [August 6, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368/1 "2007-08-06T16:01:18Z")

</div>

I’m trying to install the RSpec plugin using this command:

ruby script/plugin install -x  
svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec

But I get this message: Cannot install using externals because this  
project is not under subversion.

The project I am trying to install this to is under source control and  
I verified using the command “svn info”.

I did install the RSpec gem, could this be causing an issue?

Here is my environment:

Windows XP SP2  
subversion 1.4.4  
ruby 1.8.5  
rails 1.2.3

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Hardbap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Post date:** [August 6, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368/2 "2007-08-06T18:08:45Z")

</div>

On 8/6/07, Hardbap [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I did install the RSpec gem, could this be causing an issue?
> 
> Here is my environment:
> 
> Windows XP SP2  
> subversion 1.4.4  
> ruby 1.8.5  
> rails 1.2.3
> 
> Thanks for the help.

Is vendor/plugins under svn?

---

<div class="post-metadata">

**Author:** ![Hardbap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Post date:** [August 6, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368/3 "2007-08-06T21:03:12Z")

</div>

On 8/6/07, Hardbap [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> yes, vendor/plugins is under svn.

Then I can’t explain it. I’ve seen that problem before where the  
project is under svn but vendor/plugins doesn’t exist until you try to  
install a plugin, and then you have explicitly add vendor/plugins to  
svn. But if your vendor/plugins is definitely under version control  
(i.e. svn info vendor/plugins gives you the right information) then I  
have no idea what would be causing it. Sorry.

---

<div class="post-metadata">

**Author:** ![Hardbap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Post date:** [August 6, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368/4 "2007-08-06T21:33:16Z")

</div>

I see you’re running Windows. If you’re using the svn [ASP.NET](http://ASP.NET) hack such  
that  
your svn admin dirs are \_svn instead of .svn, then script/plugin install  
-x  
doesn’t work. I submitted a patch to Rails not that long ago:  
[http://dev.rubyonrails.org/ticket/9007](http://dev.rubyonrails.org/ticket/9007). If you are indeed using the svn  
[ASP.NET](http://ASP.NET) hack, please write to the Rails core mailing list [  
[http://groups.google.com/group/rubyonrails-core](http://groups.google.com/group/rubyonrails-core) ] and ask for the patch  
to  
be reviewed. I asked when I submitted the patch, but nobody has  
commented on  
it yet.

Of course, you could just set svn:externals on vendor/plugins to  
reference  
the rspec and rspec\_on\_rails plugins. Some people don’t like to do that,  
though, because it makes them dependent on external svn servers being  
up,  
among other reasons.

Regards,  
Craig

---

<div class="post-metadata">

**Author:** ![Hardbap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Post date:** [August 6, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368/5 "2007-08-06T18:22:47Z")

</div>

yes, vendor/plugins is under svn.

---

<div class="post-metadata">

**Author:** ![Hardbap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Post date:** [August 6, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368/6 "2007-08-06T22:16:19Z")

</div>

That must be it Craig because I am running the [ASP.NET](http://ASP.NET) hack. Thanks!

---

<div class="post-metadata">

**Author:** ![Hardbap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Post date:** [August 7, 2007, 6:48am UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368/7 "2007-08-07T06:48:59Z")

</div>

Very true, but it was so painfully slow for me when I last tried it  
that I abandoned it for that little project. Perhaps your project  
will fare better.

Regards,  
Craig

---

<div class="post-metadata">

**Author:** ![Hardbap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/c89c15/32.png) [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Post date:** [August 7, 2007, 3:30am UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368/8 "2007-08-07T03:30:45Z")

</div>

Instead of using svn:external you can use Piston  
[http://www.rubyinside.com/advent2006/12-piston.html](http://www.rubyinside.com/advent2006/12-piston.html)
