DigitPaint / skyline

The new Ruby on Rails open source standard in content management
http://www.skylinecms.nl
GNU Lesser General Public License v3.0
122 stars 13 forks source link

Issues when installing Skyline Rails3 branch on Win7 #7

Open regdog opened 12 years ago

regdog commented 12 years ago

I am on rails3.0.9, rake0.8.7, rubygems1.7.2, ruby1.9.2, mysql2 with Win7. I installed the Skyline as a local gem. Bundle Install works. It added PATH and every dependent gem to the Gemfile.lock file successfully.

rake db:create worked as well, then tried to run rake skyline:db:migrate. But rake aborted with error as below.

Setup public paths rake aborted! "skyline" is a Railtie/Engine and cannot be installed as a plugin

.

regdog commented 12 years ago

Good news is that I have already set up the SkylineCMS as a packaged gem on Win7 successfully.

The struggling part is how to install rmagic2.13.1 gem and mysql2 gem on Win7. After successful gem installation, just follow the guide on skyline websit. http://www.skylinecms.nl/documentation/guides/getting_started

  1. to install rmagick2.13.1 on Win7, follow the guide in below. http://stackoverflow.com/questions/6473853/ruby-on-rails-rmagick-on-windows-7
  2. to install mysql2 on Win7, check the guide http://maxivak.com/installing-mysql2-gem-on-ruby-1-9-2-and-rails-3-0-5-on-windows/, and remeber to download mysql-connector-c-noinstall-6.0.2-win32.zip, then unzip the file and copy /lib/libmysql.dll to /Ruby192/bin.

While the first launch is not yet success, it got run-time error in Skyline/articles#edit.

Showing C:/Ruby192/lib/ruby/gems/1.9.1/gems/skylinecms-3.2.0/app/views/skyline/articles/edit.html.erb where line #34 raised:

Can't find random device
Extracted source (around line #34):

31:               <%= content %>
32:               <div class="actions">
33:                 <% if Skyline::Rendering::Renderer.renderables(:sections, a.object.class).present? %>
34:                   <%= menu_button t(:add_section, :scope => [:article, :edit]), :id => "add_section_button" do %>
35:                     <ul>
36:                       <% Skyline::Rendering::Renderer.renderables(:sections, a.object.class).each do |section| %>                    
37:                         <li>
regdog commented 12 years ago

I'v solved the Can't find random device issue.

The Guid gem just cannot work well with ruby1.9 on Win7. So I changed the guid.rb source code, then it works!!!

change the below code in guid.rb

RUBY_PLATFORM =~ /[^r]win/i

into

RUBY_PLATFORM =~ /[^r]mingw/i

Since the RUBY_PLATFORM value on Win7 is 'i386-mingw32'.

regdog commented 12 years ago

The packaged SkylineCMS gem is setted up successfully on Win7. The CMS site launch success.

I closed this issue.

flurin commented 12 years ago

This is a non-issue then? Or should we update the guid dependency?