./configure problem

W

William Sundberg

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
([email protected]) (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
 
Y

Yukihiro Matsumoto

Hi,

In message "./configure problem"

|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
 
W

William Sundberg

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
 
B

benny

Am Wed, 28 Jan 2004 04:02:16 +0900
schrieb William Sundberg said:
Thank you for your reply but how do you "try this patch"? Should I add
this lines in config.sub if so where?

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
 
W

William Sundberg

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:
[william@localhost ruby-1.8.1]$ config.sub < patch_m
bash: config.sub: command not found
[william@localhost ruby-1.8.1]$ patch_m < config.sub
bash: patch_m: command not found
[william@localhost ruby-1.8.1]$ chmod +x patch_m
[william@localhost ruby-1.8.1]$ patch_m < config.sub
bash: patch_m: command not found


What am I missing?
 
W

William Sundberg

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

Thank you/William

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:
[william@localhost ruby-1.8.1]$ config.sub < patch_m
bash: config.sub: command not found
[william@localhost ruby-1.8.1]$ patch_m < config.sub
bash: patch_m: command not found
[william@localhost ruby-1.8.1]$ chmod +x patch_m
[william@localhost ruby-1.8.1]$ patch_m < config.sub
bash: patch_m: command not found


What am I missing?

Am Wed, 28 Jan 2004 04:02:16 +0900


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
 
B

benny

What am I missing?

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
 
D

Daniel Kelley

Hi,

In message "./configure problem"

|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

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top