compile ruby under windows xp with MinGW

L

Lars Eb

dear rubyians,

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:

$(RCFILES): $(RBCONFIG)
@$(MINIRUBY) $(srcdir)/win32/resource.rb \
-ruby_name=$(RUBY_INSTALL_NAME) -rubyw_name=$(RUBYW_INSTALL_NAME) \
-so_name=$(DLL_BASE_NAME) \
. $(icondirs) $(srcdir)/win32

which cause:

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?

thanks in advance.

kind regards,
lars

Attachments:
http://www.ruby-forum.com/attachment/978/Makefile
 
N

Nobuyoshi Nakada

Hi,

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.
 
L

Lars Eb

Nobuyoshi said:
Hi,

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.

Attachments:
http://www.ruby-forum.com/attachment/981/make.txt
 
N

Nobuyoshi Nakada

Hi,

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

this doesn't seem like cygwin.
 
L

Lars Eb

Nobuyoshi said:
Hi,

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

this doesn't seem like cygwin.

that was the result log of make call.

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!?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top