Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues when installing Skyline Rails3 branch on Win7 #7

Open
regdog opened this issue Jan 31, 2012 · 4 comments
Open

Issues when installing Skyline Rails3 branch on Win7 #7

regdog opened this issue Jan 31, 2012 · 4 comments

Comments

@regdog
Copy link

regdog commented Jan 31, 2012

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
Copy link
Author

regdog commented Jan 31, 2012

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
Copy link
Author

regdog commented Feb 2, 2012

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
Copy link
Author

regdog commented Feb 3, 2012

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

I closed this issue.

@regdog regdog closed this as completed Feb 3, 2012
@flurin
Copy link
Contributor

flurin commented Feb 7, 2012

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

@flurin flurin reopened this Feb 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants