VectorLinux
September 17, 2014, 07:12:35 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Cannot execute binary file  (Read 3611 times)
Colonel Panic
Vectorian
****
Posts: 526


« on: May 27, 2007, 05:32:03 am »


Hi again! I've downloaded and tried to run rdate, and I'm getting an error message;

bash: /usr/bin/rdate: cannot execute binary

and nothing further happens.

Can anyone tell me what the problem is likely to be? The only clue I've got is that the file shows up in Midnight Commander with an asterisk beside it.

Thanks in advance,

Best,

Colonel Panic .
Logged
robert.linuxuser:-)
Member
*
Posts: 8


« Reply #1 on: May 27, 2007, 05:47:00 am »

Hi ....you tried to change the permission ?...i gues :-)
Logged
The Headacher
Louder than you
Global Moderator
Vectorian
*****
Posts: 1547


I like the bass to go BOOM!


WWW
« Reply #2 on: May 27, 2007, 05:49:59 am »

is it executable? check
Code:
ls -al /usr/bin/rdate
Permissions should be 
-rwxr-xr-x. if it isn't executable (no x) do
Code:
chmod +x /usr/bin/rdate
Logged

Most music on my soundcloud page was arranged in programs running on VL.
bigpaws
Vectorian
****
Posts: 1850


« Reply #3 on: May 27, 2007, 05:52:09 am »

Where did you get rdate? Did you try as root?

If you did then:

Please post the output of ls -al /usr/bin/rdate

Bigpaws

Logged
Colonel Panic
Vectorian
****
Posts: 526


« Reply #4 on: May 30, 2007, 07:27:39 am »


Yes I did try as root, and here is the output I got;

-rwxr-xr-x 1 root root 17804 2006-10-14 08:55 /usr/bin/rdate*



Logged
bigpaws
Vectorian
****
Posts: 1850


« Reply #5 on: May 30, 2007, 04:01:56 pm »

Try sh /usr/bin/rdate.

Bigpaws
Logged
Pita
Vectorian
****
Posts: 1310


« Reply #6 on: May 30, 2007, 05:09:41 pm »

In the tar.gz package the rdate I downloaded has a size of 14810 and the package comes with a Makefile, rdate.1 and rdate.c. I extracted into /usr/local. Then do "make" and rdate is put into /usr/bin and the size is only 5796 and runs perfectly.
Your size is 17804.

ls -l /usr/bin/rdate
-rwxr-xr-x 1 root root 5796 .......

The rdate package was tar.gz. What was yours?

BTW in mc all executable files have an * on the left site.

Regards
Logged
saulgoode
Vectorite
***
Posts: 340



« Reply #7 on: May 30, 2007, 05:27:37 pm »

If the problem was with permissions then the error message would be "Permission denied". The only time I have encountered a "Cannot execute binary" message was when trying to execute a file on a partition which was mounted with the "noexec" option (which is implied by the "users" option).

Could you post the output of executing 'mount' (no arguments)? I am skeptical that your /usr/bin is on a separately mounted partition (I thought I was the only one who did such strange things), but perhaps it would prove helpful.
Logged

A complex system that works is invariably found to have evolved from a simple system that works.
Colonel Panic
Vectorian
****
Posts: 526


« Reply #8 on: June 03, 2007, 02:37:06 am »

Thanks for all the replies.

My guess is I've got a duff version of rdate and I'm going to try and download the version Pita mentions before trying anything else. Just one last question though; as I live in the UK, does anyone know which time server I should connect to?
« Last Edit: June 03, 2007, 02:38:56 am by Colonel Panic » Logged
Triarius Fidelis
Vecteloper
Vectorian
****
Posts: 2399


Domine, exaudi vocem meam


WWW
« Reply #9 on: June 03, 2007, 08:40:49 pm »

Thanks for all the replies.

My guess is I've got a duff version of rdate and I'm going to try and download the version Pita mentions before trying anything else. Just one last question though; as I live in the UK, does anyone know which time server I should connect to?


Apparently, Newcastle University has an rdate server running.

I hear they have a lot of coals there, too...
Logged

"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!