LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2011, 11:06 AM   #1
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Rep: Reputation: 10
Bash: No such file or directory, when file actually exists.


Hello,
I am having problems running some 32bit programs on 64bit Debian Squeeze system.

Problem occurs with several application, for example, thunderbird or skype. Running them as root, while I am pretty sure that path and filename is correct, produces only following error message:

bash: /path/file: No such file or directory

(Please be aware of that I tried this even drag&dropping file to shell)

Also, ldd utility renders program as "not a dynamic executable". File utility thinks about file as being executable (and it should be), here is it's output:

Code:
thunderbird-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
Thanks much for any help

Last edited by SkyerSK; 02-05-2011 at 12:14 PM.
 
Old 02-05-2011, 12:15 PM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by SkyerSK View Post
thunderbird or skype. Running them as root, while I am pretty sure that path and filename is correct,
Simply type thunderbird on the terminal, hit enter and post the EXACT output here.
 
Old 02-05-2011, 12:23 PM   #3
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thunderbird is not in $PATH, it is only copied to /opt/. I ran "./thunderbird-bin", and related "ldd thunderbird-bin" for verifying what libraries program depends on.

Last edited by SkyerSK; 02-05-2011 at 12:25 PM.
 
Old 02-05-2011, 01:03 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
Do you have 32-bit support via multilib ? Or are you using another method ?

Usually it says this if you cannot run 32-bit executables on a 64-bit system.
 
Old 02-05-2011, 01:17 PM   #5
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
No I don't use/know it. I am really new at using 64bit operating systems, there may be some main thing I am missing. What I was doing is only copying (installing) programs into their directories, and then obtaining 32bit libraries and copying them into /lib32/ directory. I used to check library dependencies with ldd, but it does not work at all.

If method I am trying to use is the problem itself, could you please point me to some information on how to do it properly? Thanks much and sorry for causing you all headaches. (I now realized I could post it into newbie section)

Last edited by SkyerSK; 02-05-2011 at 01:19 PM. Reason: corrections
 
Old 02-05-2011, 01:58 PM   #6
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 678

Rep: Reputation: 95
running them as root? Did you use full path?
 
Old 02-05-2011, 02:33 PM   #7
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks for your reply,
yes I am running it as root and using full path. (I eventually drag&drop program from nautilus to terminal, so path really should not be the problem)
 
Old 02-05-2011, 02:41 PM   #8
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 678

Rep: Reputation: 95
another possibility is that there's a unprintable character in the path (it might be your typing) so bash complains about it. Try it on other shell.
 
Old 02-05-2011, 03:05 PM   #9
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks for your suggestion,
tried it with tcsh. Results are maybe even more confusing, tcsh fails with "Command not found" (yes I always type ./ before executing program in working directory). I am used only to BASH, so I might do some general mistake there, but I think drag and drop technique is fool proof.

Printable characters, however, should not be problem, since it used to "work" some time ago. Bash always complained about some shared library not being present in system, but there was no problem for bash finding the right file. Ldd utility worked too, just in case You could use this information someway.
 
Old 02-05-2011, 03:07 PM   #10
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 678

Rep: Reputation: 95
wild guess, check permissions.
 
Old 02-05-2011, 03:22 PM   #11
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Chmod +x was one of the first things checked. Here is output of ls:

Code:
root@example:
/opt/thunderbird# ls -la |grep thunderbird
-rwxr-xr-x  1 root root     3947 Feb  5 19:06 thunderbird
-rwxr-xr-x  1 root root 14161368 Feb  5 19:06 thunderbird-bin
Seems to be correct...
 
Old 02-05-2011, 03:40 PM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
I don't know much about debian, but look for 32-bit support, you're gonna need some basic packages to be able to run 32-bit on 64-bit.
 
Old 02-06-2011, 02:17 AM   #13
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks,
I have ia32-libs and ia32-libs-gtk packages installed, but it looks like it's no use. Could anyone using 32bit applications on 64bit Debian post his output of ls /lib32/ please? I think I am probably missing some general knowledge.

In mean time I figured out what you meant with "multilib" - so if it's what I expect it to be, yes I am using it. Standard libraries are split into lib, lib64, and lib32, while lib64 dir is just symlink to lib.
 
Old 02-06-2011, 04:33 AM   #14
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Alright, thread is finally solved.
I am not exactly sure why apt did this to me, but for people who are interested in solution, I'll try to describe situation:

The thing I was missing is ld-linux.so.2, which is dynamic linker for libraries. I don't know exact reason of "not such a file or directory" being result of this file not being present, but my humble expection is that it refers to the linker. Ld-linux.so.2 is standard part of libc6-i386 deb package, which is part of ia32-libs package. So standardly, you only need to install ia32-libs, and maybe ia32-libs-gtk package.

My problem was little bit more into deep, and it was related to apt. I had ia32-libs package installed. Libc6-i386 package which has ld-linux.so.2 included was installed too, but it actually was not. Aptitude considered it as being installed, but it's files were not in the system. So the only thing I had to do was to remove libc6-i386 package, and reinstall it. Now executables can be found by BASH without problems, but I am still missing quite bunch of libs.

By the way, if you have right linker installed in right place, but libraries still can't be found, you could take a look at /etc/ld.so.conf.

Thanks to all who helped.

Last edited by SkyerSK; 02-06-2011 at 04:40 AM. Reason: corrections
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Exists but... "-bash: No such file or directory" zachet Linux - Newbie 24 03-20-2016 01:13 AM
cannot create directory even if file exists pratikvimal Linux - Newbie 7 06-15-2009 03:51 AM
Bash Help: Check if file exists richinsc Programming 6 01-09-2009 12:27 PM
no such file or directory exists when trying to execute a exe ryedawg Linux - Software 5 12-05-2005 05:42 AM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration