Build FubuMVC with ruby 1.9

14 views
Skip to first unread message

Eduardo Laranjeira

unread,
Jan 26, 2010, 2:47:55 PM1/26/10
to FubuMVC Development Group
I decided to give FubuMVC a try but I can't compile it with rake. I've
got the following error:

GIT [master] c:0 u:0 d:0 > rake
(in C:/Projects/oss/fubumvc)
rake aborted!
no such file to load -- ftools
C:/Projects/oss/fubumvc/rakefile.rb:5:in `require'
(See full trace by running task with --trace)

It seems this is an issue with albacore, it depends on ftools that was
deprecated and replaced by fileutils in Ruby v1.9.x.

Anyone is having the same issue?

Chad Myers

unread,
Jan 26, 2010, 3:06:19 PM1/26/10
to fubumv...@googlegroups.com
I have not tried ruby 1.9 yet.

Is it crashing on the line "include FileTest" or on "require albacore"?

It may be albacore that's causing the problem.

Can you tell at all? If not, I can try upgrading to Ruby 1.9 tonight and give it a shot.

-Chad


--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To post to this group, send email to fubumv...@googlegroups.com.
To unsubscribe from this group, send email to fubumvc-deve...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.


Eduardo Laranjeira

unread,
Jan 27, 2010, 5:19:01 AM1/27/10
to FubuMVC Development Group
The error message is pointing for the require in rakefile.rb file line
5, that is "require albacore", so it seems an albacore issue. I'll try
to talk with someone in the albacore dev team, so they can fix this
issue.

Thanks anyway.

Eduardo

On Jan 26, 8:06 pm, Chad Myers <chad.my...@gmail.com> wrote:
> I have not tried ruby 1.9 yet.
>
> Is it crashing on the line "include FileTest" or on "require albacore"?
>
> It may be albacore that's causing the problem.
>
> Can you tell at all? If not, I can try upgrading to Ruby 1.9 tonight and
> give it a shot.
>
> -Chad
>
> On Tue, Jan 26, 2010 at 1:47 PM, Eduardo Laranjeira <
>

> eduardo.laranje...@gmail.com> wrote:
> > I decided to give FubuMVC a try but I can't compile it with rake. I've
> > got the following error:
>
> > GIT [master] c:0 u:0 d:0 > rake
> > (in C:/Projects/oss/fubumvc)
> > rake aborted!
> > no such file to load -- ftools
> > C:/Projects/oss/fubumvc/rakefile.rb:5:in `require'
> > (See full trace by running task with --trace)
>
> > It seems this is an issue with albacore, it depends on ftools that was
> > deprecated and replaced by fileutils in Ruby v1.9.x.
>
> > Anyone is having the same issue?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "FubuMVC Development Group" group.
> > To post to this group, send email to fubumv...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > fubumvc-deve...@googlegroups.com<fubumvc-devel%2Bunsu...@googlegroups.com>

Eduardo Laranjeira

unread,
Jan 27, 2010, 6:13:24 AM1/27/10
to FubuMVC Development Group
After further investigation, it turns out the culprit is rubyzip. I'm
using v0.9.1 and in the project site the current version is 0.9.4.
I'll try update it to see if it solves the problem.

On Jan 27, 10:19 am, Eduardo Laranjeira <eduardo.laranje...@gmail.com>
wrote:

Eduardo Laranjeira

unread,
Jan 27, 2010, 6:29:29 AM1/27/10
to FubuMVC Development Group
It compiles now. For the ones that are using Ruby 1.9.x, make sure
that you have rubyzip v0.9.4 installed.

On Jan 27, 11:13 am, Eduardo Laranjeira <eduardo.laranje...@gmail.com>

Frank L. Quednau

unread,
Feb 5, 2010, 5:11:56 PM2/5/10
to FubuMVC Development Group
Well, I'm having issues...again. Every time I try ruby & rake
something goes wrong. This time:

C:\Users\flq>gem install rake
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - U:/

Must me my attitude towards it.

Cheers

On Jan 27, 12:29 pm, Eduardo Laranjeira <eduardo.laranje...@gmail.com>
wrote:

> > > > > fubumvc-deve...@googlegroups.com<fubumvc-devel%2Bunsubscribe@goog legroups.com>

Chad Myers

unread,
Feb 5, 2010, 5:17:59 PM2/5/10
to fubumv...@googlegroups.com
Don't know what to tell you, man. Sorry :(

Try updating your Gems install?

I can't upgrade to 1.9 on my machine right now. Can you run multiple vers of ruby on your box?

It works for sure on Ruby 1.8.6.

-Chad

