[damagecontrol-user] Problems getting started with damagacontrol (SVN-tarball) on Windows

View: New views
4 Messages — Rating Filter:   Alert me  

[damagecontrol-user] Problems getting started with damagacontrol (SVN-tarball) on Windows

by Niklaus Giger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

In order to replace my own ruby scripts to do my daily builds at work,
I searched for tools
on the Web and found damagecontrol to be a very interesting project.

Yesterday I was unsuccessful trying to install damagecontrol on my
Powerbook running
Debian GNU/Linux but hope to be able to solve my problems after work.

Today I installed at work on my Windows XP using ruby 1.8.2
(2004-12-25) [i386-mswin32]
and gem version 0.8.11 all required gems for damagecontrol 0.6

As my firewall prevents a direct access to
svn://beaver.codehaus.org/damagecontrol/scm/branches/damagecontrol_active_record
(http would be fine) I downloaded the tarball offered by
http://svn.damagecontrol.codehaus.org/branches/damagecontrol_active_record/

As I was unable to install win32-sound-0.3.0 on my PC (I only have the
free GCC Mingw and Cygwin)
I put a  comment at the beginning of line 21  lib/damagecontrol.rb
 # require 'win32/sound'

As I was unable to install a CVS repository on my Network-Drive I
reinstalled damagecontrol
on a local HD.
 
rake migrate RAILS_ENV=production
complained about log/development.log. I fixed this error using a chmod
0666 using Cygwin.

Now I got the following error running script/create_demo_project:
C:\damagecontrol_active_record>  ruby script/create_demo_project
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning:
character class has `-' without escape
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning:
character class has `-' without escape
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning:
character class has `-' without escape
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning:
character class has `-' without escape
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/doctype.rb:196: warning:
regexp has `]' without escape
cvs import: cwd=C:\damagecontrol_active_record\demo
,current=C:\damagecontrol_active_record\demo
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/sqlite_adapter.rb:260:in
`table_s
tructure': ActiveRecord::StatementInvalid
(ActiveRecord::StatementInvalid)
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/sqlite_adapter.rb:259:in
`returning'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/sqlite_adapter.rb:259:in
`table_structure'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/sqlite_adapter.rb:191:in
`columns'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:708:in
`columns'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:720:in
`column_names'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:733:in
`column_methods_hash'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:930:in
`method_missing'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:930:in
`each'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:930:in
`method_missing'
        from script/create_demo_project:29

What is wrong here?

Any hints would be greatly appreciated.

Thanks in advance




The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or legally privileged
material. If you received this in error, please contact the sender and
delete the material from any computer.
Any review, retransmission, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or entities other
than the intended recipient is prohibited.

You have asked us to correspond with you via the Internet per e-mail.
However, the written version of our document signed by us is the only
authoritative version. Please note that e-mail correspondence can be lost
or falsified, with or without any interference by third persons.
Conventional e-mails are not protected against access by third persons and,
therefore, their confidentiality and/or integrity may not be assured.
Moreover, despite our use of  anti-virus software, a virus may enter your
systems in connection with the sending of e-mails. Thus, we are not liable
for any damages resulting out of these circumstances.



Re: [damagecontrol-user] Problems getting started with damagacontrol (SVN-tarball) on Windows

by Chad Woolley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FYI - if you want to still have access to SVN even though your corporate firewall does not open the port, you can use SSH tunneling.  Google for "ssh tunnel putty".

-- Chad

On 11/7/05, Niklaus Giger <n.giger@...> wrote:
Hi

In order to replace my own ruby scripts to do my daily builds at work,
I searched for tools
on the Web and found damagecontrol to be a very interesting project.

Yesterday I was unsuccessful trying to install damagecontrol on my
Powerbook running
Debian GNU/Linux but hope to be able to solve my problems after work.

Today I installed at work on my Windows XP using ruby 1.8.2
(2004-12-25) [i386-mswin32]
and gem version 0.8.11 all required gems for damagecontrol 0.6

As my firewall prevents a direct access to
svn://beaver.codehaus.org/damagecontrol/scm/branches/damagecontrol_active_record
(http would be fine) I downloaded the tarball offered by
http://svn.damagecontrol.codehaus.org/branches/damagecontrol_active_record/

As I was unable to install win32-sound-0.3.0 on my PC (I only have the
free GCC Mingw and Cygwin)
I put a  comment at the beginning of line 21  lib/damagecontrol.rb
# require 'win32/sound'

As I was unable to install a CVS repository on my Network-Drive I
reinstalled damagecontrol
on a local HD.

rake migrate RAILS_ENV=production
complained about log/development.log. I fixed this error using a chmod
0666 using Cygwin.

Now I got the following error running script/create_demo_project:
C:\damagecontrol_active_record>  ruby script/create_demo_project
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning:
character class has `-' without escape
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning:
character class has `-' without escape
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning:
character class has `-' without escape
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning:
character class has `-' without escape
c:/programme/ruby/lib/ruby/site_ruby/1.8/rexml/doctype.rb:196: warning:
regexp has `]' without escape
cvs import: cwd=C:\damagecontrol_active_record\demo
,current=C:\damagecontrol_active_record\demo
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/sqlite_adapter.rb:260:in
`table_s
tructure': ActiveRecord::StatementInvalid
(ActiveRecord::StatementInvalid)
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/sqlite_adapter.rb:259:in
`returning'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord- 1.12.2/lib/active_record/connection_adapters/sqlite_adapter.rb:259:in
`table_structure'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/connection_adapters/sqlite_adapter.rb:191:in
`columns'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:708:in
`columns'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:720:in
`column_names'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:733:in
`column_methods_hash'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord- 1.12.2/lib/active_record/base.rb:930:in
`method_missing'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord-1.12.2/lib/active_record/base.rb:930:in
`each'
        from
c:/programme/ruby/lib/ruby/gems/1.8/gems/activerecord- 1.12.2/lib/active_record/base.rb:930:in
`method_missing'
        from script/create_demo_project:29

