LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   execute a program file (https://www.linuxquestions.org/questions/linux-newbie-8/execute-a-program-file-665764/)

ernst 08-27-2008 07:51 AM

execute a program file
 
Hi,
I try to run a program:

~/tmp$ ./vwlinux86gui
bash: ./vwlinux86gui: No such file or directory

~/tmp$ ls -l ./vwlinux86gui
-rwxrwxrwx 1 ernst ernst 4079840 2008-08-26 00:45 ./vwlinux86gui

I do not understand why bash does not find the file and not execute it!

i.e
~/tmp$ chmod -x ./vwlinux86gui
~/tmp$ ./vwlinux86gui
bash: ./vwlinux86gui: Permission denied

Now it did find it and gives the correct error message

I hope this is very simple, but I can't see it.

Thanks
Ernst

matthewg42 08-27-2008 08:15 AM

Maybe vwlinux86gui is a script with a shabang line which refers to an interpreter which is not installed.

Do this:
Code:

head -n 4 vwlinux86gui
If you see something like this:
Code:

#!/usr/bin/wish
...and there is no wish installed, then that is the problem.

You might also see it like this:
Code:

#!/bin/sh

exec wish "$0" "$@"

Of course, it might not be wish exactly, but some other interpreter.

ernst 08-27-2008 09:43 AM

head -n 10 vwlinux86gui

shows on first line:
ELF04��<4 ((%444������^

then unprintable characters and later:

/lib/ld-linux.so.2

On this box I have ld-linux-x86-64.so.2 instead of ld-linux.so.2
This must be the problem.

Thanks
Ernst

knudfl 08-27-2008 10:41 AM

Linux x86 (32-bit) is supported, § 7.1 :
http://www.cincomsmalltalk.com/docum...seNotes7.1.pdf

Ask matthewg42 for the possibility to use it
on your system. (64-bit system)

Regards

matthewg42 08-27-2008 10:44 AM

I know nothing about 64-bit apps and if they run or not on a system of the other type.

ernst 08-29-2008 09:02 PM

Thanks to everyone,
The turning point was to realise that I am trying to run a 32 bit app on a 64 bit os.
Here is an article about this
http://www.debian-administration.org/articles/534

With this in mind I did:
apt-file --architecture i386 search libX11.so.6
which points to two packages: libx11-6 and ia32-libs

The first one was already installed. After installing the second one VisualWorks runs.


All times are GMT -5. The time now is 01:32 PM.