Does WideStudio require a special ruby build?

S

seannakasone

I installed the latest version of Ruby and WideStudio (Ruby 1.8.4 and
WideStudio 3.94-1).

I also installed the Ruby that came with WideStudio (Ruby 1.8.0).

So now I have two versions of Ruby and only the one that came with
WideStudio works with WideStudio. So my question is, what's the
difference? I would like to use WideStudio but I would hate to be tied
into using a special version of Ruby.
 
N

nobu

Hi,

At Sun, 30 Jul 2006 03:35:09 +0900,
I installed the latest version of Ruby and WideStudio (Ruby 1.8.4 and
WideStudio 3.94-1).

I also installed the Ruby that came with WideStudio (Ruby 1.8.0).

What's your platform and how did you installed them?
So now I have two versions of Ruby and only the one that came with
WideStudio works with WideStudio. So my question is, what's the
difference? I would like to use WideStudio but I would hate to be tied
into using a special version of Ruby.

How doesn't it work?
 
S

seannakasone

What's your platform and how did you installed them?

Windows XP.
Ruby 1.8.4 was installed from bash with these commands:
../configure --prefix=c:/ruby
make
make install
WideStudio was installed from setup.exe.
How doesn't it work?

Here's the error (Ruby 1.8.4 precedes the widestudio version of Ruby in
my path).

C:\a\hello>ruby hello.rb
../mwt.dll: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-cygwin]

3 [sig] ruby 3576 open_stackdumpfile: Dumping stack trace to
ruby.exe.stac
kdump

If I run the widestudio version of ruby, it works:

C:\a\hello>\WideStudio\ruby\bin\ruby hello.rb

A window appears as expected.

Thanks,
Sean.
 
N

nobu

Hi,

At Mon, 31 Jul 2006 05:40:09 +0900,
WideStudio was installed from setup.exe.

What's the platform of WideStudio version ruby?
What does `\WideStudio\ruby\bin\ruby -v' show?
How doesn't it work?

Here's the error (Ruby 1.8.4 precedes the widestudio version of Ruby in
my path).

C:\a\hello>ruby hello.rb
./mwt.dll: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-cygwin]

What's that mwt.dll? Is it compatible to cygwin?
 
S

seannakasone

Hi,

At Mon, 31 Jul 2006 05:40:09 +0900,


What's the platform of WideStudio version ruby?
What does `\WideStudio\ruby\bin\ruby -v' show?

C:\a\hello>\WideStudio\ruby\bin\ruby -v
ruby 1.8.0 (2003-10-06) [i386-mingw32]
How doesn't it work?

Here's the error (Ruby 1.8.4 precedes the widestudio version of Ruby in
my path).

C:\a\hello>ruby hello.rb
./mwt.dll: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-cygwin]

What's that mwt.dll? Is it compatible to cygwin?

I'm new to WideStudio, but i believe mwt.dll is the graphical library
used by WideStudio/MWT. I'm not sure if it's compatible with cygwin.
I guess I should try to build a ruby-mingw32 version 1.8.4.
 
S

seannakasone

Ok, I think I figured it out. Building WideStudio/Ruby apps requires
ruby-mingw32 (meaning ruby built with mingw/msys).

Here's the steps I took (instructed by Sean O'Halpin):

I installed MinGW Current (MinGW-5.0.3) first, then
MSYS-1.0.11-2004.04.30-1, downloaded and unpacked ruby stable snapshot
(ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz), fired up
MSYS, entered this:

/configure --prefix=c:/ruby-mingw --enable-shared && make && make
install
 
N

nobu

Hi,

At Tue, 1 Aug 2006 12:55:11 +0900,
Ok, I think I figured it out. Building WideStudio/Ruby apps requires
ruby-mingw32 (meaning ruby built with mingw/msys).
Congraturation.

/configure --prefix=c:/ruby-mingw --enable-shared && make && make
install

On a side note, I don't recommend to use prefix (especially,
with a drive letter) on Windows, since it is meaningless but
will be embedded in rbconfig.rb.

Use DESTDIR=... at install, instead.
 

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,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top