So, now that I have a working ruby.exe, irb, ri, etc. built with mingw
and msys… I suppose the next step is to build the extensions with
mingw and msys in the same manner? Is it really that simple?
I figured it out… I have to use the msys shell… works great.
Guest wrote:
I’ve got mingw and msys installed on a windows 2003 box… I’ve got the
path variables set, etc… how did you run ./configure on the ruby
source???
I figured it out… I have to use the msys shell… works great.
On Thu, 25 May 2006, Guest wrote:
fwiw i downloaded msys and compiled ruby-1.8.4 on an xp in about 10
minutes - no errors even.
I’ve got mingw and msys installed on a windows 2003 box… I’ve got the
path variables set, etc… how did you run ./configure on the ruby
source???
start msys # gives you a shell
tar xvfz ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure --prefix=/usr/local/ && make && make install
is all i did
what problem are you seeing?
-a
On Thu, 25 May 2006, Guest wrote:
Guest wrote:
I’ve got mingw and msys installed on a windows 2003 box… I’ve got the
path variables set, etc… how did you run ./configure on the ruby
source???
I figured it out… I have to use the msys shell… works great.
yup. and know you can do things like
tar xvfz narray.tgz
cd narray
ruby extconf.rb && make && make install
voila - you’ve got the narray c extension installed. easy cheasy.
as far as i’m concerned a ruby that can’t be extended this way is
crippled…
the other nice thing is that you can stay as current as you like and
even
patch your own local ruby.
cheers.
-a
yes.
download this script
http://fortytwo.merseine.nu/presentations/narray_install.sh
use this link if your browser doesn’t understand *.sh files
http://fortytwo.merseine.nu/presentations/narray_install.sh.txt
edit the line
msys_ruby=“/c/usr/local/bin/ruby”
to point to wherever you installed your msys ruby
run it.
you should see a bunch of output and then
you just installed NArray
it’s that easy.
-a
That is so cool! I can’t fault the guys who build the one-click
installer for using a MS compilier as I’ve used and enjoyed their work
greatly, but it seems to me the natural way to build Ruby on Windows in
the future would be mingw and msys as it’s so easy and won’t go away
like MS compilers seem to do
I could probably find this info elsewhere, but I wonder what does Daniel
Berger of the win32utils project build binaries with?
On Thu, 25 May 2006, Guest wrote:
So, now that I have a working ruby.exe, irb, ri, etc. built with mingw and
msys… I suppose the next step is to build the extensions with mingw and
msys in the same manner? Is it really that simple?
yes.
download this script
http://fortytwo.merseine.nu/presentations/narray_install.sh
use this link if your browser doesn’t understand *.sh files
http://fortytwo.merseine.nu/presentations/narray_install.sh.txt
edit the line
msys_ruby=“/c/usr/local/bin/ruby”
to point to wherever you installed your msys ruby
run it.
you should see a bunch of output and then
you just installed NArray
it’s that easy.
-a
From: [email protected]
tar xvfz ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure --prefix=/usr/local/ && make && make install
is all i did
Nice. . . . But what does /usr/local mean on windows? Did it
really install C:\usr\local?
Also… I’ve searched the mingw FAQ and Google’d a bit, but
I haven’t found an answer as to whether mingw can produce
debugging symbols in a format compatible with the Visual
Studio debugger.
as far as i’m concerned a ruby that can’t be extended this way
is crippled…
./configure && make would be nice… provided the result is
debuggable with symbols in devenv.exe. Otherwise it would
seem like curing the cripple in exchange for poking his eyes
out.
(I’ll admit I’ve never tried using gdb under Windows. Maybe
it’s not as horrifying as I’m imagining.)
Regards,
Bill
On Fri, 26 May 2006, Brad wrote:
That is so cool! I can’t fault the guys who build the one-click installer
for using a MS compilier as I’ve used and enjoyed their work greatly, but it
seems to me the natural way to build Ruby on Windows in the future would be
mingw and msys as it’s so easy and won’t go away like MS compilers seem to
do
I could probably find this info elsewhere, but I wonder what does Daniel
Berger of the win32utils project build binaries with?
i am under the impression that dan is re-working all that code to use
ruby/dl
- ergo it will not be, nor require, a compiler. is that true dan?
-a
On Fri, 26 May 2006, Bill K. wrote:
start msys # gives you a shell
tar xvfz ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure --prefix=/usr/local/ && make && make install
is all i did
Nice. . . . But what does /usr/local mean on windows? Did it
really install C:\usr\local?
to msys /usr/local means /c/usr/local whic means c:\usr\local. however,
if
one tries this
./configure --prefix=c:\usr\local
the configure will explode in many, like the gsl, packages. i don’t
know how
it implements the ‘virtual’ /usr/local - but it does.
Also… I’ve searched the mingw FAQ and Google’d a bit, but I haven’t found
an answer as to whether mingw can produce debugging symbols in a format
compatible with the Visual Studio debugger.
what’s a debugger?
as far as i’m concerned a ruby that can’t be extended this way
is crippled…
./configure && make would be nice… provided the result is debuggable with
symbols in devenv.exe. Otherwise it would seem like curing the cripple in
exchange for poking his eyes out.
(I’ll admit I’ve never tried using gdb under Windows. Maybe
it’s not as horrifying as I’m imagining.)
it acutally seems to work fine - though i’ve not used it in anger.
cheers.
-a
On Wed, May 24, 2006 at 04:30:56AM +0900, Enterprise A. wrote:
latest gem. Seems like a lot less maintenance and heartache than the
way its being done currently.
–
Posted via http://www.ruby-forum.com/.
Real men %x{aptitude install ruby} and
%x{aptitude search “lib.*ruby1.8”} for the rest on their own.
ducks and runs for cover
Jürgen