# \[newbie\] install problem

**URL:** <https://rubytalk.org/t/newbie-install-problem/14844>\
**Category:** ruby-talk\
**Created:** [17 November 2004 11:13 UTC](https://rubytalk.org/t/newbie-install-problem/14844 "2004-11-17T11:13:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Rao](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@Amit\_Rao](https://rubytalk.org/u/Amit_Rao)\
**Post date:** [17 November 2004 11:13 UTC](https://rubytalk.org/t/newbie-install-problem/14844/1 "2004-11-17T11:13:34Z")

</div>

I am trying to install ruby on mingw32 (on XP) ...  
it worked fine for (or at least did not give me any errors) the  
initial few steps.The make files were generated and the test succeded  
as well.

but when i tried "make install" i get the following error

$ make install  
./miniruby.exe ./instruby.rb --dest-dir="" --make="make" --mflags="-  
--unix" --make-flags=" --unix" --mantype="man"  
mkdir -p -m 755 //home/user/bin //home/user/lib  
//home/user/lib/ruby/1.8 //home/user/lib/ruby/1.8/i386-mingw32  
//home/user/lib/ruby/site\_ruby/1.8  
//home/user/lib/ruby/site\_ruby/1.8/i386-msvcrt  
D:/msys/1.0/home/user/ruby-1.8.2/lib/fileutils.rb:196:in `mkdir':  
Invalid argument - // (Errno::EINVAL)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/msys/1.0/home/user/ruby-1.8.2/lib/fileutils.rb:196:in `makedirs'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/msys/1.0/home/user/ruby-1.8.2/lib/fileutils.rb:194:in  
`reverse\_each'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/msys/1.0/home/user/ruby-1.8.2/lib/fileutils.rb:194:in `makedirs'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/msys/1.0/home/user/ruby-1.8.2/lib/fileutils.rb:180:in `each'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/msys/1.0/home/user/ruby-1.8.2/lib/fileutils.rb:180:in `makedirs'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from D:/msys/1.0/home/user/ruby-1.8.2/lib/fileutils.rb:959:in `makedirs'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from ./instruby.rb:71:in `makedirs'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from ./instruby.rb:99  
make: \*\*\* [install-nodoc] Error 1

What could i be missing???

Thanks,  
Amit

---

<div class="post-metadata">

**Author:** ![Matt\_Mower](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@Matt\_Mower](https://rubytalk.org/u/Matt_Mower)\
**Post date:** [17 November 2004 11:56 UTC](https://rubytalk.org/t/newbie-install-problem/14844/2 "2004-11-17T11:56:13Z")

</div>

Hi.

> **···**
>
> On Wed, 17 Nov 2004 20:13:34 +0900, Amit Rao \<amitraok@gmail.com\> wrote:
> 
> > I am trying to install ruby on mingw32 (on XP) ...  
> > it worked fine for (or at least did not give me any errors) the  
> > initial few steps.The make files were generated and the test succeded  
> > as well.
> > 
> > but when i tried "make install" i get the following error
> 
> When you ran ./configure what --prefix did you specify?
> 
> Regards,
> 
> Matt

---

<div class="post-metadata">

**Author:** ![Amit\_Rao](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@Amit\_Rao](https://rubytalk.org/u/Amit_Rao)\
**Post date:** [18 November 2004 03:44 UTC](https://rubytalk.org/t/newbie-install-problem/14844/3 "2004-11-18T03:44:01Z")

</div>

when i ran ./configure specified /$HOME as the --prefix

> **···**
>
> On Wed, 17 Nov 2004 20:56:13 +0900, Matt Mower \<matt.mower@gmail.com\> wrote:
> 
> > Hi.
> > 
> > On Wed, 17 Nov 2004 20:13:34 +0900, Amit Rao \<amitraok@gmail.com\> wrote:  
> > \> I am trying to install ruby on mingw32 (on XP) ...  
> > \> it worked fine for (or at least did not give me any errors) the  
> > \> initial few steps.The make files were generated and the test succeded  
> > \> as well.  
> > \>  
> > \> but when i tried "make install" i get the following error  
> > \>
> > 
> > When you ran ./configure what --prefix did you specify?
> > 
> > Regards,
> > 
> > Matt

---

<div class="post-metadata">

**Author:** ![Osuka\_Adartse](https://avatars.discourse-cdn.com/v4/letter/o/e9c0ed/32.png) [@Osuka\_Adartse](https://rubytalk.org/u/Osuka_Adartse)\
**Post date:** [18 November 2004 05:23 UTC](https://rubytalk.org/t/newbie-install-problem/14844/4 "2004-11-18T05:23:36Z")

</div>

Amit Rao wrote:

> when i ran ./configure specified /$HOME as the --prefix
> 
> > Hi.
> > 
> > > I am trying to install ruby on mingw32 (on XP) ...  
> > > it worked fine for (or at least did not give me any errors) the  
> > > initial few steps.The make files were generated and the test succeded  
> > > as well.
> > > 
> > > but when i tried "make install" i get the following error
> > 
> > When you ran ./configure what --prefix did you specify?
> > 
> > Regards,
> > 
> > Matt

Maybe I'm wrongly thinking You're using the Msys shell, but in it:

ALiminality@localhost /  
$ /$HOME  
sh: //home/ALiminality: No such file or directory  
guess this is why it fails...

ALiminality@localhost /  
$ /HOME  
sh: /HOME: is a directory

ALiminality@localhost /  
$ $HOME  
sh: /home/ALiminality: is a directory

so /$HOME won't work maybe You want $HOME ? , either don't add a prefix(personally I never use that, just configure --enable-shared,make, make install) or use --prefix=/c/ruby, guess /ruby should also work(or wherever you want it to be).

regards

> **···**
>
> > On Wed, 17 Nov 2004 20:56:13 +0900, Matt Mower \<matt.mower@gmail.com\> wrote:
> > 
> > > On Wed, 17 Nov 2004 20:13:34 +0900, Amit Rao \<amitraok@gmail.com\> wrote:

---

<div class="post-metadata">

**Author:** ![Amit\_Rao](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@Amit\_Rao](https://rubytalk.org/u/Amit_Rao)\
**Post date:** [18 November 2004 09:43 UTC](https://rubytalk.org/t/newbie-install-problem/14844/5 "2004-11-18T09:43:26Z")

</div>

Osuka, i am using MSYS..  
i tried the configure without any prefix..this has worked for me ...

Thanks,  
Amit

> **···**
>
> On Thu, 18 Nov 2004 14:23:36 +0900, Osuka Adartse \<rocioestradacastaneda@prodigy.net.mx\> wrote:
> 
> > Amit Rao wrote:
> > 
> > \> when i ran ./configure specified /$HOME as the --prefix  
> > \>  
> > \>  
> > \> On Wed, 17 Nov 2004 20:56:13 +0900, Matt Mower \<matt.mower@gmail.com\> wrote:  
> > \>  
> > \>\>Hi.  
> > \>\>  
> > \>\>On Wed, 17 Nov 2004 20:13:34 +0900, Amit Rao \<amitraok@gmail.com\> wrote:  
> > \>\>  
> > \>\>\>I am trying to install ruby on mingw32 (on XP) ...  
> > \>\>\>it worked fine for (or at least did not give me any errors) the  
> > \>\>\>initial few steps.The make files were generated and the test succeded  
> > \>\>\>as well.  
> > \>\>\>  
> > \>\>\>but when i tried "make install" i get the following error  
> > \>\>\>  
> > \>\>  
> > \>\>When you ran ./configure what --prefix did you specify?  
> > \>\>  
> > \>\>Regards,  
> > \>\>  
> > \>\>Matt  
> > \>\>  
> > \>\>  
> > \>  
> > \>  
> > \>  
> > Maybe I'm wrongly thinking You're using the Msys shell, but in it:
> > 
> > ALiminality@localhost /  
> > $ /$HOME  
> > sh: //home/ALiminality: No such file or directory  
> > guess this is why it fails...
> > 
> > ALiminality@localhost /  
> > $ /HOME  
> > sh: /HOME: is a directory
> > 
> > ALiminality@localhost /  
> > $ $HOME  
> > sh: /home/ALiminality: is a directory
> > 
> > so /$HOME won't work maybe You want $HOME ? , either don't add a  
> > prefix(personally I never use that, just configure --enable-shared,make,  
> > make install) or use --prefix=/c/ruby, guess /ruby should also work(or  
> > wherever you want it to be).
> > 
> > regards
