Alibaba,

There are a couple of issues when installing Lovd on Windows, notably
gems and the rake db:create. Take a look at the notes I wrote when I
1st installed:

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





On Oct 30, 7:44 pm, alibaba82 <[EMAIL PROTECTED]> wrote:
> I am using netbeans on windows and when I try to rake db create I get
> the following error.
>
> no such file to load -- ferret_ext
> C:/Program Files/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/
> site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> C:/Program Files/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/
> site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> ........<bunch of other stuff>.....
> .............................................
> Missing these required gems:
>   acts_as_ferret  = 0.4.3
>   ferret  = 0.11.4
>
> You're running:
>   ruby 1.8.6.114 at C:/Program Files/NetBeans 6.5 Beta/ruby2/
> jruby-1.1.3/bin/jruby.bat
>   rubygems 1.2.0 at C:/Program Files/NetBeans 6.5 Beta/ruby2/
> jruby-1.1.3/lib/ruby/gems/1.8
>
> Run `rake gems:install` to install the missing gems.
> rake aborted!
> IO error -- C:/Documents and Settings/araza/My Documents/Downloads/
> stevenbristol-lovd-by-less/stevenbristol-lovd-by-less/config/
> environment
> rake aborted!
> invalid meta-code syntax: /C:\Documents and Settings\araza\My Documents
> \Downloads\stevenbristol-lovd-by-less\stevenbristol-lovd-by-less
> \Rakefile/
> C:/Program Files/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/ruby/gems/1.8/
> gems/rake-0.8.1/lib/rake.rb:1962:in `standard_exception_handling':
> invalid meta-code syntax: /C:\Documents and Settings\araza\My Documents
> \Downloads\stevenbristol-lovd-by-less\stevenbristol-lovd-by-less
> \Rakefile/ (RegexpError)
>         from C:/Program Files/NetBeans 6.5 Beta/ruby2/jruby-1.1.3/lib/
> ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1962:in `each'
>
> My gems are
>
> C:\Program Files\NetBeans 6.5 Beta\ruby2\jruby-1.1.3\bin>gem list
>
> *** LOCAL GEMS ***
>
> actionmailer (2.1.1, 2.1.0, 1.3.6)
> actionpack (2.1.1, 2.1.0, 1.13.6)
> actionwebservice (1.2.6)
> activerecord (2.1.1, 2.1.0, 1.15.6)
> activerecord-jdbc-adapter (0.8.2)
> activeresource (2.1.1, 2.1.0)
> activesupport (2.1.1, 2.1.0, 1.4.4)
> acts_as_ferret (0.4.3)
> avatar (0.0.5)
> collections (0.1.4)
> colored (1.1)
> ferret (0.11.4)
> flickr (1.0.2)
> gettext (1.93.0)
> hpricot (0.6.164, 0.6.161)
> mime-types (1.15)
> mocha (0.9.1)
> rails (2.1.1, 2.1.0, 1.2.6)
> rake (0.8.1)
> RedCloth (3.0.4)
> redgreen (1.2.2)
> rmagick4j (0.3.6)
> rspec (1.1.4)
> ruby-debug-base (0.10.1)
> ruby-debug-ide (0.2.1)
> ruby-openid (2.1.2)
> rubygems-update (1.3.1, 1.3.0, 1.1.1)
> sources (0.0.1)
> tzinfo (0.3.11)
> uuidtools (1.0.4)
> will_paginate (2.2.2)
> win32console (1.1.0)
> xml-simple (1.0.11)
> youtube-g (0.4.9.9)
>
> My environment.rb is
>  # Gem dependencies
> config.gem 'will_paginate', :version => '~> 2.2.2'
> config.gem 'colored', :version=> '1.1'
> config.gem 'youtube-g', :version=> '0.4.9.9', :lib=>'youtube_g'
> config.gem 'uuidtools', :version=> '1.0.4'
> config.gem 'acts_as_ferret', :version=> '0.4.3'
> config.gem 'ferret', :version=> '0.11.4'
> config.gem 'hpricot', :version=> "0.6.164"
> config.gem 'mocha', :version=> "0.9.1"
> config.gem 'redgreen', :version=> "1.2.2"
> config.gem 'avatar', :version=> "0.0.5", :lib => 'avatar'
>
> Pleeeeze help. I already have the gems installed why am I getting this
> warning. (newbie ROR guy)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to