LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2008, 07:51 AM   #1
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Rep: Reputation: 15
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
 
Old 08-27-2008, 08:15 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
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.
 
Old 08-27-2008, 09:43 AM   #3
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Original Poster
Rep: Reputation: 15
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
 
Old 08-27-2008, 10:41 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
Old 08-27-2008, 10:44 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I know nothing about 64-bit apps and if they run or not on a system of the other type.
 
Old 08-29-2008, 09:02 PM   #6
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Original Poster
Rep: Reputation: 15
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.
 
  


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
System calls/functions to execute a file within a program psandeepnair1985 Programming 1 05-02-2007 02:37 AM
how to execute a .exe file in linux environment from a c program? aakanksh_c Linux - General 1 09-18-2005 04:26 AM
C function to execute a program and return the output of the program ryan.n Programming 4 08-14-2004 10:11 PM
execute a program athenerx Programming 3 05-23-2002 04:45 PM
want to execute a php file in a c++ program Mr_ss Programming 1 10-10-2001 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 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