Sponsored Content
Top Forums Shell Programming and Scripting /bin/sh: bad interpreter: Permission denied Post 35777 by Calum on Sunday 4th of May 2003 05:38:22 PM
Old 05-04-2003
/bin/sh: bad interpreter: Permission denied

today i started the LFS book (version 4.0).
Basically i am using slackware 9.0 to try and install a new linux completely from source on another partition.

Now i took the book's recommendations and created a user called lfs so i wouldn't have to do the stuff as root, and i have got the new LFS partition mounted at /mnt/lfs
the first thing we do is to compile a static version of bash to put in our new linux partition, because we want a statically compiled working set of utilities with which to build the new system when we chroot into the new location (at /mnt/lfs, or /dev/hda6 to its mates).
Now the thing is, well you can see what the thing is here:

Code:
lfs@boxotrix:/mnt/lfs/static/sources/bash-2.05a$ ./configure --enable-static-link 
--prefix=/mnt/lfs/static --with-curses && make && make install

-su: ./configure: /bin/sh: bad interpreter: Permission denied

lfs@boxotrix:/mnt/lfs/static/sources/bash-2.05a$ su
Password:

root@boxotrix:/mnt/lfs/static/sources/bash-2.05a# ./configure --enable-static-link 
--prefix=/mnt/lfs/static --with-curses && make && make install

bash: ./configure: /bin/sh: bad interpreter: Permission denied

root@boxotrix:/mnt/lfs/static/sources/bash-2.05a# exit

lfs@boxotrix:/mnt/lfs/static/sources/bash-2.05a$ ls -al /bin/sh

lrwxrwxrwx    1 root     root            4 Apr 20 18:44 /bin/sh -> bash*

lfs@boxotrix:/mnt/lfs/static/sources/bash-2.05a$ ls -al /bin/bash

-rwxr-xr-x    1 root     bin        628664 Sep 22  2002 /bin/bash*

the first attempt is as user "lfs" but then i su to root and get the same error! any idea what the issue is? i am stumped.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

#!/usr/bin/ksh Command Interpreter in a sh script

Hi, I have a developer that is trying to start a script with sh "scriptname". In the script, he is specifying #!/usr/bin/ksh as the command interpreter. For some reason sh is ignoring the #!/usr/bin/ksh. We are running Solaris 8. Does anyone have any ideas what could be causing this? Here... (3 Replies)
Discussion started by: ckeith79
3 Replies

2. UNIX for Dummies Questions & Answers

bad interpreter: Permission denied

I am writing an expect script but am getting a bad interpreter: permission denied error. I don't think the error has anything to do with expect itself, I think I am missing something in how I start the file. For instance, when I run the file under the expect directory it works: cd... (7 Replies)
Discussion started by: earnstaf
7 Replies

3. Ubuntu

How to resolve bad interpreter error

Hi, Iam trying to run a gmake command and have the latest version of Gnu in my redhat linux system. I need to execute the following steps; ---> chmod +x utils/* ---> ./utils/AllCodeManagerFix ---> gmake LINUX Iam able to do the chmod command but when I run the second command I get... (2 Replies)
Discussion started by: viji19812001
2 Replies

4. Shell Programming and Scripting

Perl - bad interpreter: No such file or directory

Here is a puzzler. To start, let me say that I've done a search on this issue and it is definitely not related to line endings being encoded in windows returns. I get this error when I run SOME perl scripts. I have a script called hello_world.pl. I do $cp hello_world.pl new_hello_world.pl... (0 Replies)
Discussion started by: mjmtaiwan
0 Replies

5. Shell Programming and Scripting

Executing expect script giving message as bad interpreter: Permission denied

Hi Gurus, I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as #!/usr/bin/expect-5.43 -f spawn telnet localhost 2233 expect "password:" send "secret\r" send "i data.cnbc.com\r" send "exit\r" expect eof When I am trying to execute... (2 Replies)
Discussion started by: niks_yv
2 Replies

6. Shell Programming and Scripting

bad interpreter: Permission denied

Hi I am running a script: #!bin/bash set -x echo"select * from celldatamap;" || sqlcsv -v -h -s ',' -d MTNSA11G -u datasafe -p datasafe > andrea.csv When I run my script ./tablescript.sh I get the following error: $ ./tablescript.sh (3 Replies)
Discussion started by: ladyAnne
3 Replies

7. Shell Programming and Scripting

bad interpreter when running script

Hi All, I'm not confortable in writing script, can someone can help me, when I run that script below i found this error code : -bash: ./script.sh: /bin/sh.: bad interpreter: Here is the script for i in * x=${i##*.} z=$(perl -e 'print time;') t=$(echo $z-$x|bc)... (12 Replies)
Discussion started by: bzb23
12 Replies

8. Shell Programming and Scripting

Bad Interpreter

Hi. My name is Caleb (a.k.a RagingNinja) form the whited00r forums. (Whited00r makes custom firmware for iOS devices). I have been learning and creating simple shells scripts. I have been recently using VIM for Windows or using VirtualBox to run the UBUNTU OS within VirtualBox to create my shell... (2 Replies)
Discussion started by: RagingNinja
2 Replies

9. UNIX for Advanced & Expert Users

Sqlite3: /lib/ld-Linux.so.2: bad ELF interpreter:

Hi all I'm hoping this is just me being a muppet, has anyone come across this problem before? I am writing an application that uses sqlite3 and I have created a database using it - sqlite3 muse.db SQLite version 3.6.20 Enter ".help" for instructions Enter SQL statements terminated with... (2 Replies)
Discussion started by: steadyonabix
2 Replies

10. Shell Programming and Scripting

-bash: ./p4: /bin/ksh^M: bad interpreter: No such file or directory

I keep getting this error and I am not sure why. -bash: ./p4: /bin/ksh^M: bad interpreter: No such file or directory First I run my makefile and this works fine: goodmain: main.o gcc -o goodmain main.o main.o: main.c gcc -c main.c Then I want to limit my output so I... (11 Replies)
Discussion started by: cokedude
11 Replies
DASDLIST(1)						      General Commands Manual						       DASDLIST(1)

NAME
dasdlist SYNOPSIS
dasdinit [-v] [-z] [-bz2] [-0] [-lfs] [-a] [-r] [-linux] filename devtype[-model] [volser] [size] This manual page documents the dasdinit program. dasdlist builds an empty dasd image file PARAMETERS
filename name of dasd image file to be created devtype emulated device type model emulated device model (optional) volser volume serial number (1-6 characters) (only if '-r' option not used) size number of cylinders (for CKD devices) or 512-byte sectors (for FBA devices) (optional if device specified) OPTIONS
-v display version info and help -z build compressed dasd image file using zlib -bz2 build compressed dasd image file using bzip2 -0 build compressed dasd image file with no compression -lfs build a large (uncompressed) dasd file (if supported) -a build dasd image file that includes alternate cylinders (option ignored if size is manually specified) -r build 'raw' dasd image file (no VOL1 or IPL track) -linux null track images will look like linux dasdfmt'ed images (3390 device type only) SEE ALSO
/usr/share/doc/hercules/html/hercload.html AUTHOR
Hercules was created by Roger Bowler and is maintained by Jay Maynard. Jan Jaeger designed and implemented many of the advanced features of Hercules, including dynamic reconfiguration, integrated console, interpretive execution, and z/Architecture support. This manual page was written by Peter De Schrijver p2@debian.org for the Debian GNU/Linux system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GPL. DASDLIST(1)
All times are GMT -4. The time now is 05:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy