Simple Bash question again

Simple Bash question again

Post by Jason Bon » Mon, 15 Nov 1999 04:00:00



Ok...for some reason things are still mysterious.  I'm trying
to execute the simple bash script:

#!/bin/bash
echo asd

contained in the file: test
The permissions are set correctly:

[jbond ~/testdir (0 M)] ls -l test
-rwxr--r--   1 jbond    users          21 Nov 14 17:22 test
[jbond ~/testdir (0 M)]

and bash IS in the /bin directory....

[jbond ~/testdir (0 M)] ls -l /bin/bash
-rwxr-xr-x   1 root     root       353944 Oct 12  1998 /bin/bash
[jbond ~/testdir (0 M)]

but for some reason when I execute the program I get:

[jbond ~/testdir (0 M)] ./test
./test: ./test: No such file or directory
[jbond ~/testdir (0 M)]

Still confused.  Thanks again,

  Jason

 
 
 

Simple Bash question again

Post by Jason Bon » Mon, 15 Nov 1999 04:00:00



> Ok...for some reason things are still mysterious.  I'm trying
> to execute the simple bash script:

> #!/bin/bash
> echo asd

> contained in the file: test
> The permissions are set correctly:

> [jbond ~/testdir (0 M)] ls -l test
> -rwxr--r--   1 jbond    users          21 Nov 14 17:22 test
> [jbond ~/testdir (0 M)]

> and bash IS in the /bin directory....

> [jbond ~/testdir (0 M)] ls -l /bin/bash
> -rwxr-xr-x   1 root     root       353944 Oct 12  1998 /bin/bash
> [jbond ~/testdir (0 M)]

> but for some reason when I execute the program I get:

> [jbond ~/testdir (0 M)] ./test
> ./test: ./test: No such file or directory
> [jbond ~/testdir (0 M)]

> Still confused.  Thanks again,

>   Jason

I think perhaps it might be that I'm using an older bash version as
someone
suggested.  I recently upgraded glibc to glibc-2.1.1-6 from the one
that came with red hat 5.2...could this
be the problem?...again..sorry for my newbie questions.  Thanks,

  Jason

 
 
 

Simple Bash question again

Post by Jason Bon » Mon, 15 Nov 1999 04:00:00




> > I think perhaps it might be that I'm using an older bash version as someone
> > suggested.  I recently upgraded glibc to glibc-2.1.1-6 from the one
> > that came with red hat 5.2...could this
> > be the problem?

> Is your /bin/bash dynamically linked to libraries that you have *not*
> upgraded from glibc-2.0 versions to glibc-2.1 versions?  Run "ldd
> /bin/bash" to get a list.  Possible culprits are libncurses and
> libreadline (and maybe libhistory, which is libreadline's sibling).

> --


I get:

[jbond ~ (0 M)] ldd /bin/bash
        /lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x40014000)
        libtermcap.so.2 => /lib/libtermcap.so.2 (0x40020000)
        libc.so.6 => /lib/libc.so.6 (0x40024000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[jbond ~ (0 M)]

  Jason

 
 
 

Simple Bash question again

Post by Paul Kimo » Tue, 16 Nov 1999 04:00:00



> I think perhaps it might be that I'm using an older bash version as someone
> suggested.  I recently upgraded glibc to glibc-2.1.1-6 from the one
> that came with red hat 5.2...could this
> be the problem?

Is your /bin/bash dynamically linked to libraries that you have *not*
upgraded from glibc-2.0 versions to glibc-2.1 versions?  Run "ldd
/bin/bash" to get a list.  Possible culprits are libncurses and
libreadline (and maybe libhistory, which is libreadline's sibling).

--

 
 
 

Simple Bash question again

Post by Thomas Zaj » Tue, 16 Nov 1999 04:00:00




> I think perhaps it might be that I'm using an older bash version as
> someone suggested.  I recently upgraded glibc to glibc-2.1.1-6 from
> the one that came with red hat 5.2...could this be the problem?

Indeed. What does 'ldd /bin/bash' say, are there any "not found"
errors?

Thomas
--
=-------------------------------------------------------------------------=
- Thomas Zajic  <thomasDOTzajicATtelewebDOTat>  Linux-2.0.38/slrn-0.9.5.7 -
-  "It is not easy to cut through a human head with a hacksaw."  (M. C.)  -
=-------------------------------------------------------------------------=

 
 
 

Simple Bash question again

Post by Paul Kimo » Tue, 16 Nov 1999 04:00:00




>>>    I recently upgraded glibc to glibc-2.1.1-6 from the one
>>> that came with red hat 5.2
> [jbond ~ (0 M)] ldd /bin/bash
>        /lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x40014000)
>        libtermcap.so.2 => /lib/libtermcap.so.2 (0x40020000)
>        libc.so.6 => /lib/libc.so.6 (0x40024000)
>        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Is it possible to upgrade libtermcap?

--

 
 
 

1. BASH BASH BASH BASH BASH BASH BASH BASH BASH BASH

Is there a proper fixed bash on any of the FTP sites out there?

I know there bash is on the usual sites but I don't know if they are
bugged or not :(

Regards,

Neil.

--


------------------------------------| Edinburgh, EH14 2DE, United Kingdom
**Domino: There`s nothing you can do when you`re the next in line: Domino**

2. Help to change the Esc-Esc pattern matching functionality

3. simple bash alias expansion question

4. IOMEGA ZIP

5. simple bash question

6. new windowing system

7. Bash: a simple question

8. Error in making the kernel

9. 'simple' bash questions

10. Simple Bash Questions

11. simple bash question about ′`" (and such)

12. simple Bash question: environment read from script?

13. Simple bash login vs. interactive shell question.