LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   curious: bash: not found (although its there and executable) - maybe 64bit related? (https://www.linuxquestions.org/questions/linux-software-2/curious-bash-not-found-although-its-there-and-executable-maybe-64bit-related-899190/)

Handtuch 08-24-2011 10:00 AM

curious: bash: not found (although its there and executable) - maybe 64bit related?
 
Hey!

i today tried to install Mozilla Thunderbird 6 but it didn't run. I thought ok it might be related to thunderbird. Now i have to face the same problem (same error message) with a game called AtomZombieSmasher. For both programs you are supposed to run bash starter script.

I figured out these scripts fail when trying to start the binaries!
It's not related to rights.
Code:

freddy@freddys:/opt$ sudo /opt/thunderbird/thunderbird
exec: 392: /opt/thunderbird/thunderbird-bin: not found

would there be the message "not found" if it is the wrong architecture or something?
i tried a bit with the game but i find it very curious:
Code:

freddy@freddys:/tmp/atomzombiesmasher/data$ ll
insgesamt 19700
drwxrwxrwx 3 freddy freddy    4096 2011-08-24 16:13 ./
drwxrwxrwx 3 freddy freddy    4096 2011-08-24 15:53 ../
-rwxrwxrwx 1 freddy freddy  10752 2010-04-22 23:04 Accessibility.dll*
-rwxrwxrwx 1 freddy freddy  14848 2011-02-11 20:13 atigktxx.dll*
-rwxrwxrwx 1 freddy freddy    239 2011-01-25 21:04 atomzombiesmasher*
drwxrwxrwx 9 freddy freddy    4096 2011-01-23 07:59 content/
-rwxrwxrwx 1 freddy freddy 1335560 2010-05-21 12:39 libc-2.11.1.so*
-rwxrwxrwx 1 freddy freddy    143 2011-01-25 05:50 libc-2.11.1.so.config*
-rwxrwxrwx 1 freddy freddy  40459 2009-05-29 18:35 libcsfml-audio.so*
-rwxrwxrwx 1 freddy freddy  84265 2009-05-29 18:35 libcsfml-graphics.so*
-rwxrwxrwx 1 freddy freddy  11271 2009-05-29 18:35 libcsfml-system.so*
-rwxrwxrwx 1 freddy freddy  19255 2009-05-29 18:35 libcsfml-window.so*
-rwxrwxrwx 1 freddy freddy  821768 2010-05-09 12:28 libglib-2.0.so.0.2400.1*
-rwxrwxrwx 1 freddy freddy  248080 2010-05-13 22:13 libopenal.so.1*
-rwxrwxrwx 1 freddy freddy  137614 2009-05-29 18:34 libsfml-audio.so.1.5*
-rwxrwxrwx 1 freddy freddy 1219595 2009-05-29 18:34 libsfml-graphics.so.1.5*
-rwxrwxrwx 1 freddy freddy  41132 2009-05-29 18:34 libsfml-system.so.1.5*
-rwxrwxrwx 1 freddy freddy  88309 2009-05-29 18:34 libsfml-window.so.1.5*
-rwxrwxrwx 1 freddy freddy  403988 2010-01-05 02:06 libsndfile.so.1*
-rwxrwxrwx 1 freddy freddy 2629092 2010-09-14 21:44 mono*
-rwxrwxrwx 1 freddy freddy      33 2011-08-24 16:13 mono.aaatest*
-rwxrwxrwx 1 freddy freddy  183808 2010-04-22 18:38 Mono.Posix.dll*
-rwxrwxrwx 1 freddy freddy  291840 2010-04-22 18:38 Mono.Security.dll*
-rwxrwxrwx 1 freddy freddy 2589696 2010-04-22 23:17 mscorlib.dll*
-rwxrwxrwx 1 freddy freddy  790528 2011-07-18 00:56 release.exe*
-rwxrwxrwx 1 freddy freddy  18944 2010-06-07 07:36 sfmlnet-audio.dll*
-rwxrwxrwx 1 freddy freddy  32768 2010-06-07 07:36 sfmlnet-graphics.dll*
-rwxrwxrwx 1 freddy freddy  18944 2010-06-07 07:36 sfmlnet-window.dll*
-rwxrwxrwx 1 freddy freddy  124416 2010-04-22 18:38 System.Configuration.dll*
-rwxrwxrwx 1 freddy freddy 1650688 2010-04-22 18:38 System.dll*
-rwxrwxrwx 1 freddy freddy  448000 2010-04-22 18:38 System.Drawing.dll*
-rwxrwxrwx 1 freddy freddy 3053568 2010-04-22 23:05 System.Windows.Forms.dll*
-rwxrwxrwx 1 freddy freddy 1264128 2010-04-22 18:38 System.Xml.dll*
-rwxrwxrwx 1 freddy freddy 2441216 2010-05-06 19:10 Tao.OpenGl.dll*
-rwxrwxrwx 1 freddy freddy    139 2011-01-26 02:49 Tao.OpenGl.dll.config*
-rwxrwxrwx 1 freddy freddy  10240 2010-12-11 00:10 Tao.OpenGl.ExtensionLoader.dll*
-rwxrwxrwx 1 freddy freddy    139 2011-01-26 02:49 Tao.OpenGl.ExtensionLoader.dll.config*
-rwxrwxrwx 1 freddy freddy  43008 2010-12-11 00:10 Tao.OpenGl.Glu.dll*
-rwxrwxrwx 1 freddy freddy    139 2011-01-26 02:49 Tao.OpenGl.Glu.dll.config*
freddy@freddys:/tmp/atomzombiesmasher/data$ ./mono
bash: ./mono: Datei oder Verzeichnis nicht gefunden
freddy@freddys:/tmp/atomzombiesmasher/data$ ./mono.aaatest
this is my test
freddy@freddys:/tmp/atomzombiesmasher/data$

is this a bug of bash?
or wrong architecture?

Kind regards,
Handtuch

---
System:
Ubuntu 11.04 (natty) - 64bit
Kernel Linux 2.6.38-11-generic
GNOME 2.32.1

it's an amd64-desktop-version (i hope thats the right for my system! haha omg. read in debian faq their amd64 is the right for x86_64 (Intel i7). thought this must also be right for ubuntu as it is a child of debian! However debian installation process left my behind with kernel panic for both architectures amd64 and i386... so i installed ubuntu again)

rbees 08-24-2011 10:21 AM

I run Debian so...

Most of my apps are in /usr/bin or /bin or /usr/sbin not /opt

Try changing to your home folder and running the apps with just a call to the app



$ sudo thunderbird



but you should not even need to use sudo


$ thunderbird


should work

weibullguy 08-24-2011 10:24 AM

exec: 392: /opt/thunderbird/thunderbird-bin: not found means the script /opt/thunderbird/thunderbird can't find the file /opt/thunderbird/thunderbird-bin. This error occurs at line 392 in the script. It's not a ABI problem or a bash bug. Does the file /opt/thunderbird/thunderbird-bin exist? Also, why do you want to execute thunderbird with sudo?

As far as the other application, I don't know because I don't understand this "Datei oder Verzeichnis nicht gefunden"

Handtuch 08-24-2011 02:24 PM

Hi!

i used sudo to proof it doesn't depend on the rights. and there was a how-to telling me to run thunderbird as root for the first startup.

i tried same in /usr/bin/thunderbird-6.0/ made a symbolic link /usr/bin/thunderbird (in order to only type thunderbird in console) but the effect is the same. the bash is executed. but when it comes to the binary it fails
Code:

freddy@freddys:~$ thunderbird
exec: 392: /usr/bin/thunderbird-6.0/thunderbird-bin: not found

The binary thunderbird-bin is at exactly the place and everyone has the right to execute it (didn't change anything). i just don't understand why it says "not found".

@weibullguy: Sorry! I did not recognize the output was German. "Datei oder Verzeichnis nicht gefunden" means "File or directory not found"

@rbees: i chose /opt because it's optional software and does not belong to the system. but it actually should not matter where it is. checkout: http://serverfault.com/questions/964...-in-var-or-opt

Kind regards,
Handtuch

weibullguy 08-24-2011 07:35 PM

Well, Googling a little bit I found this thread describing a similar problem with Google Earth. The solution for that problems was installing the lsb-core package. Might try that to see if it helps.

Handtuch 08-25-2011 06:02 AM

Thanks a lot! Now i have a running Thunderbird!

After installing lsb-core it did run the binary but it resulted in another error while loading the libraries.
Code:

libdbus-glib-1.so.2: wrong ELF class: ELFCLASS64
In the end i found out that the version i download was 32bit and there is a 64bit version. I didn't find any official link to it but now found a deep path:
ftp://releases.mozilla.org/pub/mozil.../linux-x86_64/

Thanks again

rbees 08-25-2011 06:32 AM

If you are running Ubuntu you should not need to download anything from a link on the web. It should be in your repo's.

Installing packages out of the repos will make sure that it is the correct version.

PeterKelly 05-03-2012 10:29 AM

Actually Ubuntu Software Centre (and apt-get) does not guarantee that you will get the latest version of the application


All times are GMT -5. The time now is 07:33 PM.