# Compiling ruby 1.8.1 (mingw)

**URL:** <https://rubytalk.org/t/compiling-ruby-1-8-1-mingw/8742>\
**Category:** ruby-talk\
**Created:** [10 November 2003 13:27 UTC](https://rubytalk.org/t/compiling-ruby-1-8-1-mingw/8742 "2003-11-10T13:27:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KONTRA\_Gergely](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@KONTRA\_Gergely](https://rubytalk.org/u/KONTRA_Gergely)\
**Post date:** [10 November 2003 13:27 UTC](https://rubytalk.org/t/compiling-ruby-1-8-1-mingw/8742/1 "2003-11-10T13:27:36Z")

</div>

Hi!

While compiling ruby, I run into the following:

./configure --prefix=/d/programs/ruby-mingw  
[fine output]

make  
[fine output]

make test  
test succeeded

make install  
./miniruby.exe ./instruby.rb --dest-dir=“” --make=“make” --mflags=“-  
–unix” --make-flags=" --unix" --mantype=“man”¡jump!install -c -p -m  
0755 ruby.exe /d/programs/ruby-mingw/bin/ruby.exe  
install -c -p -m 0755 rubyw.exe /d/programs/ruby-mingw/bin  
[and so on…]

root@OJJEKTUM /d/programs/ruby-mingw  
$ ls  
lib

😮 So where is the bin directory, and my ruby.exe?

thx Gergo

> **···**
>
> –  
> ±[Kontra, Gergely[kgergely@mcl.hu](mailto:kgergely@mcl.hu) PhD student Room IB113 ]---------+
> 
> > [http://www.mcl.hu/~kgergely](http://www.mcl.hu/~kgergely) “Olyan langesz vagyok, hogy |  
> > Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom” |  
> > ±- Magyar php mirror es magyar php dokumentacio: [http://hu.php.net](http://hu.php.net) --+

---

<div class="post-metadata">

**Author:** ![Christoph](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@Christoph](https://rubytalk.org/u/Christoph)\
**Post date:** [10 November 2003 15:52 UTC](https://rubytalk.org/t/compiling-ruby-1-8-1-mingw/8742/2 "2003-11-10T15:52:53Z")

</div>

KONTRA Gergely wrote:  
…

> make install

…  
I had similar problems when using the mingw+mysys environment.  
For some reason the install process had trouble installing the extensions.  
The problem goes away when I explicitly specified the install directory.  
So I am wondering if

> **···**
>
> * * *
> 
> ## make install prefix=/d/programs/ruby-mingw
> 
> resolves your problem. Another thing to look at is that install process  
> might fail in creating the necessary directories in which case creating  
> them by hand might help.
> 
> /Christoph

---

<div class="post-metadata">

**Author:** ![Gour](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@Gour](https://rubytalk.org/u/Gour)\
**Post date:** [10 November 2003 17:05 UTC](https://rubytalk.org/t/compiling-ruby-1-8-1-mingw/8742/3 "2003-11-10T17:05:29Z")

</div>

I always compile everything with --prefix=/mingw where /mingw → c:\MinGW i.e.  
everything under MinGW tree.

Ruby pre2 compiled without any problem (MinGW 3.1.0 & MSYS 1.0.10rc2).

What is the contents of your fstab?

Sincerely,  
Gour

> **···**
>
> KONTRA Gergely (kgergely@mlabdial.hit.bme.hu) wrote:
> 
> > While compiling ruby, I run into the following:
> > 
> > ./configure --prefix=/d/programs/ruby-mingw
> 
> –  
> Gour  
> gour@mail.inet.hr  
> Registered Linux User #278493

---

<div class="post-metadata">

**Author:** ![Nobuyoshi\_Nakada](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nobuyoshi\_Nakada](https://rubytalk.org/u/Nobuyoshi_Nakada)\
**Post date:** [11 November 2003 02:59 UTC](https://rubytalk.org/t/compiling-ruby-1-8-1-mingw/8742/4 "2003-11-11T02:59:04Z")

</div>

Hi,

> **···**
>
> At Mon, 10 Nov 2003 22:27:36 +0900, KONTRA Gergely wrote:
> 
> > ./configure --prefix=/d/programs/ruby-mingw
> 
> ./configure --prefix=d:/programs/ruby-mingw
> 
> Ruby on mingw is NOT msys compliant.
> 
> –  
> Nobu Nakada

---

<div class="post-metadata">

**Author:** ![KONTRA\_Gergely](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@KONTRA\_Gergely](https://rubytalk.org/u/KONTRA_Gergely)\
**Post date:** [10 November 2003 16:33 UTC](https://rubytalk.org/t/compiling-ruby-1-8-1-mingw/8742/5 "2003-11-10T16:33:11Z")

</div>

Neither of them solves my problem ;-(

> **···**
>
> On 1111, Christoph wrote:
> 
> > I had similar problems when using the mingw+mysys environment.  
> > For some reason the install process had trouble installing the extensions.  
> > The problem goes away when I explicitly specified the install directory.  
> > So I am wondering if
> > 
> > * * *
> > 
> > ## make install prefix=/d/programs/ruby-mingw
> > 
> > resolves your problem. Another thing to look at is that install process  
> > might fail in creating the necessary directories in which case creating  
> > them by hand might help.
> 
> –  
> ±[Kontra, Gergely[kgergely@mcl.hu](mailto:kgergely@mcl.hu) PhD student Room IB113 ]---------+
> 
> > [http://www.mcl.hu/~kgergely](http://www.mcl.hu/~kgergely) “Olyan langesz vagyok, hogy |  
> > Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom” |  
> > ±- Magyar php mirror es magyar php dokumentacio: [http://hu.php.net](http://hu.php.net) --+

---

<div class="post-metadata">

**Author:** ![KONTRA\_Gergely](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@KONTRA\_Gergely](https://rubytalk.org/u/KONTRA_Gergely)\
**Post date:** [11 November 2003 16:27 UTC](https://rubytalk.org/t/compiling-ruby-1-8-1-mingw/8742/6 "2003-11-11T16:27:20Z")

</div>

> > ./configure --prefix=/d/programs/ruby-mingw  
> > ./configure --prefix=d:/programs/ruby-mingw  
> > Ruby on mingw is NOT msys compliant.  
> > Thx a lot! It was the problem.

> **···**
>
> –  
> ±[Kontra, Gergely[kgergely@mcl.hu](mailto:kgergely@mcl.hu) PhD student Room IB113 ]---------+
> 
> > [http://www.mcl.hu/~kgergely](http://www.mcl.hu/~kgergely) “Olyan langesz vagyok, hogy |  
> > Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom” |  
> > ±- Magyar php mirror es magyar php dokumentacio: [http://hu.php.net](http://hu.php.net) --+
