Thursday, May 17, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: JBauza
New Today New Today: 19
New Yesterday New Yesterday: 33
User Count Overall: 22559

People Online People Online:
Visitors Visitors: 9
Members Members: 0
Total Total: 9

Online Now Online Now:

ClearCanvas Community Forums

RIS Server Build -errors
Last Post 2010-04-13 02:55 PM by brainiacs. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
brainiacs
Basic Member
Basic Member
Posts:24

--
2010-04-13 01:51 PM  

 Hi everybody. Im new to ClearCanvas, I am in urgent need of help.

I have downloaded the source from the following path

svn://svn.clearcanvas.ca/source/Xia...ewer2.0SP1

I had tried to build RIS server without installing the Ruby first but then later on i came to know that i need the RUBY to build server. So,

I have just downloaded and installed the Ruby installer rubyinstaller-1.9.1-p378-rc2

for windows. After that, I tried to run msbuild ris.proj from the visual studio 2005's command prompt. But got errors relating the verion of solutions. Then i ran the command msbuild ris.proj from the visual studio 2008's command prompt. ths time th process continued to build several projects successfully. But suddenly the following errors came up on the console. I'm unable to understand their meaning. 

Project "D:\ClearCanvasSource\Ris\ris.proj" (1) is building "D:\ClearCanvasSour

ce\Ris\Server\RisServer.proj" (24) on node 0 (default targets).

Project "D:\ClearCanvasSource\Ris\Server\RisServer.proj" (24) is building "D:\C

learCanvasSource\Ris\Server\RisServerCodeGen.proj" (25) on node 0 (default targ

ets).

  Could Not Find D:\ClearCanvasSource\Enterprise\Authentication\*.gen.cs

  Could Not Find D:\ClearCanvasSource\Enterprise\Authentication\Brokers\*.gen.c

  s

  Could Not Find D:\ClearCanvasSource\Enterprise\Authentication\Hibernate\*.gen

  .cs

  Could Not Find D:\ClearCanvasSource\Enterprise\Authentication\Hibernate\Broke

  rs\*.gen.cs

  codegen.rb:1:in `require': D:/ClearCanvasSource/Enterprise/codegen/model.rb:3

  1: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'

   (SyntaxError)

  ...fileName.include?('.hbm.xml') : addHbmFile(fileName, directi...

  ...                               ^

  D:/ClearCanvasSource/Enterprise/codegen/model.rb:32: syntax error, unexpected

   keyword_when, expecting keyword_end

        when fileName.include?('.hrq.xml') : addHrqFile(fileName)

            ^

  D:/ClearCanvasSource/Enterprise/codegen/model.rb:32: syntax error, unexpected

   ':', expecting keyword_end

        when fileName.include?('.hrq.xml') : addHrqFile(fileName)

                                            ^

  D:/ClearCanvasSource/Enterprise/codegen/model.rb:128: syntax error, unexpecte

  d keyword_end, expecting $end

        from codegen.rb:1:in `

'

D:\ClearCanvasSource\Ris\Server\RisServerCodeGen.proj(4,5): error MSB3073: The

command "codegen-gen.bat" exited with code 1.

Done Building Project "D:\ClearCanvasSource\Ris\Server\RisServerCodeGen.proj" (

default targets) -- FAILED.


Done Building Project "D:\ClearCanvasSource\Ris\Server\RisServer.proj" (default

 targets) -- FAILED.


Done Building Project "D:\ClearCanvasSource\Ris\ris.proj" (default targets) --

FAILED.



Build FAILED.


"D:\ClearCanvasSource\Ris\ris.proj" (default target) (1) ->

"D:\ClearCanvasSource\Ris\Server\RisServer.proj" (default target) (24) ->

"D:\ClearCanvasSource\Ris\Server\RisServerCodeGen.proj" (default target) (25) -

>

(BuildSolution target) ->

  D:\ClearCanvasSource\Ris\Server\RisServerCodeGen.proj(4,5): error MSB3073: Th

e command "codegen-gen.bat" exited with code 1.


    0 Warning(s)

    1 Error(s)


Time Elapsed 00:00:19.20


Can anyone please help me out... ? I'll really appriciate it.

brainiacs
Basic Member
Basic Member
Posts:24

--
2010-04-13 02:55 PM  

 Well guys... i just sorted out what the problem was. It was a syntax error in the Ruby Code in the following files

ClearCanvasSource\Enterprise\codegen\model.rb

ClearCanvasSource\Enterprise\codegen\collection_field_def.rb

 

All i did was just go to the respective statements which were causing errors. It was a case statement. and after "when" there was a ":" used . Just replaced it with "then". That's it, it worked like a charm :)

 

Happy coding!

You are not authorized to post a reply.

Active Forums 4.1
Copyright 2012 ClearCanvas Inc.