LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 06-18-2015, 11:35 AM   #1
SpacePlod
Member
 
Registered: Jan 2014
Distribution: Slackware
Posts: 116

Rep: Reputation: Disabled
executable: No such file or directory


I have a Raspberry Pi 2 that I installed Slackware Current to from here: http://rpi.fatdog.eu/

I'm trying to set it up for my son to learn python with, and one of the resources is Minecraft-pi.

When I try to run it I get this:

Code:
@SlackPi:~/Sources/mcpi# ls
CONTROLS.txt    LICENSE.txt  api/   minecraft-pi*
HOW_TO_RUN.txt  VERSION.txt  data/

@SlackPi:~/Sources/mcpi# ./minecraft-pi 
bash: ./minecraft-pi: No such file or directory

@SlackPi:~/Sources/mcpi# ls -l minecraft-pi 
-rwxr-xr-x 1 504 games 1206760 Feb 11  2013 minecraft-pi*

@SlackPi:~/Sources/mcpi# file minecraft-pi 
minecraft-pi: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=ec7c5a7f459230e837d8551aab60b290e9599e63, stripped

@SlackPi:~/Sources/mcpi# ldd minecraft-pi 
	libGLESv2.so => /opt/vc/lib/libGLESv2.so (0x76f2c000)
	libEGL.so => /opt/vc/lib/libEGL.so (0x76efa000)
	libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x76ee0000)
	libpng12.so.0 => /usr/lib/libpng12.so.0 (0x76eb9000)
	libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x76e31000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x76d5e000)
	libm.so.6 => /lib/libm.so.6 (0x76cb6000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x76c8f000)
	libc.so.6 => /lib/libc.so.6 (0x76b35000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x76b13000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x769fb000)
	libvcos.so => /opt/vc/lib/libvcos.so (0x769e9000)
	libdl.so.2 => /lib/libdl.so.2 (0x769de000)
	librt.so.1 => /lib/librt.so.1 (0x769cf000)
	libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0x769c1000)
	libz.so.1 => /lib/libz.so.1 (0x769a2000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x76993000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x7697e000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x7696e000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x76950000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x76946000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x7693a000)
	/lib/ld-linux-armhf.so.3 => /lib/ld-linux.so.3 (0x76f6d000)
At first, I would get the same error, but ldd would show that libpng12 was missing. So I rebuild libpng with the original slackbuild for versions 12 and 16. Once installed, the correct libpng is found, but I still can't figure out why "file not found" comes up. Any ideas?

Oh, and I also had to add /opt/vc/lib to ld.so.conf for both minecraft-pi (there were other 'missing' libs) and for the picamera
package (libmmal.so). Does anyone know where /opt/vc/ comes from?

EDIT: I'm wondering if "interpreter /lib/ld-linux-armhf.so.3" from the file output has anything to do with it, or is that just a build time artifact. I have no "/lib/ld-linux-armhf.so.3" on this system.

Last edited by SpacePlod; 06-18-2015 at 11:37 AM.
 
Old 06-18-2015, 12:03 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
Try running the executable through strace. That should tell you which file it's looking for.
 
Old 06-18-2015, 12:34 PM   #3
SpacePlod
Member
 
Registered: Jan 2014
Distribution: Slackware
Posts: 116

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Try running the executable through strace. That should tell you which file it's looking for.
Thanks. I already tried that earlier and the output gave no additional information. I should have included that in my original post.

Code:
@SlackPi:~/Sources/mcpi# strace ./minecraft-pi 
execve("./minecraft-pi", ["./minecraft-pi"], [/* 32 vars */]) = -1 ENOENT (No such file or directory)
write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
exit_group(1)                           = ?
+++ exited with 1 +++

@SlackPi:~/Sources/mcpi# strace -e open ./minecraft-pi 
strace: exec: No such file or directory
+++ exited with 1 +++
From a bit of research:
Code:
ENOENT A component of path or file does not name an existing file or path or file is an empty string.
 
Old 06-18-2015, 12:44 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
Can you execute other files in this directory?
 
Old 06-18-2015, 12:52 PM   #5
SpacePlod
Member
 
Registered: Jan 2014
Distribution: Slackware
Posts: 116

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Can you execute other files in this directory?
Yes. There are no other files there, but if I copy some in or make a test script and chmod it, then it will execute just fine.

Every thing I'm reading about regarding this shows it's usually an architecture problem (running 32 bit bins in a 64 bit env, etc). I cant figure this one out, though.
 
Old 06-18-2015, 03:22 PM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,647

Rep: Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358
Quote:
Originally Posted by SpacePlod View Post
@SlackPi:~/Sources/mcpi# file minecraft-pi
minecraft-pi: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=ec7c5a7f459230e837d8551aab60b290e9599e63, stripped
This is compiled for a hard float distribution. Slackware ARM is soft float so it won't work. You will need to recompile minecraft.
 
1 members found this post helpful.
Old 06-18-2015, 03:35 PM   #7
SpacePlod
Member
 
Registered: Jan 2014
Distribution: Slackware
Posts: 116

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drmozes View Post
This is compiled for a hard float distribution. Slackware ARM is soft float so it won't work. You will need to recompile minecraft.
Ah, got it. I'll have to see if I can find the source code somewhere - I'm guessing not.

I was hoping to avoid being forced into Raspian.

Thanks!
 
  


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
[SOLVED] executable file error: "No such file of directory" when file does exist dalgrim Slackware 8 11-03-2014 11:28 AM
[SOLVED] Change Executable Directory Colour NotAComputerGuy Linux - Newbie 2 08-12-2013 02:57 AM
making script executable; getting no such file or directory madwida Slackware 4 10-08-2008 09:19 AM
Store into a file the list of executable files of a system directory jianelisj Linux - Newbie 3 03-17-2008 12:26 PM
Pre-Build Executable "No Such File or Directory" problem Archeress Linux - General 2 08-17-2002 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 10:19 PM.

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