What is wrong here?

Any hints would be greatly appreciated.

Thanks in advance




The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or legally privileged
material. If you received this in error, please contact the sender and
delete the material from any computer.
Any review, retransmission, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or entities other
than the intended recipient is prohibited.

You have asked us to correspond with you via the Internet per e-mail.
However, the written version of our document signed by us is the only
authoritative version. Please note that e-mail correspondence can be lost
or falsified, with or without any interference by third persons.
Conventional e-mails are not protected against access by third persons and,
therefore, their confidentiality and/or integrity may not be assured.
Moreover, despite our use of  anti-virus software, a virus may enter your
systems in connection with the sending of e-mails. Thus, we are not liable
for any damages resulting out of these circumstances.




Re: [damagecontrol-user] Problems getting started with damagacontrol (SVN-tarball) on Windows

by Aslak Hellesoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Niklaus,

> As my firewall prevents a direct access to
> svn://beaver.codehaus.org/damagecontrol/scm/branches/damagecontrol_active_record
> (http would be fine) I downloaded the tarball offered by
> http://svn.damagecontrol.codehaus.org/branches/damagecontrol_active_record/
>

DamageControl will move shortly to a new server where you can use
subversion over http.

> As I was unable to install win32-sound-0.3.0 on my PC (I only have the
> free GCC Mingw and Cygwin)
> I put a  comment at the beginning of line 21  lib/damagecontrol.rb
>  # require 'win32/sound'
>

You don't have to build it. Binaries (sound.so) are available for
download at RubyForge:
http://rubyforge.org/frs/?group_id=85&release_id=2239

Just stick it under your Ruby installation. I don't remember the exact
location. Look for other .so files or ask on win32utils.

Ideally I'd prefer to check this library into DC's subversion and
amend the load path, but I haven't spent much time trying to do so. If
someone knows how, please let me know.

> As I was unable to install a CVS repository on my Network-Drive I
> reinstalled damagecontrol
> on a local HD.
>
> rake migrate RAILS_ENV=production
> complained about log/development.log. I fixed this error using a chmod
> 0666 using Cygwin.
>

What exactly was the complaint?

> Now I got the following error running script/create_demo_project:
> C:\damagecontrol_active_record>  ruby script/create_demo_project

That file has been deleted from SVN a while ago. If it's in the
tarball, it must be a bug in the tarballer. Don't use it. Instead, see
the documentation, which you should be able to get from
http://localhost:3000/doc/import_project (yes I know, the web
interface looks quite crap).

Also make sure you're using edge rails, or at least the Rails 0.14.3
gem: http://download.rubyonrails.com/

>
> What is wrong here?
>
> Any hints would be greatly appreciated.
>
> Thanks in advance
>

Hope this helps. I'm happy to help out with further questions.

Aslak

Re: [damagecontrol-user] Problems getting started with damagacontrol (SVN-tarball) on Windows

by Aslak Hellesoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> That file has been deleted from SVN a while ago. If it's in the
> tarball, it must be a bug in the tarballer.

Ouch, what I said there was not correct. It's indeed there. I'll
either fix it or delete it...

Aslak