I have Ruby compiling fine using Borlands (free) C compiler for Windows.
The only problem is I can't set where ruby is compiled to, it just
installs it to the current directory (c:\ruby\src\ruby-1.8.4\bcc32\).
Normally you can add --prefix=c:\ruby\bin to the configure command and
that sets the directory.
configure --prefix=c:\ruby\bin
make
make test
make install
Is there anyone who is using BCC to compile Ruby, I know the standard
appears to be MS Visual C/C++.
Kris Leech wrote:
···
I have Ruby compiling fine using Borlands (free) C compiler for Windows.
The only problem is I can't set where ruby is compiled to, it just
installs it to the current directory (c:\ruby\src\ruby-1.8.4\bcc32\).
Normally you can add --prefix=c:\ruby\bin to the configure command and
that sets the directory.
configure --prefix=c:\ruby\bin
make
make test
make install
It does not look like BCC32 has the correct configure files. It will
compile Ruby.exe but does not for some reason generate files like strscan.so which should appear in the lib/1.8/i386-bcc32 (i think thats
correct, its somewhere in lib anyway). A simple helloworld will run, but
anything more and strscan gets used.
If I copy strscan from a pre-compiled version (I think which uses Visual
C) I get an error about not being able to find init__strscan.
At Mon, 19 Jun 2006 18:53:54 +0900,
Kris Leech wrote in [ruby-talk:198001]:
It does not look like BCC32 has the correct configure files. It will
compile Ruby.exe but does not for some reason generate files like
strscan.so which should appear in the lib/1.8/i386-bcc32 (i think thats
correct, its somewhere in lib anyway). A simple helloworld will run, but
anything more and strscan gets used.
configure is a shell script, so it can't run on Windows. There
is bcc32/configure.bat for bcc32 instead.
At Mon, 19 Jun 2006 18:53:54 +0900,
Kris Leech wrote in [ruby-talk:198001]:
It does not look like BCC32 has the correct configure files. It will
compile Ruby.exe but does not for some reason generate files like
strscan.so which should appear in the lib/1.8/i386-bcc32 (i think thats
correct, its somewhere in lib anyway). A simple helloworld will run, but
anything more and strscan gets used.
configure is a shell script, so it can't run on Windows. There
is bcc32/configure.bat for bcc32 instead.
That is what I have been using
Can anyone confirm that is it possible to compile 1.8.4 or 1.8.2 with
Borland BCC32?