Configuration: error: cannot start / bin / sh

I am trying to create the GNU program chain for OpenRISC by following the guide given at http://openrisc.net/toolchain-build.html in the Fedora virtual box.

I get an error

Configure: error: cannot run /bin/sh ../gcc-svn/config.sub

when i try to configure gcc.

I am new to Linux. I could not find any solution on the Internet. Any help to solve the problem is much appreciated.

+4
source share
3 answers

1.check and install libtools

yum install libtool       
yum install libtool-ltdl    
yum install libtool-ltdl-devel       

2. run the run "../gcc-svn/config.sub" through the shell

/bin/bash ../gcc-svn/config.sub

see if the following is displayed:

[root @centos jemalloc] #/bin/ bash./config.sub
: not foundine 6:
: not foundine 8:
: not foundine 30:
: not foundine 31:
: command not foundine 39:
: command not foundine 42:
: not foundine 50:
: not foundine 57:
: not foundine 59:
: not foundine 72:
: not foundine 82:
: command not foundine 85:
'/config.bub: 88:
'/config.bub: 88: `case $1 in

3. config.sub

 find / -name config.sub

:

/usr/share/libtool/config/config.sub

config.sub, , .

4.replace config.sub

mv ../gcc-svn/config.sub ../gcc-svn/config.sub.bak
cp /usr/share/libtool/config/config.sub ../gcc-svn/config.sub 

mv ../gcc-svn/config.guess ../gcc-svn/config.guess.bak
cp /usr/share/libtool/config/config.guess ../gcc-svn/config.guess
  1. , , .
+2

config.sub , , \r\n \n. , , :

dos2unix *

\r\n \n, , . :

./configure ( )

cygwin Windows, GitHub \r\n, dos2unix.

+2

.. /gcc -svn/config.sub? , .

#!/bin/sh

/bin/sh

#!/bin/sh

Make sure the / bin / sh file exists and is executable

ls -l /bin/sh

Gotta show something like

-rwxrwxrwx 1 root root 4 Feb  3  2009 /bin/sh
+1
source

Source: https://habr.com/ru/post/1544194/


All Articles