To unsubscribe from this group, send email to fubumvc-deve...@googlegroups.com.

Ryan Rauh

unread,
Feb 5, 2010, 5:43:33 PM2/5/10
to fubumv...@googlegroups.com
I had problems with ruby 1.9 I downgraded to 1.8.6 and it works great. 

I couldn't get any gems to install for 1.9 for some reason 

Sent from my iPhone

Chad Myers

unread,
Feb 5, 2010, 6:01:50 PM2/5/10
to fubumv...@googlegroups.com
I pinged Derick Bailey about the albacore problem on Ruby 1.9 and he said it was the rubyzip gem that was hosing things up. I'm not sure if he was able to find a workaround or not.

-Chad

Frank L. Quednau

unread,
Feb 6, 2010, 3:32:08 AM2/6/10
to FubuMVC Development Group
I'll downgrade and see what happens.

Apart from that I feel like experimenting with a clean build syntax
and implementing a parser/builder that produces msbuild xml [and later
nant xml] today (well, it'd take a bit longer but hopefully I know
more later on). I think (though I am not sure) that this rake building
comes from us being traumatized by verbose xml that is nasty to the
eye and not so much the capabilities of the build platform or it's
huge wealth of already existing tasks. If that's the case the builder
should get a warm reception ;)

Regards,
Frank

On Feb 6, 12:01 am, Chad Myers <chad.my...@gmail.com> wrote:
> I pinged Derick Bailey about the albacore problem on Ruby 1.9 and he said it
> was the rubyzip gem that was hosing things up. I'm not sure if he was able
> to find a workaround or not.
>
> -Chad
>
>
>
> On Fri, Feb 5, 2010 at 4:43 PM, Ryan Rauh <rauh.r...@gmail.com> wrote:
> > I had problems with ruby 1.9 I downgraded to 1.8.6 and it works great.
>
> > I couldn't get any gems to install for 1.9 for some reason
>
> > Sent from my iPhone
>

> > On Feb 5, 2010, at 4:17 PM, Chad Myers <chad.my...@gmail.com> wrote:
>
> > Don't know what to tell you, man. Sorry :(
>
> > Try updating your Gems install?
>
> > I can't upgrade to 1.9 on my machine right now. Can you run multiple vers
> > of ruby on your box?
>
> > It works for sure on Ruby 1.8.6.
>
> > -Chad
>

> >> <fubumv...@googlegroups.com>fubumv...@googlegroups.com.


> >> > > > > > To unsubscribe from this group, send email to

> >> > > > > > <fubumvc-devel%2Bunsu...@googlegroups.com>
> >> fubumvc-deve...@googlegroups.com
> >> <fubumvc-devel%2Bunsubscribe@goog <http://legroups.com>legroups.com>


> >> > > > > > .
> >> > > > > > For more options, visit this group at
> >> > > > > > <http://groups.google.com/group/fubumvc-devel?hl=en>
> >>http://groups.google.com/group/fubumvc-devel?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "FubuMVC Development Group" group.
> >> To post to this group, send email to <fubumv...@googlegroups.com>

> >> fubumv...@googlegroups.com.
> >> To unsubscribe from this group, send email to

> >> <fubumvc-devel%2Bunsu...@googlegroups.com>


> >> fubumvc-deve...@googlegroups.com.
> >> For more options, visit this group at
> >> <http://groups.google.com/group/fubumvc-devel?hl=en>
> >>http://groups.google.com/group/fubumvc-devel?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "FubuMVC Development Group" group.
> > To post to this group, send email to fubumv...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > fubumvc-deve...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/fubumvc-devel?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "FubuMVC Development Group" group.
> > To post to this group, send email to fubumv...@googlegroups.com.
> > To unsubscribe from this group, send email to

Frank L. Quednau

unread,
Feb 6, 2010, 3:37:14 AM2/6/10
to FubuMVC Development Group
Well, and the fact that you can write any ruby code in a rake file. Is
this actually the killer feature of rake that makes it's adoption
useful?

Frank L. Quednau

unread,
Feb 6, 2010, 5:01:09 AM2/6/10
to FubuMVC Development Group
OK, my unstoppable verbal outage is annoying today but yesterday's
particular issue stems from the fact that I logged in with my domain
user on my machine here at home. In this case the HOMEDRIVE and
HOMEPATH variables point to a non-existing network drive. For whatever
reasons the gem stuff looks there and is shocked to find out it
doesn't exist - even though it's got nothing to do there as long as
the standard gem lib path (check with gem env) is writable.

Solution is to define the env variable HOME and let it point e.g. to
%USERPROFILE%. Apparently this takes precedence over xDRIVE and xPATH
and gem is happy.

