Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > build error on cygwin

Reply
Thread Tools

build error on cygwin

 
 
Schüle Daniel
Guest
Posts: n/a
 
      07-29-2006
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
 
Reply With Quote
 
 
 
 
M. Edward (Ed) Borasky
Guest
Posts: n/a
 
      07-29-2006
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.

 
Reply With Quote
 
 
 
 
M. Edward (Ed) Borasky
Guest
Posts: n/a
 
      07-29-2006
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.
>



 
Reply With Quote
 
Schüle Daniel
Guest
Posts: n/a
 
      07-29-2006
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
 
Reply With Quote
 
nobu@ruby-lang.org
Guest
Posts: n/a
 
      07-30-2006
Hi,

At Sun, 30 Jul 2006 06:50:05 +0900,
Sch=FCle Daniel wrote in [ruby-talk:204932]:
> >>> make[1]: Leaving directory=20
> >>> `/pool/software/ruby/ruby-1.8.4/ext/enumerator'
> >>> compiling etc
> >>> /pool/software/ruby/ruby-1.8.4/lib/mkmf.rb:174:in `initialize':=20
> >>> Permission denie
> >>> d - mkmftmp1.log (Errno::EACCES)

> >=20
> > Oops ... didn't see that. It looks like you don't have enough privilege=

s=20
> > to "install" software. You probably need to be what Windows calls a=20
> > "Power User" or an "Administrator" to run this. Check with your IT folk=

s=20
> > if you aren't the Administrator of your system. Meanwhile, you can use =


> > the binary Ruby that comes with CygWin.

>=20
> 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.

--=20
Nobu Nakada

 
Reply With Quote
 
N Okia
Guest
Posts: n/a
 
      07-30-2006
On 7/29/06, Sch=FCle Daniel <(E-Mail Removed)-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?

 
Reply With Quote
 
M. Edward (Ed) Borasky
Guest
Posts: n/a
 
      07-30-2006
N Okia wrote:
> On 7/29/06, Schüle Daniel <(E-Mail Removed)-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??



 
Reply With Quote
 
Hal Fulton
Guest
Posts: n/a
 
      07-30-2006
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

 
Reply With Quote
 
N Okia
Guest
Posts: n/a
 
      07-30-2006
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.

 
Reply With Quote
 
M. Edward (Ed) Borasky
Guest
Posts: n/a
 
      07-30-2006
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.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
Python 2.3.3 : Win32 build vs Cygwin build performance ? Nicolas Lehuen Python 3 01-28-2004 07:30 AM
WELCOME to cygwin@cygwin.com cygwin-help@cygwin.com Python 1 09-05-2003 07:46 AM
confirm unsubscribe from cygwin-announce@cygwin.com cygwin-announce-help@cygwin.com Python 0 09-05-2003 01:29 AM
confirm unsubscribe from cygwin@cygwin.com cygwin-help@cygwin.com Python 0 09-04-2003 06:34 PM



Advertisments