[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

build error on cygwin

Daniel Schüle

7/29/2006 1:16:00 PM

I am trying to install ruby1.8.4

../configure --prefix=/pool/installed2 --disable-nls
make

....

make[1]: Leaving directory `/pool/software/ruby/ruby-1.8.4/ext/enumerator'
compiling etc
/pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `initialize':
Permission denie
d - mkmftmp1.log (Errno::EACCES)
from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `open'
from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:205:in `postpone'
from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:178:in `open'
from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:201:in `postpone'
from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:541:in
`checking_for'
from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:669:in `have_type'
from ../.././ext/etc/extconf.rb:27
from ./ext/extmk.rb:138:in `extmake'
from ./ext/extmk.rb:397
from ./ext/extmk.rb:396
make: *** [all] Error 1

does someone know what may be going wrong?

Thanks in advance

--
Daniel
11 Answers

M. Edward (Ed) Borasky

7/29/2006 4:18:00 PM

0

Schüle Daniel wrote:
> I am trying to install ruby1.8.4
>
> ./configure --prefix=/pool/installed2 --disable-nls
> make
>
> ...
>
> make[1]: Leaving directory
> `/pool/software/ruby/ruby-1.8.4/ext/enumerator'
> compiling etc
> /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `initialize':
> Permission denie
> d - mkmftmp1.log (Errno::EACCES)
> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `open'
> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:205:in `postpone'
> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:178:in `open'
> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:201:in `postpone'
> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:541:in
> `checking_for'
> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:669:in
> `have_type'
> from ../.././ext/etc/extconf.rb:27
> from ./ext/extmk.rb:138:in `extmake'
> from ./ext/extmk.rb:397
> from ./ext/extmk.rb:396
> make: *** [all] Error 1
>
> does someone know what may be going wrong?
>
> Thanks in advance
>
> --
> Daniel
>
>
Do you just need Ruby on CygWin, or do you need to build it from source?
My copy of CygWin (I install the whole thing) has Ruby 1.8.4 as part of
the distribution. I don't know why building Ruby from source would
break, though.

M. Edward (Ed) Borasky

7/29/2006 4:21:00 PM

0

M. Edward (Ed) Borasky wrote:
> Schüle Daniel wrote:
>> I am trying to install ruby1.8.4
>>
>> ./configure --prefix=/pool/installed2 --disable-nls
>> make
>>
>> ...
>>
>> make[1]: Leaving directory
>> `/pool/software/ruby/ruby-1.8.4/ext/enumerator'
>> compiling etc
>> /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `initialize':
>> Permission denie
>> d - mkmftmp1.log (Errno::EACCES)

Oops ... didn't see that. It looks like you don't have enough privileges
to "install" software. You probably need to be what Windows calls a
"Power User" or an "Administrator" to run this. Check with your IT folks
if you aren't the Administrator of your system. Meanwhile, you can use
the binary Ruby that comes with CygWin.


>> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `open'
>> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:205:in
>> `postpone'
>> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:178:in `open'
>> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:201:in
>> `postpone'
>> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:541:in
>> `checking_for'
>> from /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:669:in
>> `have_type'
>> from ../.././ext/etc/extconf.rb:27
>> from ./ext/extmk.rb:138:in `extmake'
>> from ./ext/extmk.rb:397
>> from ./ext/extmk.rb:396
>> make: *** [all] Error 1
>>
>> does someone know what may be going wrong?
>>
>> Thanks in advance
>>
>> --
>> Daniel
>>
>>
> Do you just need Ruby on CygWin, or do you need to build it from
> source? My copy of CygWin (I install the whole thing) has Ruby 1.8.4
> as part of the distribution. I don't know why building Ruby from
> source would break, though.
>


Daniel Schüle

7/29/2006 9:47:00 PM

0

hi,

[...]

>>> make[1]: Leaving directory
>>> `/pool/software/ruby/ruby-1.8.4/ext/enumerator'
>>> compiling etc
>>> /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `initialize':
>>> Permission denie
>>> d - mkmftmp1.log (Errno::EACCES)
>
> Oops ... didn't see that. It looks like you don't have enough privileges
> to "install" software. You probably need to be what Windows calls a
> "Power User" or an "Administrator" to run this. Check with your IT folks
> if you aren't the Administrator of your system. Meanwhile, you can use
> the binary Ruby that comes with CygWin.

actually I am logged in as administrator on XP
but you are right if I recall properly "whoami" under
cygwin said I am not the "root"

[...]

>> Do you just need Ruby on CygWin, or do you need to build it from
>> source? My copy of CygWin (I install the whole thing) has Ruby 1.8.4
>> as part of the distribution. I don't know why building Ruby from
>> source would break, though.


yes, ruby is a part of the distribution
there seems to be a problem with irb (it doesn't start)
that's why I am trying to install it from sources
most of the time I am working on my Linux box and I simply like to
build software I use from sources :)

I will try to "su root" next time I boot into XP

Regrads, Daniel

Nobuyoshi Nakada

7/30/2006 1:01:00 AM

0

Hi,

At Sun, 30 Jul 2006 06:50:05 +0900,
Schüle Daniel wrote in [ruby-talk:204932]:
> >>> make[1]: Leaving directory
> >>> `/pool/software/ruby/ruby-1.8.4/ext/enumerator'
> >>> compiling etc
> >>> /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `initialize':
> >>> Permission denie
> >>> d - mkmftmp1.log (Errno::EACCES)
> >
> > Oops ... didn't see that. It looks like you don't have enough privileges
> > to "install" software. You probably need to be what Windows calls a
> > "Power User" or an "Administrator" to run this. Check with your IT folks
> > if you aren't the Administrator of your system. Meanwhile, you can use
> > the binary Ruby that comes with CygWin.
>
> actually I am logged in as administrator on XP
> but you are right if I recall properly "whoami" under
> cygwin said I am not the "root"

It occurs at compile time, not installation. The privileges
are not needed for compilation even on Unixes. Check if
ext/etc directory is read-only and/or there is a read-only file
named mkmftmp1.log under it.

> I will try to "su root" next time I boot into XP

su doesn't work on cygwin, as you can see immediately if you
run it. It tells to use runas instead.

--
Nobu Nakada

S Wayne

7/30/2006 5:22:00 AM

0

On 7/29/06, Schüle Daniel <uval@rz.uni-karlsruhe.de> wrote:
> yes, ruby is a part of the distribution
> there seems to be a problem with irb (it doesn't start)
> that's why I am trying to install it from sources
> most of the time I am working on my Linux box and I simply like to
> build software I use from sources :)
>

That's very odd. I've installed Cygwin with Ruby on several Win XP
machines, and never had any problems with ruby or irb. Maybe you need
to reinstall cygwin?

M. Edward (Ed) Borasky

7/30/2006 5:49:00 AM

0

N Okia wrote:
> On 7/29/06, Schüle Daniel <uval@rz.uni-karlsruhe.de> wrote:
>> yes, ruby is a part of the distribution
>> there seems to be a problem with irb (it doesn't start)
>> that's why I am trying to install it from sources
>> most of the time I am working on my Linux box and I simply like to
>> build software I use from sources :)
>>
>
> That's very odd. I've installed Cygwin with Ruby on several Win XP
> machines, and never had any problems with ruby or irb. Maybe you need
> to reinstall cygwin?
>
>
I just tried "irb" on CygWin and it spake thusly:

$ irb
/usr/bin/ruby: no such file to load -- ubygems (LoadError)

I think CygWin is broken! Is this what it's doing on your system??



Hal E. Fulton

7/30/2006 5:51:00 AM

0

M. Edward (Ed) Borasky wrote:
> I just tried "irb" on CygWin and it spake thusly:
>
> $ irb
> /usr/bin/ruby: no such file to load -- ubygems (LoadError)
>
> I think CygWin is broken! Is this what it's doing on your system??

Try unsetting your RUBYOPT or installing rubygems (which has
an actual lib called "ubygems").


Hal

S Wayne

7/30/2006 6:07:00 AM

0

I have seen that, and usually you need to unset RUBYOPT. The problem
usually occurs because you have both cygwin and One-Click Ruby
installer.

M. Edward (Ed) Borasky

7/30/2006 7:06:00 AM

0

Hal Fulton wrote:
> M. Edward (Ed) Borasky wrote:
>> I just tried "irb" on CygWin and it spake thusly:
>>
>> $ irb
>> /usr/bin/ruby: no such file to load -- ubygems (LoadError)
>>
>> I think CygWin is broken! Is this what it's doing on your system??
>
> Try unsetting your RUBYOPT or installing rubygems (which has
> an actual lib called "ubygems").
>
>
> Hal
>
>
Yep ... first undefine RUBYOPT, then re-install rubygems, then re-set
RUBYOPT and irb still works. I do have the one-click installer loaded,
and CygWin inherited the RUBYOPT definition from Windows. This is
apparently an FAQ. :)



Daniel Schüle

7/30/2006 12:07:00 PM

0

[...]

> I just tried "irb" on CygWin and it spake thusly:
>
> $ irb
> /usr/bin/ruby: no such file to load -- ubygems (LoadError)
>
> I think CygWin is broken! Is this what it's doing on your system??

yes, this is what it says
I don't think cygwin is broken, most probably just misconfiguration
of ruby package(?)

Regards, Daniel