Building Ruby 1.8 preview 3

G

Gavin Sinclair

Folks,

I'm trying to build 1.8p3 on Cygwin, and failing for a rather
unsatisfactory reason. It creates miniruby OK, but fails on the next step
with the following error (hand typed):

Creating library file: libcygwin-ruby18.dll.a
./ext/extmk.rb:28:in `require': No such file to load -- mkmf (LoadError)
from ./ext/extmk.rb:28
make: *** [all] Error 1

The output of (./miniruby -e 'puts $:') is
/home/gavin/build/ruby-1.8.0/lib/ruby/...

where ... = 1.8, site_ruby, and the normal subdirs.

./lib/ruby doesn't exist; all the libs are in ./lib.

Am I doing something wrong?

Regards,
Gavin
 
P

patrick zesar

Creating library file: libcygwin-ruby18.dll.a
./ext/extmk.rb:28:in `require': No such file to load -- mkmf(LoadError)
from ./ext/extmk.rb:28

yeah - i get this one too but i didn't dare to ask this in the group - i
just thought i was too stupid. good to know there are other people having
the same problem :))

patrick
 
W

WATANABE Hirofumi

Hi,

Gavin Sinclair said:
I'm trying to build 1.8p3 on Cygwin, and failing for a rather
unsatisfactory reason. It creates miniruby OK, but fails on the next step
with the following error (hand typed):

Creating library file: libcygwin-ruby18.dll.a
./ext/extmk.rb:28:in `require': No such file to load -- mkmf (LoadError)
from ./ext/extmk.rb:28
make: *** [all] Error 1

The output of (./miniruby -e 'puts $:') is
/home/gavin/build/ruby-1.8.0/lib/ruby/...

where ... = 1.8, site_ruby, and the normal subdirs.

./lib/ruby doesn't exist; all the libs are in ./lib.

Am I doing something wrong?

Try this or check the latest CVS.

Index: mkconfig.rb
===================================================================
RCS file: /src/ruby/mkconfig.rb,v
retrieving revision 1.30
diff -u -1 -r1.30 mkconfig.rb
--- mkconfig.rb 9 Apr 2003 15:45:28 -0000 1.30
+++ mkconfig.rb 9 Jul 2003 09:26:12 -0000
@@ -50,3 +50,3 @@
elsif /^(?:ac_given_)?srcdir=(.*)/ =~ line
- srcdir = $1
+ srcdir = $1.strip
elsif /^ac_given_INSTALL=(.*)/ =~ line
 
G

Gavin Sinclair

Although it's not the real solution, but I just compiled Ruby with MinGW in MSYS
environment.

Hmmmmm.... I just gave that a go and it worked (to a certain extent).
I wonder why the difference.

Under MinGW, "make install" does not install ruby.exe anywhere,
though. It only creates the /usr/local/lib directory.

Gavin
 
G

Gavin Sinclair

Gavin Sinclair ([email protected]) wrote:
Unfortunately I cannot reproduce your problem. With MingW (gcc 3.2) and latest MSYS 1.09,
running configure --prefix=C:/mingw, everything is installed nicely (I install all my
programs under /mingw which is symlink to c:/MinGW, not under msys folder.), and ruby.exe
is produced, as well as rubyw.exe and miniruby.exe.
Do you have miniruby.exe after make?

Yes, miniruiby.exe is created (several build steps depend on this),
and ruby.exe and rubyw.exe are created, but only in the "current"
directory (i.e. where the build is performed).

I'll do what I can to produce a pristine operating environment and try
again.

Also, it seems that perhaps it's best to just build from the latest
CVS, rather than a "preview" snapshot.

Gavin
 
A

Ariff Abdullah

My solution is using something like

1) miniruby.exe instruby.rb --dest-dir=c:/whatever
2) miniruby.exe ext\extmk.rb --dest-dir=c:/whatever install
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top