Neel,

Ruby on Windows has some issues with the built in file copy command, I never
got script/extension install working on my windows dev setup. However, it is
not too hard to install extensions manually.

Here is the radiant wiki article on it:
http://wiki.github.com/radiant/radiant/installing-extensions

Since Windows does not have wget, you will either have to install it (
http://gnuwin32.sourceforge.net/packages/wget.htm) or just use your web
browser to download the tarball instead.

For example, to install Comments:

1: Open your web browser and put this url in your address bar:
http://github.com/artofmission/radiant-comments/tarball/master (the great
thing about github is if you have a git url like git://
github.com/artofmission/radiant-comments.git from the extension registry,
changing the git:// to http:// and removing the .git from the end will get
you the web page of the extension on github, and adding /tarball/master on
the end will download a .tar.gz file of the latest version of the
extension).

2: Once you have downloaded the tarball, extract it into your
<project>/vendor/extensions/comments folder (create if necessary) so the
files in /vendor/extensions/comments/ match the listing here:
http://github.com/artofmission/radiant-comments. WinRAR and 7-zip should
both open these just fine in windows or you can download bsdtar -
http://gnuwin32.sourceforge.net/packages/libarchive.htm - to extract via the
command line - use bsdtar -xvzf <archivename>.

3: open your command prompt to your project directory and run the following
two commands:

C:\Website> rake radiant:extensions:comments:migrate
and
C:\Website> rake radiant:extensions:comments:update

If you get an error running one of these two commands saying rake does not
know how to build this task, then the extension you are installing may not
have anything to do in this task. In the case of the comments extension, it
should run both.

4: restart your web server and then go to your admin site and check your
settings, comments should be listed as installed and everything should be
working.

Hope this helps!

Ben

> ---------- Forwarded message ----------
> From: neel iyer <kniyer....@gmail.com>
> To: radiant@radiantcms.org
> Date: Fri, 19 Feb 2010 22:30:24 +0530
> Subject: Re: [Radiant] Help!!!!!!!
> sorry ........
> this is the error  msg tht i got when i excecuted tht command.......
>
> C:\website>env RAILS_ENV=production script/extension install comments
> The filename, directory name, or volume label syntax is incorrect.
> The system cannot find the path specified.
> c:/Ruby/lib/ruby/1.8/fileutils.rb:1255:in `copy': unknown file type:
> C:/DOCUME~1
> /neel/LOCALS~1/Temp/comments (RuntimeError)
>        from c:/Ruby/lib/ruby/1.8/fileutils.rb:451:in `copy_entry'
>        from c:/Ruby/lib/ruby/1.8/fileutils.rb:1324:in `traverse'
>        from c:/Ruby/lib/ruby/1.8/fileutils.rb:448:in `copy_entry'
>        from c:/Ruby/lib/ruby/1.8/fileutils.rb:423:in `cp_r'
>        from c:/Ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest'
>        from c:/Ruby/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0'
>        from c:/Ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest'
>        from c:/Ruby/lib/ruby/1.8/fileutils.rb:422:in `cp_r'
>        from
> c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> script.rb:49:in `copy_to_vendor_extensions'
>        from
> c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> script.rb:147:in `copy_to_vendor_extensions'
>        from
> c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> script.rb:43:in `install'
>        from
> c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> script.rb:93:in `install'
>        from
> c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> script.rb:10:in `install'
>        from
> c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> script.rb:266:in `initialize'
>        from
> c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> script.rb:224:in `new'
>        from
> c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> script.rb:224:in `execute'
>        from script/extension:5
>
>
> regards
> neel
>