I have written up the bare beginnings of getting fubumvc built on my
blog, incorporating info from this thread, but since I am in the
middle of a domain transfer I can't give you the link I would like you
to give :( Hopefully soon.

Cheers
Frank

Eduardo Laranjeira

unread,
Feb 7, 2010, 6:15:55 AM2/7/10
to FubuMVC Development Group
To solve this problem you must update rubyzip to version 0.9.4. At the
time I tryed to build FubuMVC, I had to manually update it, as I said
before. but right now is already available from the gems server.

On Feb 5, 11:01 pm, Chad Myers <chad.my...@gmail.com> wrote:
> I pinged Derick Bailey about the albacore problem on Ruby 1.9 and he said it
> was the rubyzip gem that was hosing things up. I'm not sure if he was able
> to find a workaround or not.
>
> -Chad
>
>
>
> On Fri, Feb 5, 2010 at 4:43 PM, Ryan Rauh <rauh.r...@gmail.com> wrote:
> > I had problems with ruby 1.9 I downgraded to 1.8.6 and it works great.
>
> > I couldn't get any gems to install for 1.9 for some reason
>
> > Sent from my iPhone
>

> > On Feb 5, 2010, at 4:17 PM, Chad Myers <chad.my...@gmail.com> wrote:
>
> > Don't know what to tell you, man. Sorry :(
>
> > Try updating your Gems install?
>
> > I can't upgrade to 1.9 on my machine right now. Can you run multiple vers
> > of ruby on your box?
>
> > It works for sure on Ruby 1.8.6.
>
> > -Chad
>

> >> <fubumv...@googlegroups.com>fubumv...@googlegroups.com.


> >> > > > > > To unsubscribe from this group, send email to

> >> > > > > > <fubumvc-devel%2Bunsu...@googlegroups.com>
> >> fubumvc-deve...@googlegroups.com
> >> <fubumvc-devel%2Bunsubscribe@goog <http://legroups.com>legroups.com>


> >> > > > > > .
> >> > > > > > For more options, visit this group at
> >> > > > > > <http://groups.google.com/group/fubumvc-devel?hl=en>
> >>http://groups.google.com/group/fubumvc-devel?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "FubuMVC Development Group" group.
> >> To post to this group, send email to <fubumv...@googlegroups.com>

> >> fubumv...@googlegroups.com.
> >> To unsubscribe from this group, send email to

> >> <fubumvc-devel%2Bunsu...@googlegroups.com>


> >> fubumvc-deve...@googlegroups.com.
> >> For more options, visit this group at
> >> <http://groups.google.com/group/fubumvc-devel?hl=en>
> >>http://groups.google.com/group/fubumvc-devel?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "FubuMVC Development Group" group.
> > To post to this group, send email to fubumv...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > fubumvc-deve...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/fubumvc-devel?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "FubuMVC Development Group" group.
> > To post to this group, send email to fubumv...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > fubumvc-deve...@googlegroups.com<fubumvc-devel%2Bunsubscribe@goog­legroups.com>
> > .
> > For more options, visit this group at

> >http://groups.google.com/group/fubumvc-devel?hl=en.- Hide quoted text -
>
> - Show quoted text -

Eduardo Laranjeira

unread,
Feb 7, 2010, 6:28:53 AM2/7/10
to FubuMVC Development Group
For the ones who want to build FubuMVC with the lastest Ruby (1.9.1-
p378), follow this setps:

1. Download and install http://rubyforge.org/frs/download.php/69035/rubyinstaller-1.9.1-p378-rc2.exe
2. During the install, check the option to add Ruby to the path
3. Open the Visual Studio comand line, go to the FubuMVC path and run
InstallGems.bat (RubyZip 0.9.4 is already in the gems server)
4. Now your ready to build FubuMVC, just type rake.

On Feb 6, 10:01 am, "Frank L. Quednau" <fqued...@googlemail.com>

Rob G

unread,
Feb 13, 2010, 8:37:46 AM2/13/10
to fubumvc-devel
Hi there,

I've followed Eduardo's instructions here to the letter and everything seemed fine until I type "rake". I'm a total noob when it comes to ruby & rake, but this is looking like a machine specific problem? The red line I've highlighted - I've got everything in there up to the v6.0 folder, but no LIB folder, only BIN. Am I missing something?


** Execute compile
C:\Windows/Microsoft.NET/Framework/v3.5/msbuild.exe src/FubuMVC.sln /nologo /maxcpucount /v:m /property:BuildI
nParallel=false /property:Configuration=debug /t:Rebuild
error CS1668 : Warning as error : Invalid search path 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib' spe
cified in 'LIB environment variable' -- 'The system cannot find the path specified. '
rake aborted!
Command failed with status (1): [C:\Windows/Microsoft.NET/Framework/v3.5/ms...]
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:995:in `block in sh'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1010:in `call'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1010:in `sh'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1094:in `sh'
C:/Users/Rob G/Documents/My Dropbox/Dev/Projects/Dependencies/Linked To Source Control/fubumvc/build_support/B
uildUtils.rb:34:in `compile'
C:/Users/Rob G/Documents/My Dropbox/Dev/Projects/Dependencies/Linked To Source Control/fubumvc/rakefile.rb:48:
in `block in <top (required)>'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in `block in execute'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:597:in `block in invoke_with_call_chain'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:607:in `block in invoke_prerequisites'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in `each'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:596:in `block in invoke_with_call_chain'
C:/Ruby19/lib/ruby/1.9.1/monitor.rb:190:in `mon_synchronize'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
C:/Ruby19/bin/rake:19:in `load'
C:/Ruby19/bin/rake:19:in `<main>'

Any help appreciated,
Thanks,
Rob G

Rob G

unread,
Feb 13, 2010, 8:41:49 AM2/13/10
to fubumvc-devel
Hmmm....seems after just adding an empty "Lib" folder I have made progress. Next issue we have nunit throwing a fit because there are spaces in my path to the solution. It's 2010 - are you kidding me?! :)

2010/2/13 Rob G <robertg...@gmail.com>

Chris Sutton

unread,
Feb 13, 2010, 10:46:21 AM2/13/10
to fubumv...@googlegroups.com
I was having the same issues running rake with ruby 1.9.1 and switched back to 1.8.7 and I can rake fubu now.


Chris

Rob G

unread,
Feb 13, 2010, 2:24:48 PM2/13/10
to fubumvc-devel
I succeeded by making a change to the rake scripts to allow for paths with spaces. That is checked in to my fork and awaiting a pull from the main repo. I've successfully compiled using ruby 1.9.1 now with Eduardo's advice and this change I made.

Regards,
Rob G

Chad Myers

unread,
Feb 13, 2010, 2:27:49 PM2/13/10
to fubumv...@googlegroups.com

I think I got that one already. Check darth and you should see it.  I have NOT applied the examples pull-request yet, though.  I hesitated because Josh is more familiar with that project and I thought he might want to double check it first.  Upon first glance, it seemed OK.

On Feb 13, 2010 1:24 PM, "Rob G" <robertg...@gmail.com> wrote:

I succeeded by making a change to the rake scripts to allow for paths with spaces. That is checked in to my fork and awaiting a pull from the main repo. I've successfully compiled using ruby 1.9.1 now with Eduardo's advice and this change I made.

Regards,

Rob G



On Sat, Feb 13, 2010 at 3:46 PM, Chris Sutton <bdsu...@gmail.com> wrote:
>

> I was having the sam...

--

You received this message because you are subscribed to the Google Groups "FubuMVC Development Group...

Rob G

unread,
Feb 13, 2010, 2:30:17 PM2/13/10
to fubumvc-devel
Yes - the ruby rake fix is in :) ooo...snappy!

Chad Myers

unread,
Feb 13, 2010, 3:10:50 PM2/13/10
to fubumv...@googlegroups.com
I also added your Spark DLLs/PDBs to the build output so it should show in the artifacts in the TeamCity build now.

I also added HelloSpark as a aspnet_compile step. It doesn't help much with Spark, but it will at least compile the Global.asax and make sure that doesn't have any problems (better than nothing).

You can see the build here:

You can see the build artifact (fubumvc.zip) by clicking on the "Artifacts" tab, or by the direct link here:

-Chad

Eduardo Laranjeira

unread,
Feb 13, 2010, 7:40:17 PM2/13/10
to fubumv...@googlegroups.com
Nice to see that you got it working with Ruby 1.9. I didn't had any trouble compiling it because I have the Lib folder and I don't have white spaces in my path to the solution :).

Frank L. Quednau

unread,
Mar 19, 2010, 1:29:30 PM3/19/10
to FubuMVC Development Group
So that's where it started...

Totally OT, but that experiment has taken place and went the route of
using the MSBuild API + integration with PowerShell to get that ruby
effect of using code in your build script.
Its code is also hosted on github and the project is called rfb. The
wiki pages of the project tell about the syntax.

Cheers


On Feb 6, 9:32 am, "Frank L. Quednau" <fqued...@googlemail.com> wrote:

Reply all
Reply to author
Forward
0 new messages