Professional Web Applications Themes

./configure problem - Ruby

uname -a Linux localhost.localdomain 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux ------------------------ from /var/log/boot.log OS Kernel: Linux version 2.4.18-14 (devel.redhat.com) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) ------------------------- I am running RedHat 9.0 on my laptop Pentium II And I have the following problem when I try to install ruby 1.8.1. /configure checking build system type... Invalid configuration `i686-pc-linux-oldld': machine `i686-pc-linux' not recognized configure: error: /bin/sh ./config.sub i686-pc-linux-oldld failed...

  1. #1

    Default ./configure problem

    uname -a
    Linux localhost.localdomain 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002
    i686 i686 i386 GNU/Linux
    ------------------------
    from /var/log/boot.log
    OS Kernel: Linux version 2.4.18-14
    (devel.redhat.com) (gcc version 3.2 20020903 (Red
    Hat Linux 8.0 3.2-7))
    -------------------------
    I am running RedHat 9.0 on my laptop Pentium II
    And I have the following problem when I try to install ruby 1.8.1.

    /configure
    checking build system type... Invalid configuration
    `i686-pc-linux-oldld': machine `i686-pc-linux' not recognized
    configure: error: /bin/sh ./config.sub i686-pc-linux-oldld failed




    William Guest

  2. #2

    Default Re: ./configure problem

    Hi,

    In message "./configure problem"
    on 04/01/28, William Sundberg <com> writes:

    |I am running RedHat 9.0 on my laptop Pentium II
    |And I have the following problem when I try to install ruby 1.8.1.
    |
    |./configure
    |checking build system type... Invalid configuration
    |`i686-pc-linux-oldld': machine `i686-pc-linux' not recognized
    |configure: error: /bin/sh ./config.sub i686-pc-linux-oldld failed

    Try this patch.

    matz.

    --- config.sub 10 Apr 2003 08:37:12 -0000 1.15
    +++ config.sub 27 Jan 2004 16:59:45 -0000
    -120,3 +120,3 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-
    case $maybe_os in
    - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    + nto-qnx* | linux-* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    os=-$maybe_os

    Yukihiro Guest

  3. #3

    Default Re: ./configure problem

    Thank you for your reply but how do you "try this patch"? Should I add
    this lines in config.sub if so where?

    Best regards/William

    On Tue, 2004-01-27 at 18:00, Yukihiro Matsumoto wrote: 




    William Guest

  4. #4

    Default Re: ./configure problem

    Am Wed, 28 Jan 2004 04:02:16 +0900
    schrieb William Sundberg <com>:
     

    usually you can patch a patch with

    patch < patch.file

    just make sure that the filenames in the patch file (e.g. config.sub) can be found

    benny
    benny Guest

  5. #5

    Default Re: ./configure problem

    Thank you again, now I feel even more stupid. I tried with this. Cut out
    the text from the first mail(the patch) and put it in a "file".
    -----------file: patch_m
    -120,3 +120,3 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-
    case $maybe_os in
    - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* |
    os2-emx* | rtmk-nova*)
    + nto-qnx* | linux-* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* |
    os2-emx* | rtmk-nova*)
    os=-$maybe_os
    -----------
    Then I tried the following without luck:
    [williamlocalhost ruby-1.8.1]$ config.sub < patch_m
    bash: config.sub: command not found
    [williamlocalhost ruby-1.8.1]$ patch_m < config.sub
    bash: patch_m: command not found
    [williamlocalhost ruby-1.8.1]$ chmod +x patch_m
    [williamlocalhost ruby-1.8.1]$ patch_m < config.sub
    bash: patch_m: command not found


    What am I missing?

    On Tue, 2004-01-27 at 20:19, benny wrote: 
    >
    > usually you can patch a patch with
    >
    > patch < patch.file
    >
    > just make sure that the filenames in the patch file (e.g. config.sub) can be found
    >
    > benny
    >
    >
    >[/ref]




    William Guest

  6. #6

    Default Re: ./configure problem

    Sorry my fault, "patch" is a script/pgm I shuld have looked in the old
    arcives.

    Thank you/William

    On Tue, 2004-01-27 at 20:43, William Sundberg wrote: 
    > >
    > > usually you can patch a patch with
    > >
    > > patch < patch.file
    > >
    > > just make sure that the filenames in the patch file (e.g. config.sub) can be found
    > >
    > > benny
    > >
    > >
    > >[/ref]
    >
    >
    >
    >
    >[/ref]




    William Guest

  7. #7

    Default Re: ./configure problem


    > >
    > > usually you can patch a patch with
    > >
    > > patch < patch.file
    > >
    > > just make sure that the filenames in the patch file (e.g. config.sub) can be found
    > >
    > > benny
    > >[/ref][/ref]

    ok, even more detailed:

    "patch" is the name of the program you use to change the files and "patch.file" was the name I took
    as placeholder for the file with the patch in it.

    so do the following:

    1. copy the text in a file and save it under the name "mypatch" in the directory where the
    file config.sub lies

    2. login in a shell and use the command 'cd' to go into that directory

    3. enter the command

    patch < mypatch

    in the shell

    4. read the man page:

    man patch

    5. feel happy :)

    cheers,

    benny
    benny Guest

  8. #8

    Default Re: ./configure problem

    org (Yukihiro Matsumoto) writes:
     

    I get exactly this error if the gcc packages are not installed - fresh
    minimal install (Fedora core/1), and ruby is the *first* thing I
    compile!

    You should be able to type from the prompt:

    1097>gcc
    gcc: no input files



    --
    Daniel Kelley - San Jose, CA For email, replace the first dot in the
    domain with an at.
    Daniel Guest

Similar Threads

  1. [PHP-DEV] Problem with configure.js
    By Sebastian in forum PHP Development
    Replies: 3
    Last Post: December 12th, 05:48 AM
  2. Problem running ./configure php-4.3.3
    By Antonio in forum PHP Development
    Replies: 2
    Last Post: October 29th, 12:51 AM
  3. Replies: 1
    Last Post: October 13th, 11:07 PM
  4. Replies: 0
    Last Post: October 10th, 03:09 PM
  5. Replies: 0
    Last Post: October 9th, 05:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139