Click to See Complete Forum and Search --> : why don't executables like me? please help.
The Anti-Void
11-04-2001, 06:23 PM
This really boggles my mind. I downloaded pkzip for linux from ftp://ftp.pkware.com/pklin251.exe (and yes this is an linux binary, even though it ends in exe) I then tried to run it by typing "./pklin251", but bash gave me the weird wtf-like error "bash: ./pklin251.exe: No such file or directory"
Hmm, maybe it didn't have executable attributes set. Fixed that with a chmod and still it does the same stupid thing. I've tried running the thing as root, it still dosen't work. I've tried using different shells to invoke it and they give me a similar complaint. Running it from konqueror? Tried that. Still dosen't do anything. Arrrgghhh! I tried copying the file to /usr/bin (so it's in the path) and then when I try to run it bash spews this "bash: /usr/bin/pklin251.exe: No such file or directory"
???? I've tried re-downloading it several times to make sure it transfered properly. Its size matches what it says on the pkware website. I even looked at the file with a binary editor, half expecting to see it begin with an "MZ" (header for an ms-dos excutable, perhaps?) But it turns out that it wasn't there.
I know I've seen posts like this before where a newbie is told simply to type ./ before something to get it to run, but it dosen't work. And I've yet to see a solution for this mystery-executable question.
Help!
The Anti-Void
11-04-2001, 06:31 PM
Well i've conformed that it a linux executable. typing "file pklin251.exe" gives this: "pklin251.exe: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped"
bdg1983
11-04-2001, 06:34 PM
Have you tried ./pklin251.exe ?
The Anti-Void
11-04-2001, 06:44 PM
Originally posted by The Anti-Void:
<STRONG>I then tried to run it by typing "./pklin251", but bash gave me the weird wtf-like error "bash: ./pklin251.exe: No such file or directory"
</STRONG>
Oops, I meant to say I typed "./pklin251.exe"
bdg1983
11-04-2001, 06:48 PM
You did a
chmod +x pklin251.exe
so the file must be seen.
Anything at the site you downloaded it from on how to actually execute the darn thing?
bdg1983
11-04-2001, 06:49 PM
Would it take a rename or copy?
cp pklin251.exe pklin251
./pklin251
Strogian
11-04-2001, 06:52 PM
I have no idea what would cause that. It shouldn't matter if it's in the path or not, as long as you use "./pklin251.exe".
Wait a minute. When you put it in /usr/bin, did you just run "pklin251.exe", or did you run "/usr/bin/pklin251.exe"? If you just ran "pklin251.exe", and you got the error "bash: /usr/bin/pklin251.exe: No such file or directory", then it's obvious that bash finds it, but then there's something wrong with it.
The Anti-Void
11-04-2001, 06:53 PM
I've actually already tried copying it to different names.
For example:
cp pklin251.exe pklin
./pklin
bash: ./pklin: No such file or directory
or
cp pklin251.exe foobar
./foobar
bash: ./foobar: No such file or directory
this sure is weird, isn't it?
bdg1983
11-04-2001, 06:54 PM
1. I'm trying to install PKZIP for UNIX, on Red Hat Linux, and I can't get the self-extracting file to execute. What am I doing wrong?
First, if you have downloaded the shareware version, please verify that you have properly downloaded the file, by comparing the size of the file you downloaded with the file size specified on the download page. Also, please be certain that you have properly set the permissions on the file after downloading it, as specified on the download page. To set the permissions and execute the file, type the following commands at a shell prompt:
chmod 755 pklin251.exe
./pklin251.exeIf you have followed these instructions and are still unable to execute the file, or if you are unable to install the registered or licensed version self-extracting file, your system may be missing a required library file. Please refer to this support notice for information on obtaining and installing the necessary files.
bdg1983
11-04-2001, 06:56 PM
The support notice.
Attention Linux Users - System Library Requirement
Shareware, registered and distribution licensed versions of PKZIP 2.51 for Linux require the use of libc-5. Some newer versions of Linux, such as Redhat 7 and SuSE 7 no longer install this library and some no longer include it with the distribution. In order to install or run PKZIP 2.51 on these newer versions of Linux, you must obtain and install libc-5. Installing this library will not adversely affect the operation of your system.
Check with your Linux distributor for information on how to obtain libc-5. An example of how to install this library for Redhat 7 follows:
Download these files:
ld.so-1.9.5-13.i386.rpm
libc-5.3.12-31.i386.rpm
Please note that the version of libc-5 available for Redhat 7 will not work. Instead, you should use the version of libc-5 for Redhat 6.2. It can be obtained from:
ftp://ftp.redhat.com/pub/redhat/redhat-6.2-en/os/i386/RedHat/RPMS/
To complete the installation you must log in as root, and run the following commands:
rpm -i ld.so-1.9.5-13.i386.rpm
rpm -i libc-5.3.12-31.i386.rpm
The Anti-Void
11-04-2001, 07:04 PM
Thank you, mdwatts. I finally got it working.
bdg1983
11-04-2001, 07:06 PM
Your quite welcome. Glad to help.