I tried to compile ruby under windows xp with MinGW.
firstly I copied and renamed the GNUMakefile.in out of cygwin directory
into the src root directory. After that I successfully run ./configure
in order to generate the Makefile.
Unfortunately, the auto generated Makefile has one “smaller” and one
“bigger” obstacle.
The “smaller” one concerns the first line of the Makefile there was an
“include Makefile” which caused “Makefile:1: Makefile: Too many open
files” what I fixed with out-commenting that line.
The “bigger” one where I am without any suggestion is related to the
first target:
Makefile:42: target ‘.rc’ given more than once in the same rule.
Makefile:42: target ‘.rc’ given more than once in the same rule.
GNUMakefile:42: warning: overriding commands for target ‘.rc’
Makefile:43: warning: ignoring old commands for target ‘.rc’
GNUMakefile:41: target ‘.rc’ given more than once in the same rule.
GNUMakefile:41: target ‘.rc’ given more than once in the same rule.
mingw32-make: *** No rule to make target ‘/cygwin/GNUmakefile.in’,
needed by ‘GNUMakefile’. Stop.
what has been gone wrong!?
does anybody have an idea?
At Thu, 15 Nov 2007 19:51:13 +0900,
Lars Eb wrote in [ruby-talk:279091]:
I tried to compile ruby under windows xp with MinGW.
firstly I copied and renamed the GNUMakefile.in out of cygwin directory
into the src root directory. After that I successfully run ./configure
in order to generate the Makefile.
At Thu, 15 Nov 2007 19:51:13 +0900,
Lars Eb wrote in [ruby-talk:279091]:
I tried to compile ruby under windows xp with MinGW.
firstly I copied and renamed the GNUMakefile.in out of cygwin directory
into the src root directory. After that I successfully run ./configure
in order to generate the Makefile.
Just run ./configure without copying it.
thank you for the quick reply! that’s it, but now there is one problem
with make and cygpath command which is not found. I checked the path
variable and the pure console call of cygpath which fits.
At Fri, 16 Nov 2007 01:29:59 +0900,
Lars Eb wrote in [ruby-talk:279141]:
thank you for the quick reply! that’s it, but now there is one problem
with make and cygpath command which is not found. I checked the path
variable and the pure console call of cygpath which fits.
I’m not sure about your environment. cygpath is used only when
build_os in rbconfig.rb is set to “cygwin”, but
anyway I fixed this make completes with
“$make
compiling Win32API
mingw32-make: *** [all] Error 1”
Due to the fact that the all “$make test” have success
“$make test
test succeeded”
I don’t worry and tried to perform “make install” which lead to the
following:
$make install
./miniruby.exe ./instruby.rb --dest-dir=“” --extout=“” --make=“make” \
–mflags=“” --make-flags=“” -installed-list .installed.list
–mantype=“doc” \ installing binary commands
ruby/src/ruby-1.8.6/lib/fileutils.rb:843:in ‘stat’: No such File or
directory - rubyw.exe
Of corse I can copy the generated rubyw from bin but make should
complete without doing this.
Do you have any information for solving the problem!?
At Fri, 16 Nov 2007 01:29:59 +0900,
Lars Eb wrote in [ruby-talk:279141]:
thank you for the quick reply! that’s it, but now there is one problem
with make and cygpath command which is not found. I checked the path
variable and the pure console call of cygpath which fits.
I’m not sure about your environment. cygpath is used only when
build_os in rbconfig.rb is set to “cygwin”, but