> ---------- Forwarded message ----------
> From: Chaim Kirby <chaim.ki...@childrens.harvard.edu>
> To: "radiant@radiantcms.org" <radiant@radiantcms.org>
> Date: Fri, 19 Feb 2010 12:27:25 -0500
> Subject: Re: [Radiant] Help!!!!!!!
> Neel -
> There usually isn't an install task for extensions
> If you have the comments extension in your vendor/extensions folder then
> from your root radiant folder run:
> rake production radiant:extensions:comments:migrate
> then run:
> rake production radiant:extensions:comments:update
>
> Chaim
>
>
> neel iyer wrote:
> > sorry ........
> > this is the error  msg tht i got when i excecuted tht command.......
> >
> > C:\website>env RAILS_ENV=production script/extension install comments
> > The filename, directory name, or volume label syntax is incorrect.
> > The system cannot find the path specified.
> > c:/Ruby/lib/ruby/1.8/fileutils.rb:1255:in `copy': unknown file type:
> > C:/DOCUME~1
> > /neel/LOCALS~1/Temp/comments (RuntimeError)
> >         from c:/Ruby/lib/ruby/1.8/fileutils.rb:451:in `copy_entry'
> >         from c:/Ruby/lib/ruby/1.8/fileutils.rb:1324:in `traverse'
> >         from c:/Ruby/lib/ruby/1.8/fileutils.rb:448:in `copy_entry'
> >         from c:/Ruby/lib/ruby/1.8/fileutils.rb:423:in `cp_r'
> >         from c:/Ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest'
> >         from c:/Ruby/lib/ruby/1.8/fileutils.rb:1411:in
> `fu_each_src_dest0'
> >         from c:/Ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest'
> >         from c:/Ruby/lib/ruby/1.8/fileutils.rb:422:in `cp_r'
> >         from
> > c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> > script.rb:49:in `copy_to_vendor_extensions'
> >         from
> > c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> > script.rb:147:in `copy_to_vendor_extensions'
> >         from
> > c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> > script.rb:43:in `install'
> >         from
> > c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> > script.rb:93:in `install'
> >         from
> > c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> > script.rb:10:in `install'
> >         from
> > c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> > script.rb:266:in `initialize'
> >         from
> > c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> > script.rb:224:in `new'
> >         from
> > c:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> > script.rb:224:in `execute'
> >         from script/extension:5
> >
> >
> > regards
> > neel
> >
> >
> >
> > On Fri, Feb 19, 2010 at 10:22 PM, neel iyer <kniyer....@gmail.com>
> wrote:
> >
> >> thanks for the reply......
> >> but in windows when i excecute the following command.. it show ..
> >>
> >> C:\website>RAILS_ENV=production script/extension install comments
> >> 'RAILS_ENV' is not recognized as an internal or external command,
> >> operable program or batch file.
> >>
> >>
> >>
> >> regards
> >> neel
> >>
> >>
> >>
> >> On Fri, Feb 19, 2010 at 7:55 PM, Leon Miller-Out <l...@singlebrook.com
> >wrote:
> >>
> >>> Neel, you need to use Radiant's script/extension to install extensions.
> >>> I'm
> >>> not sure how the environment variables work on Windows (for RAILS_ENV),
> >>> but
> >>> on OS X and Linux, I'd do:
> >>>
> >>> RAILS_ENV=production script/extension install comments
> >>>
> >>> Once the extension is installed, then you can run any rake tasks that
> come
> >>> with it. "migrate" and "update" seem to be the common ones, but the
> >>> install
> >>> command above should run those for you in most cases.
> >>>
> >>> Leon
> >>>
> >>> =============================
> >>> Leon Miller-Out
> >>> President & CTO, Singlebrook Technology, Inc
> >>> l...@singlebrook.com
> >>> p 607-330-1493
> >>> f 607-697-0457
> >>> 516 W. State St. - Suite 100
> >>> Ithaca, NY 14850
> >>>
> >>>
> >>> On Thu, Feb 18, 2010 at 9:17 PM, neel iyer <kniyer....@gmail.com>
> wrote:
> >>>
> >>>> i'm trying to install some of the extension of radiant. currently i'm
> >>> using
> >>>> radiant 0.8.1 and using windows os. but each time i excecute any
> command
> >>> to
> >>>> install those extension, an error msg is been displayed......
> >>>>
> >>>> this is when i tried to install comment extension.....
> >>>>
> >>>>
> >>>> C:\website>rake radiant:extensions:comments:install --trace
> >>>> (in C:/website)
> >>>> rake aborted!
> >>>> Don't know how to build task 'radiant:extensions:comments:install'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in `[]'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in
> >>> `invoke_task'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> >>> `top_level'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> >>> `top_level'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> >>>> `standard_exceptio
> >>>> n_handling'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
> >>> `top_level'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> >>>> `standard_exceptio
> >>>> n_handling'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
> >>>> C:/Ruby/bin/rake:19:in `load'
> >>>> C:/Ruby/bin/rake:19
> >>>>
> >>>> ------------------
> >>>>
> >>>> C:\website>ruby script/about
> >>>>
> >>>>
> >>>
> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/acti
> >>>> ve_support/dependencies.rb:105:in `const_missing': uninitialized
> >>> constant
> >>>> AudioP
> >>>> layerExtension::Inflector (NameError)
> >>>>        from
> >>>> C:/website/vendor/extensions/audio_player/audio_player_extension.rb
> >>>> :28:in `activate'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension.
> >>>> rb:60:in `activate'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/activesup
> >>>> port/lib/active_support/core_ext/symbol.rb:11:in `__send__'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/activesup
> >>>> port/lib/active_support/core_ext/symbol.rb:11:in `to_proc'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension_
> >>>> loader.rb:98:in `each'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension_
> >>>> loader.rb:98:in `activate_extensions'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/initialize
> >>>> r.rb:184:in `after_initialize'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/railties/
> >>>> lib/initializer.rb:179:in `process'
> >>>>         ... 6 levels...
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/railties/
> >>>> lib/commands/about.rb:1
> >>>>        from
> >>> C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> >>>> `ge
> >>>> m_original_require'
> >>>>        from
> >>> C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> >>>> `re
> >>>> quire'
> >>>>        from script/about:3
> >>>>
> >>>>
> >>>> ----------------------------------------------
> >>>> this is when i tried to install the textile extension.......
> >>>>
> >>>> C:\website>ruby script/extension install textile_editor
> >>>> The filename, directory name, or volume label syntax is incorrect.
> >>>> The system cannot find the path specified.
> >>>> C:/Ruby/lib/ruby/1.8/fileutils.rb:1255:in `copy': unknown file type:
> >>>> C:/DOCUME~1
> >>>> /neel/LOCALS~1/Temp/textile_editor (RuntimeError)
> >>>>        from C:/Ruby/lib/ruby/1.8/fileutils.rb:451:in `copy_entry'
> >>>>        from C:/Ruby/lib/ruby/1.8/fileutils.rb:1324:in `traverse'
> >>>>        from C:/Ruby/lib/ruby/1.8/fileutils.rb:448:in `copy_entry'
> >>>>        from C:/Ruby/lib/ruby/1.8/fileutils.rb:423:in `cp_r'
> >>>>        from C:/Ruby/lib/ruby/1.8/fileutils.rb:1395:in
> `fu_each_src_dest'
> >>>>        from C:/Ruby/lib/ruby/1.8/fileutils.rb:1411:in
> >>> `fu_each_src_dest0'
> >>>>        from C:/Ruby/lib/ruby/1.8/fileutils.rb:1393:in
> `fu_each_src_dest'
> >>>>        from C:/Ruby/lib/ruby/1.8/fileutils.rb:422:in `cp_r'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> >>>> script.rb:49:in `copy_to_vendor_extensions'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> >>>> script.rb:147:in `copy_to_vendor_extensions'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> >>>> script.rb:43:in `install'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> >>>> script.rb:93:in `install'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> >>>> script.rb:10:in `install'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> >>>> script.rb:266:in `initialize'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> >>>> script.rb:224:in `new'
> >>>>        from
> >>>> C:/Ruby/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/radiant/extension/
> >>>> script.rb:224:in `execute'
> >>>>        from script/extension:5
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> -----------
> >>>>
> >>>> pls help me out..........
> >>>>
> >>>>
> >>>> regards
> >>>> neel
> >>>> _______________________________________________
> >>>> Radiant mailing list
> >>>> Post: Radiant@radiantcms.org
> >>>> Search: http://radiantcms.org/mailing-list/search/
> >>>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> >>>> Radiant: http://radiantcms.org
> >>>> Extensions: http://ext.radiantcms.org
> >>>>
> >>> _______________________________________________
> >>> Radiant mailing list
> >>> Post: Radiant@radiantcms.org
> >>> Search: http://radiantcms.org/mailing-list/search/
> >>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> >>> Radiant: http://radiantcms.org
> >>> Extensions: http://ext.radiantcms.org
> >>>
> >>
> > _______________________________________________
> > Radiant mailing list
> > Post: Radiant@radiantcms.org
> > Search: http://radiantcms.org/mailing-list/search/
> > List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> > Radiant: http://radiantcms.org
> > Extensions: http://ext.radiantcms.org
>
_______________________________________________
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org

Reply via email to