build error on cygwin

Discussion in 'Ruby' started by Schüle Daniel, Jul 29, 2006.

  1. 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
     
    Schüle Daniel, Jul 29, 2006
    #1
    1. Advertising

  2. 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, Jul 29, 2006
    #2
    1. Advertising

  3. 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.
    >
     
    M. Edward (Ed) Borasky, Jul 29, 2006
    #3
  4. 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
     
    Schüle Daniel, Jul 29, 2006
    #4
  5. Schüle Daniel

    Guest

    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
     
    , Jul 30, 2006
    #5
  6. Schüle Daniel

    N Okia Guest

    On 7/29/06, Sch=FCle Daniel <-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?
     
    N Okia, Jul 30, 2006
    #6
  7. N Okia wrote:
    > On 7/29/06, Schüle Daniel <-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??
     
    M. Edward (Ed) Borasky, Jul 30, 2006
    #7
  8. Schüle Daniel

    Hal Fulton Guest

    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
     
    Hal Fulton, Jul 30, 2006
    #8
  9. Schüle Daniel

    N Okia Guest

    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.
     
    N Okia, Jul 30, 2006
    #9
  10. 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. :)
     
    M. Edward (Ed) Borasky, Jul 30, 2006
    #10
  11. [...]

    > 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
     
    Schüle Daniel, Jul 30, 2006
    #11
  12. Schüle Daniel 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??

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

    The fix was posted. What was happening on my system was that I installed
    the One-Click Installer. It sets a Windows-level environment variable
    RUBYOPT. The CygWin command line inherits this setting from Windows. And
    that setting confuses irb.

    So you have to unset RUBYOPT in the CygWin command line, and then
    install or reinstall rubygems. Then irb works.
     
    M. Edward (Ed) Borasky, Jul 30, 2006
    #12
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    459
  2. Replies:
    0
    Views:
    434
  3. WELCOME to

    , Sep 3, 2003, in forum: Python
    Replies:
    1
    Views:
    514
    Robin Becker
    Sep 5, 2003
  4. Replies:
    0
    Views:
    416
  5. Nicolas Lehuen
    Replies:
    3
    Views:
    721
    Nicolas Lehuen
    Jan 28, 2004
Loading...

Share This Page