where to post: problem compiling ruby1.8 with borland c 5.5

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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}...
    3. $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...
    4. 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...
    5. 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...
  3. #2

    Default Re: where to post: problem compiling ruby1.8 with borland c 5.5


    KONTRA Gergely <kgergely@mlabdial.hit.bme.hu> writes:
    > The ruby-dev is a Japanese list, isn't it? So where should I post this
    > bug?
    It is not a bug.
    > 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
    This makes no sense. You should read the readme.txt in \borland\bcc55.

    : 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

  4. #3

    Default Re: where to post: problem compiling ruby1.8 with borland c 5.5

    On 0703, WATANABE Hirofumi wrote:
    > This makes no sense. You should read the readme.txt in \borland\bcc55.
    Damnit, thx, I hoped the installer'd done it ;(

    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

  5. #4

    Default Re: where to post: problem compiling ruby1.8 with borland c 5.5

    KONTRA Gergely [mailto:kgergely@mlabdial.hit.bme.hu] wrote:
    > > This makes no sense. You should read the readme.txt in
    > > \borland\bcc55.
    > Damnit, thx, I hoped the installer'd done it ;(
    >
    > 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

    Peña, Botp Guest

  6. #5

    Default Re: where to post: problem compiling ruby1.8 with borland c 5.5


    "Peña, Botp" <botp@delmonte-phil.com> wrote:
    > KONTRA Gergely [mailto:kgergely@mlabdial.hit.bme.hu] wrote:
    >
    > > > This makes no sense. You should read the readme.txt in
    > > > \borland\bcc55.
    > > Damnit, thx, I hoped the installer'd done it ;(
    > >
    > > 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
    >
    Follow Eban's words from [url]http://www.ruby-talk.org/75066[/url]

    "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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139