Ask a Question related to Ruby, Design and Development.
-
KONTRA Gergely #1
where to post: problem compiling ruby1.8 with borland c 5.5
The ruby-dev is a Japanese list, isn't it? So where should I post this
bug?
----- Forwarded message from KONTRA Gergely <kgergely@mlabdial.hit.bme.hu> -----
Date: Wed, 2 Jul 2003 23:13:59 +0900
To: [email]ruby-talk@ruby-lang.org[/email] (ruby-talk ML)
Subject: problem compiling ruby1.8 with borland c 5.5
Hi!
I've problem compiling ruby-preview 1.8.0-preview3 on win98.
After doing bcc32\configure.bat, when I type make, it simply doesn't
find the header files.
But I've set up the lib and include environment variables BEFORE
configuring:
----------[ other variables deleted ]----------
D:\tmp\ruby-1.8.0>set
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\VIR USB~1\BIN;D:\BORLAND\BCC55\BIN
LIB=d:\borland\bcc55\lib
INCLUDE=d:\borland\bcc55\include
-----------------------------------------------
The output of make is the following:
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Borlandbcc32 -q -O -5 -w- -DRUBY_EXPORT -I. -I. -I./ -I./missing -c
.\array.c
.\array.c:
Error E2209 .\win32/win32.h 25: Unable to open include file 'windows.h'
Gergo
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| [url]http://www.mcl.hu/~kgergely[/url] "Olyan langesz vagyok, hogy |
| Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" |
+-- Magyar php mirror es magyar php dokumentacio: [url]http://hu.php.net[/url] --+
----- End forwarded message -----
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| [url]http://www.mcl.hu/~kgergely[/url] "Olyan langesz vagyok, hogy |
| Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" |
+-- Magyar php mirror es magyar php dokumentacio: [url]http://hu.php.net[/url] --+
KONTRA Gergely Guest
-
Developing cfx tags in Borland C++ Builder
Hi, I have been trying to get a cfx tag written in BCB (v5) to work with cfmx 6.1. The tag compiles, but it throws errors when I try and use it... -
behaviour change of String#gsub(pattern) {|m| ... } for ruby1.9/ruby2?
Hi -- On Fri, 21 Nov 2003, Florian Gross wrote: I've also just noticed this: irb(main):001:0> "abc".gsub(/((x?)abc)/) {|n,m| p n, m}... -
$stdout.sync = true in Ruby1.8
Hi, In message "$stdout.sync = true in Ruby1.8" on 03/08/02, Cedric Foll <cedric.foll@ac-rouen.fr> writes: |The "$stdout.sync = true" doesn't... -
problem compiling ruby1.8 with borland c 5.5
Hi! I've problem compiling ruby-preview 1.8.0-preview3 on win98. After doing bcc32\configure.bat, when I type make, it simply doesn't find the... -
Oracle OCI programming and Borland C++ Builder
Afternoon, this is an answer not a question :o) As you may know, Oracle dropped support for Borland Compilers in OCI some time back. Well, it... -
WATANABE Hirofumi #2
Re: where to post: problem compiling ruby1.8 with borland c 5.5
KONTRA Gergely <kgergely@mlabdial.hit.bme.hu> writes:
It is not a bug.> The ruby-dev is a Japanese list, isn't it? So where should I post this
> bug?
This makes no sense. You should read the readme.txt in \borland\bcc55.> I've problem compiling ruby-preview 1.8.0-preview3 on win98.
> After doing bcc32\configure.bat, when I type make, it simply doesn't
> find the header files.
> But I've set up the lib and include environment variables BEFORE
> configuring:
> ----------[ other variables deleted ]----------
> D:\tmp\ruby-1.8.0>set
> PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\VIR USB~1\BIN;D:\BORLAND\BCC55\BIN
> LIB=d:\borland\bcc55\lib
> INCLUDE=d:\borland\bcc55\include
: b. Create a bcc32.cfg file which will set
: the compiler options for the Include
: and Lib paths (-I and -L switches to
: compiler) by adding these lines:
: -I"c:\Borland\Bcc55\include"
: -L"c:\Borland\Bcc55\lib"
: c. Create an ilink32.cfg file which will set
: the linker option for the Lib path by
: adding this line:
: -L"c:\Borland\Bcc55\lib"
--
eban
WATANABE Hirofumi Guest
-
KONTRA Gergely #3
Re: where to post: problem compiling ruby1.8 with borland c 5.5
On 0703, WATANABE Hirofumi wrote:
Damnit, thx, I hoped the installer'd done it ;(> This makes no sense. You should read the readme.txt in \borland\bcc55.
Everything went fine :)
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| [url]http://www.mcl.hu/~kgergely[/url] "Olyan langesz vagyok, hogy |
| Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" |
+-- Magyar php mirror es magyar php dokumentacio: [url]http://hu.php.net[/url] --+
KONTRA Gergely Guest
-
Peña, Botp #4
Re: where to post: problem compiling ruby1.8 with borland c 5.5
KONTRA Gergely [mailto:kgergely@mlabdial.hit.bme.hu] wrote:
if you don't mind, can you post your complete steps? I'd like to compile it> Damnit, thx, I hoped the installer'd done it ;(> > This makes no sense. You should read the readme.txt in
> > \borland\bcc55.
>
> Everything went fine :)
> --
using borland, too (found out late that it's free, and ms vc is too
expensive & heavy for me).
kind regards -botp> +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113
Peña, Botp Guest
-
daz #5
Re: where to post: problem compiling ruby1.8 with borland c 5.5
"Peña, Botp" <botp@delmonte-phil.com> wrote:
Follow Eban's words from [url]http://www.ruby-talk.org/75066[/url]> KONTRA Gergely [mailto:kgergely@mlabdial.hit.bme.hu] wrote:
>>> > Damnit, thx, I hoped the installer'd done it ;(> > > This makes no sense. You should read the readme.txt in
> > > \borland\bcc55.
> >
> > Everything went fine :)
> > --
> if you don't mind, can you post your complete steps? I'd like to compile it
> using borland, too (found out late that it's free, and ms vc is too
> expensive & heavy for me).
>>> > +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113
> kind regards -botp
>
"ruby-1.8.0-source_tarball"\bcc32\README.bcc32 covers the rest well.
It doesn't mention that you need byacc - (thanks to Yura for this) -
[url]http://prdownloads.sourceforge.net/gnuwin32/byacc-1.9-bin.zip?download[/url]
(You don't need the docs .. it just happens)
- which will be called by the Makefile, so the .exe files need to be
in your %PATH%. If you already have bcc55\bin in the execution path,
hey, why not drop the two .exe files in there unless you want to do
things the right way ,)
I was expecting that [url]http://unxutils.sourceforge.net/UnxUtils.zip[/url]
might be required, so I had these loaded. I don't think they are
used, though.
Set the drive:
cd to your source directory (change
create a 'build' directory under it (stick to the bccwin32 name)
cd into this * new * dir.
Then run configure.bat exactly as shown on the last line below.
D:
cd D:\ruby\SOURCE_CODE\ruby-1.8.0-p3
md bccwin32
cd bccwin32
REM ONLY ONCE (wipes \bcc32\Makefile)
...\bcc32\configure
configure.bat looks as scary as hell but don't worry, do it now.
Any customisation can be done next by modifying the Makefile
which has just been created.
Edit ruby-1.8.0-p3\bccwin32\Makefile using your favourite editor.
(Don't worry about any blank junk lines - tidy up if you want to)
Add a penultimate line to include your customisation which is TODO:
- filename isn't important here.
!include $(srcdir)bcc32/MakeX86.txt
!include $(srcdir)bcc32/Makefile.sub
TODO now: - create MakeX86.txt in the same dir. as Makefile.sub,
not the build dir.
MakeX86.txt ... smth like ???
#===---------------------===#
PROCESSOR_ARCHITECTURE = i586
PROCESSOR_LEVEL = 5
DESTDIR = $(srcdir)rubyX86 # <---- or whatever --- #
#===---------------------===#
# starts comment in Makefile
You could just add those lines to the Makefile instead of the
new !include. Your choice.
DESTDIR will be the install directory and a tree bearing
an abundance of fruit will grow here with far more than
you ever wished for; even curses (whatever that is).
I ran the make process(es) from a batch file under SciTE.
@echo off
D:
cd D:\ruby\SOURCE_CODE\ruby-1.8.0-p3\bccwin32
make
(Modifying the last line each time)
You need to use something that captures the output, otherwise you
won't know what's going on. When Borland 'make' is called, this
ensures that the current directory is set correctly. You can't
just double-click on a file and expect things to be set OK !
The first 'make' compiles Mini-Me ruby.
'make test' runs Rubicon (is it Rubicon or is that smth else ?)
'make install' grows "The Tree" ... a spectacular event
for a Windows user and as dull as ditch-water for Posix people
who did the same thing yesterday and the day before.
=====
First step is to give away all your personal details in exchange
for the occasional newsletter - never had spam.
[url]http://www.borland.com/downloads/freecompiler[/url]
This is NOT a GUI IDE, it's the same compiler as used in earlier
BC++Builder packages (BCB4 ?)- it's command line only but it's
fairly automatic once you're set up and you remember to set the
current directory.
Licensing for deployment of your own programs is very relaxed.
A few GUI's are being developed for it ...
e.g. [url]http://www.fifsoft.com/relo/[/url]
which also handles ...
[url]www.mingw.org[/url] (GNU compiler+ on Windows)
Many thanks to team-ruby who put this whole build process together.
daz
--
This information is guaranteed 0.00% accurate (or better)
daz Guest



Reply With Quote

