VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Cannot execute binary file  (Read 4263 times)

Colonel Panic

  • Vectorian
  • ****
  • Posts: 526
Cannot execute binary file
« on: May 27, 2007, 06: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
Re: Cannot execute binary file
« Reply #1 on: May 27, 2007, 06:47:00 am »

Hi ....you tried to change the permission ?...i gues :-)
Logged

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: Cannot execute binary file
« Reply #2 on: May 27, 2007, 06:49:59 am »

is it executable? check
Code: [Select]
ls -al /usr/bin/rdatePermissions should be 
-rwxr-xr-x. if it isn't executable (no x) do
Code: [Select]
chmod +x /usr/bin/rdate
Logged
Most music on my soundcloud page was arranged in programs running on VL.

bigpaws

  • Vectorian
  • ****
  • Posts: 1872
Re: Cannot execute binary file
« Reply #3 on: May 27, 2007, 06: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
Re: Cannot execute binary file
« Reply #4 on: May 30, 2007, 08: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: 1872
Re: Cannot execute binary file
« Reply #5 on: May 30, 2007, 05:01:56 pm »

Try sh /usr/bin/rdate.

Bigpaws
Logged

Pita

  • Vectorian
  • ****
  • Posts: 1346
Re: Cannot execute binary file
« Reply #6 on: May 30, 2007, 06: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
Re: Cannot execute binary file
« Reply #7 on: May 30, 2007, 06: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
Re: Cannot execute binary file
« Reply #8 on: June 03, 2007, 03: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, 03:38:56 am by Colonel Panic »
Logged

Triarius Fidelis

  • Vecteloper
  • Vectorian
  • ****
  • Posts: 2399
  • Domine, exaudi vocem meam
    • my website
Re: Cannot execute binary file
« Reply #9 on: June 03, 2007, 09: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