LovdByLess on Windows Successful Installations?

6 views
Skip to first unread message

MichaelinSactown

unread,
Jul 8, 2008, 6:03:28 AM7/8/08
to Lovd by Less
First off, awesome application. I'm new to RoR, and it's been a great
resource for learning.

After scanning through the posts on here, I wasn't able to resolve a
couple of my install issues on Windows.

Before I start listing my errors off, are there a decent amount of
folks developing w/LBL on Windows, or am I on an inevitable path to
buying a Mac?

Thanks in advance!

Jonathon Brenner

unread,
Jul 8, 2008, 9:26:41 PM7/8/08
to lovdb...@googlegroups.com
I have to develop RoR apps on Windows at work. Everything works, but from a TDD  perspective, it's effing painful. The best RoR editor, E, is still pretty sucky and the cygwin ruby build takes forever to load up the environment each time I want to run a test.  I use macs at home and it's orders of magnitude more efficient. You'll be a much happier camper (programmer) if you get one.

I personally haven't tried to run Lovd on Windows.  What problems are you having?

MichaelinSactown

unread,
Jul 9, 2008, 1:46:55 AM7/9/08
to Lovd by Less
Thanks for the contrast of experiences between environments. I'm
definately going to give getting a Mac a good look.

On the final step to setup the database, where I execute:

rake mig a=no

Rake responds with:

[Rake Path]: No such file or directory - uname <-- I'm assuming this
is a problem.

and

NOT RUNNING: rake annotate_models <-- I don't think this is problem
based on what I've read.

Thanks for the help!

-Mike

On Jul 8, 6:26 pm, "Jonathon Brenner" <jonbren...@gmail.com> wrote:
> I have to develop RoR apps on Windows at work. Everything works, but from a
> TDD  perspective, it's effing painful. The best RoR editor, E, is still
> pretty sucky and the cygwin ruby build takes forever to load up the
> environment each time I want to run a test.  I use macs at home and it's
> orders of magnitude more efficient. You'll be a much happier camper
> (programmer) if you get one.
>
> I personally haven't tried to run Lovd on Windows.  What problems are you
> having?
>
> On Tue, Jul 8, 2008 at 6:03 AM, MichaelinSactown <myclee.j...@gmail.com>
> wrote:
>
>
>
>
>
> > First off, awesome application.  I'm new to RoR, and it's been a great
> > resource for learning.
>
> > After scanning through the posts on here, I wasn't able to resolve a
> > couple of my install issues on Windows.
>
> > Before I start listing my errors off, are there a decent amount of
> > folks developing w/LBL on Windows, or am I on an inevitable path to
> > buying a Mac?
>
> > Thanks in advance!- Hide quoted text -
>
> - Show quoted text -

Derrick Bradley

unread,
Jul 22, 2008, 10:29:46 PM7/22/08
to Lovd by Less
I have succesffuly deployed lovd by less on a mac, took just a couple
minutes.
A fellow friend and developer running Windows Vista managed to get his
to work after much troubleshooting.
I told him to post a blog, providing quick tips for Windows users and
Lovd.
You might find the solution to your problem there.

Here is the link: http://www.gamutworks.net/blog/2008/07/22/rails-code-hightlighter/

Hope that helps you out Mike.
Message has been deleted

Christian

unread,
Jul 23, 2008, 9:39:51 AM7/23/08
to Lovd by Less
Hey guys,

I just wanted to update the blog URL, it's found here: http://www.gamutworks.net/blog/

It's not a complete guide, just a fix for the problems I ran into.

On a side note, in my experience, developing RoR on Windows isn't
really all that bad. This is one of the rare occasions that there has
been a major hangup for me due to operating systems. Yeah, I use e
text editor as well, which is the most decent editor available for
Windows, but truth be told, I don't think it measures up to Textmate.
The major difference here with installing and running Lovd is the
ferret gem and the Windows environment variable. The 'gem install
ferret' command doesn't work for Windows which makes it necessary to
download the gem from RubyForge and install it from a local directory.

I hope my blog post helps, feel free to comment in any missing steps.

Sazima

unread,
Jul 23, 2008, 10:06:27 AM7/23/08
to Lovd by Less
Gents,

There are indeed some Lovd installation issues on Windows, but after
that, development is pretty straightforward and it's not as pictured
above. I use InstantRails + Rails 2.1 gem update + Lovd. Really
smooth! Regarding the IDE, NetBeans 6.1 definitely deserves a try.
Full of features, no issues until now and works really well!

