# Setting directory ruby is compiled to (BCC32 & Ruby 1.8.4)

**URL:** <https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208>\
**Category:** ruby-talk\
**Created:** [14 June 2006 20:10 UTC](https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208 "2006-06-14T20:10:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest12](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Guest12](https://rubytalk.org/u/Guest12)\
**Post date:** [14 June 2006 20:10 UTC](https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208/1 "2006-06-14T20:10:33Z")

</div>

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

I don't use C much so it maybe something basic...

Many thanks, K.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Guest12](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Guest12](https://rubytalk.org/u/Guest12)\
**Post date:** [16 June 2006 09:54 UTC](https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208/2 "2006-06-16T09:54:04Z")

</div>

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
> > 
> > I don't use C much so it maybe something basic...
> > 
> > Many thanks, K.
> 
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Nobuyoshi\_Nakada1](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nobuyoshi\_Nakada1](https://rubytalk.org/u/Nobuyoshi_Nakada1)\
**Post date:** [16 June 2006 13:48 UTC](https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208/3 "2006-06-16T13:48:21Z")

</div>

Hi,

At Thu, 15 Jun 2006 05:10:33 +0900,  
Kris Leech wrote in [ruby-talk:197320]:

> configure --prefix=c:\ruby\bin

prefix has no effects on Windows at all.

> make  
> make test

&nbsp;&nbsp;make DESTDIR=/path/to/anywhere/you/like/to install

> **···**
>
> --  
> Nobu Nakada

---

<div class="post-metadata">

**Author:** ![Guest12](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Guest12](https://rubytalk.org/u/Guest12)\
**Post date:** [17 June 2006 11:16 UTC](https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208/4 "2006-06-17T11:16:13Z")

</div>

unknown wrote:

> Hi,
> 
> At Thu, 15 Jun 2006 05:10:33 +0900,  
> Kris Leech wrote in [ruby-talk:197320]:
> 
> > configure --prefix=c:\ruby\bin
> 
> prefix has no effects on Windows at all.

It seemed to using djgpp. Anyways using BCC32 I finally found out:  
full\_path\_to\_bcc32\configure  
make  
make DESTDIR=c:\ruby install

> **···**
>
> > > make  
> > > make test
> > 
> > &nbsp;&nbsp;make DESTDIR=/path/to/anywhere/you/like/to install
> 
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Guest12](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Guest12](https://rubytalk.org/u/Guest12)\
**Post date:** [19 June 2006 09:53 UTC](https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208/5 "2006-06-19T09:53:54Z")

</div>

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](http://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.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Nobuyoshi\_Nakada1](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@Nobuyoshi\_Nakada1](https://rubytalk.org/u/Nobuyoshi_Nakada1)\
**Post date:** [19 June 2006 12:46 UTC](https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208/6 "2006-06-19T12:46:47Z")

</div>

Hi,

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.

> **···**
>
> --  
> Nobu Nakada

---

<div class="post-metadata">

**Author:** ![Guest12](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Guest12](https://rubytalk.org/u/Guest12)\
**Post date:** [23 June 2006 09:05 UTC](https://rubytalk.org/t/setting-directory-ruby-is-compiled-to-bcc32-ruby-1-8-4/28208/7 "2006-06-23T09:05:15Z")

</div>

Nobuyoshi Nakada wrote:

> Hi,
> 
> 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?

Thanks.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
