Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Can't setup OpenProject to window7

Can't setup OpenProject to window7

Added by Min Soo Kim over 10 years ago

Hello.

I’m installing to OpenProject to windows 7.
(ref : https://www.openproject.org/projects/openproject/wiki/Installation_Windows)

I’m complete to install mysql2 seq.(install mysql2 — ‘—with-mysql-dir=“C:/mysql/”’ (Note i used c:\mysql but the slash is the other way)

The things is next sequence. execute command (bundle exec rake db:create:all) is occured exception.
summary error message is this.

[Error Message]
[cound not found kgio-2.9.2 in any of the source.]

So, I’m execute (bundle install —without rmagick).. but this command occured exception, too.
error message as follows.

[Error Message]
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for CLOCK_MONOTONIC in time.h… no
checking for CLOCK_MONOTONIC() in time.h… no
checking for clockid_t in time.h… no
checking for clock_gettime() in -lrt… no
checking for t_open() in -lnsl… no
checking for socket() in -lsocket… no
checking for poll() in poll.h… no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h… no
getaddrinfo required

* extconf.rb failed*
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
—with-opt-dir
—without-opt-dir
—with-opt-include
—without-opt-include=${opt-dir}/include
—with-opt-lib
—without-opt-lib=${opt-dir}/lib
—with-make-prog
—without-make-prog
—srcdir=.
—curdir
—ruby=C:/RailsInstaller/Ruby1.9.3/bin/ruby
—with-rtlib
—without-rtlib
—with-nsllib
—without-nsllib
—with-socketlib
—without-socketlib

Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/kgio-2.9.2 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/kgio-2.9.
2/ext/kgio/gem_make.out
An error occurred while installing kgio (2.9.2), and Bundler cannot continue.
Make sure that `gem install kgio -v ‘2.9.2’` succeeds before bundling.

[Dev Env]
O/S : Windows 7 64bit
DB : mysql 5.6
Ruby : 1.9.3

How to Solve It? T.T
Please suggest to solve this problem.
thx for reading.


Replies (4)

RE: Can't setup OpenProject to window7 - Added by Idriss Belkhayat over 10 years ago

Hello,

Use the ruby installer with version 2.0

RE: Can't setup OpenProject to window7 - Added by Ph Ikajo over 10 years ago

Hi, I got the same error message on a Windows Server 2012 R2.
I tried to install railsinstaller-windows 3.0.0-alpha2 with Ruby 2.0.0, but still the same message.

I can’t install it on Linux because of our corporate reporting line, we not allowed to use Linux Server.

RE: Can't setup OpenProject to window7 - Added by Chase Johnson over 10 years ago

I had the same error installing on Windows 7. The problem is with the addition of the Unicorn gem (and thus kgio). The kgio gem description (emphasis added):

kgio provides non-blocking I/O methods for Ruby without raising exceptions on EAGAIN and EINPROGRESS. It is intended for use with the Unicorn and Rainbows! Rack servers, but may be used by other applications (that run on Unix-like platforms).

I don’t believe that kgio is compatible with Windows, at least not without some hacking.

I’m restricted to a Windows installation due to corporate IS policies, paperwork, etc. So I hope OpenProject can make Windows installs less painful instead of more painful.

Verified fix:

Comment out the line gem unicorn in the Gemfile (line 136).

RE: RE: Can't setup OpenProject to window7 - Added by Smith Don about 10 years ago

Running bundle install —without rmagick returns error

Gem files will remain installed in C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/mysql2-0.3.17 for inspection.
An error occurred while installing mysql2 (0.3.17), and Bundler cannot continue.
Make sure that `gem install mysql2 -v ‘0.3.17’` succeeds before bundling.

I see that mysql2 (0.3.18 ruby x86-mingw32) is installed by gem list command.

Running gem install mysql2 -v ’0.3.17 separably also returns
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.

Any idea how to fix this?

Thanks

  • (1 - 4/4)
Loading...