Find below a commented SETUP with the problems I had...

Cheers, Sazima


MANUAL SETUP:

Install the Required Gems:

1. Install these gems:
- rflickr
- RedCloth
- rmagick (will require ImageMagick, which is not a gem)
- win32console (windows only)
(The other gems are already provided in the vendor gems dir.)

2. Run "rake gems:build" to build the gems that need builing

=> OBS: ferret and hpricot will yield errors while building on
windows
due to the lack of the "make/nmake" command. Alternative:

- Delete the correspondent dirs from lovdbyless\vendor\gems
- Install as gem:
. gem install hpricot
. ferret => see TIPS below
- Update accordingly lovdbyless\config\environment.rb
. config.gem 'ferret', :version=> '0.11.5'

TIPS:

Installing ferret on Windows
1. Running gem install ferret does not work. Instead, download the
gem directly from http://rubyforge.org/frs/?group_id=1028
2. Download file: ferret-0.11.6-mswin32.gem
3. From the directory you downloaded the gem to: gem install
ferret-0.11.6-mswin32.gem

Installing ImageMagick and RMagick
See these posts for tips:
http://b.lesseverything.com/2007/9/26/installing-imagemagick-and-rmagick-on-mac-os-x
http://www.randycullom.com/chatterbox/archives/2006/12/installing_imag.html

=> WIN:
. http://rmagick.rubyforge.org/install-faq.html#win
. http://rubyforge.org/projects/rmagick/
. Install procedure
+ Unzip rmagick-win32
+ Execute ImageMagick (ImageMagick-6.4.0-2-Q8-windows-dll.exe)
+ cmd line: gem install rmagick-2.3.0-x86-mswin32.gem

Setup the databases:

1. Edit config/database.yml.tmp to reflect the database names you
would like to use.
2. cp config/database.yml.tmp config/database.yml
3. rake db:create:all
4. rake mig a=no

=> IF THAT DOESN'T WORK:

> rake db:migrate
> rake db:test:clone

All tests pass:

5. rake

Christian

unread,
Jul 23, 2008, 11:02:15 AM7/23/08
to Lovd by Less
Hey Sazima,

Just a couple of comments. I noticed you listed the urls from the
README for installing RMagick/ImageMagic. Those articles are not
really geared towards a windows installation. In my attempts to get
Lovd up and running, those two articles didn't really help me at all.
I found that the solution is actually much simpler:

(from http://www.gamutworks.net/blog/?p=17)
<----------------
Go here:http://rubyforge.org/frs/?group_id=12&release_id=22755 and get
the rmagick-win32 bundle (near the bottom). This .zip file contains
the proper version of ImageMagick; it has to be ImageMagick version
6.4.1, no other version will work.

Now extract the .zip and install ImageMagic from the pre-compiled
install file (.exe). Next, you'll notice the .zip came packed with a
file called 'rmagick-2.5.2.gem'. Put this file in c:\ruby\rubygems,
and cd to that directory with your command prompt and type:

> gem install RMagick --local
------------------>

Great to point out the fact that you should delete the included ferret
and hpricot gems in the vendor/gems directory, then re-install from
the command line (download to local first for ferret).

And as far as editors go, I suppose it's just a matter of taste. I did
use NetBeans for quite some time, and it is second on my list of
editors next to e text editor. I found NetBeans to be a little too
bloated for my taste. It did, however, integrate well with the db and
it had a [somewhat] useful CSS editor. But it took forever to load
and, to be frank, it is an ugly editor. The sytax highlighting is a
little too intrusive for my taste, but I did really like the fact that
it would underline your typo's in red. In the end I found e text
editor to be a much more elegant solution. The other attraction to e
text is that it supports Textmate Bundles, a great way to get support
for new languages.

Thanks for your additions.
> gem directly fromhttp://rubyforge.org/frs/?group_id=1028
>     2. Download file: ferret-0.11.6-mswin32.gem
>     3. From the directory you downloaded the gem to: gem install
> ferret-0.11.6-mswin32.gem
>
>     Installing ImageMagick and RMagick
>     See these posts for tips:
>    http://b.lesseverything.com/2007/9/26/installing-imagemagick-and-rmag...
>    http://www.randycullom.com/chatterbox/archives/2006/12/installing_ima...
>
>     => WIN:
>        .http://rmagick.rubyforge.org/install-faq.html#win
>        .http://rubyforge.org/projects/rmagick/
Reply all
Reply to author
Forward
0 new messages