YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Issues w/ running .exe

Mon Jul 01, 2013 11:42 pm

I'm wondering why I haven't been able to run any .exes on my pi, even through LXTerminal. Lately, I've been trying to run minecraft-pi.exe, but LXTerminal won't recognise it. I have followed the site and the .txt's instructions, but neither work.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Issues w/ running .exe

Tue Jul 02, 2013 2:52 am

There's no such thing as an ".exe" in Linux.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Re: Issues w/ running .exe

Tue Jul 02, 2013 3:33 am

Sorry, I meant that I cant run executables

cdduvall
Posts: 9
Joined: Sun Jun 02, 2013 12:44 am

Re: Issues w/ running .exe

Tue Jul 02, 2013 5:02 am

The pi doesn't run off windows, therefore you can't run those types of files. Its a totally different operating system, so it has totally different application files. Your problem is similar to trying to run that same file on your android smartphone...it's just not going to work.

YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Re: Issues w/ running .exe

Tue Jul 02, 2013 5:12 am

The youtube tutorials and online instructions all say that it works through LXTerminal. They cd then use ./nameofexecutable on the next line, and it works. However, my pi sends a "no such file or directory" error.

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: Issues w/ running .exe

Tue Jul 02, 2013 5:47 am

The ./ before nameofexecutable means you need to be in the same directory as nameofexecutable when you type ./nameofexecutable. Or put it the other way round, nameofexecutable need to be in the same directory as where you type ./nameofexecutable. ./ means the current directory.
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Re: Issues w/ running .exe

Tue Jul 02, 2013 5:59 am

if you are saying that I need to change the directory (cd) over to where the file is located in order to run it, then I've already done that.

User avatar
rpdom
Posts: 15578
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Issues w/ running .exe

Tue Jul 02, 2013 6:38 am

What messages do you get (if any) when you try to run a program?

What permissions are set on the file? (use "ls -l minecruft-pi" to check.

YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Re: Issues w/ running .exe

Tue Jul 02, 2013 6:47 am

I tried it and it says:
-rwxr-xr-x 1 pi pi 1206760 Feb 11 2013 minecraft-pi

I have absolutely no idea what that means

User avatar
jackokring
Posts: 816
Joined: Tue Jul 31, 2012 8:27 am
Location: London, UK
Contact: ICQ

Re: Issues w/ running .exe

Tue Jul 02, 2013 6:53 am

Code: Select all

./minecraft-pi
Perhaps ... check spelling, and the meaning of "name" of "executable".

The x's in the beginning of the listing (ls) long (-l) express executable for user (first pi), group (an ownership set, second pi), and everyone else. Hence 3 x's.
Pi[NFA]=B256R0USB CL4SD8GB Raspbian Stock.
Pi[Work]=A+256 CL4SD8GB Raspbian Stock.
My favourite constant 1.65056745028

YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Re: Issues w/ running .exe

Tue Jul 02, 2013 7:08 am

I copied and pasted the ./minecraft-pi command directly from the HOW_TO_RUN.txt file included with the minecraft-pi package, so I know it should have worked. As for the 3 x's thing, I think I have an idea as to what you are saying.

User avatar
rpdom
Posts: 15578
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Issues w/ running .exe

Tue Jul 02, 2013 9:35 am

The -rwxr-xr-x bit is correct. That should work when you type ./minecraft-pi

What does it actually do when you type that in a terminal? Does it just go back to the $ prompt again, or give an error msg?

Another thing to try is: "file minecraft-pi". This will try to work out what sort of file it is and may give a clue why it isn't working.

YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Re: Issues w/ running .exe

Tue Jul 02, 2013 8:12 pm

LXTerminal throws the "No such file or directory" error every time I attempt to run ./minecraft-pi. As for the "file minecraft-pi" thing, here is what is displayed in my window:

minecraft-pi: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked(uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1] = 0x7f5a7cece38092451a55d83790ab639e59e9, stripped

I don't know what it all means

User avatar
rpdom
Posts: 15578
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Issues w/ running .exe

Tue Jul 02, 2013 8:50 pm

YourMajesty wrote:LXTerminal throws the "No such file or directory" error every time I attempt to run ./minecraft-pi.
Odd...
As for the "file minecraft-pi" thing, here is what is displayed in my window:

minecraft-pi: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked(uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1] = 0x7f5a7cece38092451a55d83790ab639e59e9, stripped

I don't know what it all means
The meaning of each bit is not too important. It shows that it is an ARM executable file, which is good. It does say that it "uses shared libs" and is "for Linux 2.6.26". I'm wondering if it is trying to find a library file that isn't on your Pi. You are probably running a later linux kernel than 2.6.26.

The message "No such file or directory" could mean that a file that the program needs isn't found, rather than the program itself.

I'm afraid I need to leave any more investigation until the morning, as I need sleep. I will look at it again then.

Could you post a link to where I can download that file from, so I might be able to try it myself when I wake up?

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Issues w/ running .exe

Tue Jul 02, 2013 8:52 pm

I've just downloaded and installed minecraft-pi onto my RPi which is running the 2013-05-25 version of wheezy-raspbian via the NOOBS installer.

All the file permissions, sizes and attributes appear to match what YourMajesty reports.

I don't get that error when I try to run it.

So, really back to basics questions -

Are you logged in as user pi ?

And not using elevated/root privileges with something like sudo?

You have a shell (command line) prompt that ends in mcpi $

And you are typing ./minecraft-pi

NOT ./minecraft-pi. ?

Because that last one DOES give this error -
pi@NOOBSv121pub ~/mcpi $ ./minecraft-pi.
-bash: ./minecraft-pi.: No such file or directory
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Re: Issues w/ running .exe

Tue Jul 02, 2013 9:04 pm

I had my suspicions that it maybe couldn't find something and that was causing the error. By the way, here is the site for minecraft-pi: http://pi.minecraft.net/

Just a forewarning to any/all who try minecraft-pi: using 2 USB ports while running minecraft-pi can cause your USB ports to crash

About what you said, DeeJay:
> yes, I am logged in as pi
> I have tried with sudo, and without- both fail
> I change directories (cd) so that I am in the mcpi folder
> I type ./minecraft-pi not ./minecraft-pi. I don't include the "." at the end

I will check my version of Raspbian and see if that might be the issue
Last edited by YourMajesty on Wed Jul 03, 2013 3:55 am, edited 1 time in total.

YourMajesty
Posts: 17
Joined: Mon Jul 01, 2013 11:27 pm

Re: Issues w/ running .exe

Wed Jul 03, 2013 12:47 am

Got it running! Turns out, my version of Raspian is one of the earlier ones. I got the newest and everything so far works perfectly. Thanks guys, for all your help!

Return to “Troubleshooting”