LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-21-2011, 05:20 PM   #1
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
"No such file or directory" when file exists


I'm having a rather strange problem - I'm trying to run an executable which is viewable using 'ls -l', and whose assembled code can be seen in programmes such as vi, but when I run it it says "zsh: no such file or directory". Here is a transcript of the commands:

Code:
[joshua:/usr/bin]$ ls -l gst-launch
-rwxr-xr-x 1 root root 9224 2008-11-22 16:13 gst-launch

[joshua:/usr/bin]$ file gst-launch
gst-launch: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped

[joshua:/usr/bin]$ ./gst-launch
zsh: no such file or directory: ./gst-launch

[joshua:/usr/bin]$ /usr/bin/gst-launch
zsh: no such file or directory: /usr/bin/gst-launch

[joshua:/usr/bin]$ sudo su
Password:
[root@joshua-desktop:/usr/bin]# /usr/bin/gst-launch
zsh: no such file or directory: /usr/bin/gst-launch
There's been a couple of similar questions on LQ, but only one which seemed to have a vaguely helpful answer was this one. I too am running 64-bit Slackware, so it may well be a similar problem. The poster installs "ld-linux.so.2", which I don't have on my system (I have "ld-linux-x86-64.so.2" installed, though)... However, he gets it from a package using apt, and the source package which contains ld-linux.so.2 seems to be glibc.

So, I guess my questions are as follows:
  • Is ld-linux-x86-64.so.2 in any sense equivalent to ld-linux.so.2?
  • Have other people seen this problem, and do they believe installing ld-linux.so.2 will solve the problem?
  • If so, is installing glibc the right way of going about it?

As always, deepest thanks for any help
 
Old 05-21-2011, 05:37 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You are trying to run a 32-bit executable in a 64 bit system. Do do so you have to install the 32 bit libraries, in short, you have to make your system multilib. The description how do to that can be found on AlienBob's website.
 
1 members found this post helpful.
Old 05-21-2011, 05:48 PM   #3
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632

Original Poster
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Thank you, I will do but pkgtool says I have "gstreamer-0.10.29-x86_64-1" - does this mean that my gstreamer install is screwed, and I should re-install?
 
Old 05-21-2011, 06:14 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Seems so.
 
1 members found this post helpful.
Old 05-22-2011, 10:20 AM   #5
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632

Original Poster
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Thank you for your help - I haven't yet got round to setting up multilib, but I will do at some point in the future. I have, however, recompiled gstreamer and it now seems to be working correctly so thread is considered solved
 
  


Reply



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
[SOLVED] "start: Unknown job" but file exists mahmoodn Ubuntu 4 05-12-2011 10:00 AM
[SOLVED] Errors executing shell script: "command not found" and "no such file or directory" eko000 Linux - Newbie 1 01-14-2011 07:54 AM
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
[SOLVED] iostream.h exists, yet facing "iostream.h: No such file or directory" mq15 Linux - Software 13 01-02-2010 09:13 AM

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

All times are GMT -5. The time now is 04:25 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
Open Source Consulting | Domain Registration