#56 ✓resolved
verifier

extconf.rb for mysql doesn't work in windows

Reported by verifier | November 12th, 2007 @ 12:02 PM

fork doesnt exist in windows =)

--------------------------------------------------

*** C:/ruby/lib/ruby/gems/1.8/gems/datamapper-0.2.3/plugins/dataobjects/swig_mysql/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

--srcdir=C:/ruby/lib/ruby/gems/1.8/gems/datamapper-0.2.3/plugins/dataobjects/swig_mysql

--curdir

--ruby=c:/ruby/bin/ruby

c:/ruby/lib/ruby/1.8/open3.rb:51:in `fork': the fork() function is unimplemented on this machine (NotImplementedError)

from c:/ruby/lib/ruby/1.8/open3.rb:51:in `popen3'

from C:/ruby/lib/ruby/gems/1.8/gems/datamapper-0.2.3/plugins/dataobjects/swig_mysql/extconf.rb:10:in `mysql_config'

from C:/ruby/lib/ruby/gems/1.8/gems/datamapper-0.2.3/plugins/dataobjects/swig_mysql/extconf.rb:5:in `config_value'

from C:/ruby/lib/ruby/gems/1.8/gems/datamapper-0.2.3/plugins/dataobjects/swig_mysql/extconf.rb:23

Comments and changes to this ticket

  • Sam Smoot

    Sam Smoot December 28th, 2007 @ 10:44 PM

    • Milestone cleared.
    • State changed from “new” to “open”

    I think this is resolved, by using $? instead to check the status of the system call, but I'll double-check on it.

  • Sam Smoot

    Sam Smoot December 30th, 2007 @ 10:22 AM

    • State changed from “open” to “resolved”

    Resolved in DO-svn r4. Will be part of the DO 0.2.3 release in the next few days.

    Doubt it'll be Windows happy yet since it uses "which", but it shouldn't raise forking errors anymore.

  • Ix Forres

    Ix Forres June 7th, 2008 @ 04:33 PM

    This is still a bug- the dependency on which isn't the problem, as there are win32 versions of this available. More important is the fact that mysql_config does not ship with win32 MySQL, which is what this script uses to get config info.

    An alternative needs to be found for that before it can be called windows-ready.

    I'd rather be using Linux for my developmental needs, and I already use Linux for my servers, but I have no choice in the matter for development. This really needs to get fixed- I'm going to have to port an entire application (albeit moderately small) to use ActiveRecord instead of DM due to this bug by the looks of things.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages