Linux Debian support - Error Message: "No such file or directory"

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > May 2007 > Error Message: "No such file or directory"





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Error Message: "No such file or directory"
Tim Johnson

2007-05-24, 1:14 am

Hi:
Using kubuntu 7.04 (amd_640
I've installed a binary in /usr/bin. This is a programming language
interpreter (rebol) not available thru apt-get.
Permissions are set to 775, but when I attempt to execute it, I get
"No such file or directory"

Is there something else that needs to be done?
Supposedly the binary was compiled for ubuntu.
thanks
tim
SINNER

2007-05-24, 7:13 pm

* Tim Johnson wrote in alt.os.linux.debian:

> Hi:
> Using kubuntu 7.04 (amd_640
> I've installed a binary in /usr/bin. This is a programming language
> interpreter (rebol) not available thru apt-get.
> Permissions are set to 775, but when I attempt to execute it, I get
> "No such file or directory"
>
> Is there something else that needs to be done?
> Supposedly the binary was compiled for ubuntu.
> thanks
> tim
>


Is the exectuable in /usr/bin or is it in /usr/bin/rebol/ ?

If the latter, make a symbolic link (must change the name slightly if its
the same as the directory name) in /usr/bin

ln -s /usr/bin/rebol/rebol /usr/bin/rebolexe

--
David
Tim Johnson

2007-05-24, 7:13 pm

SINNER wrote:
> * Tim Johnson wrote in alt.os.linux.debian:
>
>
> Is the exectuable in /usr/bin or is it in /usr/bin/rebol/ ?

Hi Sinner:
It is in /usr/bin
and I have tried it in /usr/local/bin with the same results
ldd rebol gives me
"Not a dynamic executable"
linux32 rebol gives me
"Can not execute rebol: No such file or directory"
It is compiled as 32-bit .... works fine on slackware 10.0

I have also tried executing as ./rebol from several other directories.
thanks
tim
Linonut

2007-05-24, 7:13 pm

After takin' a swig o' grog, Tim Johnson belched out this bit o' wisdom:

> It is in /usr/bin
>
> and I have tried it in /usr/local/bin with the same results
>
> ldd rebol gives me
>
> "Not a dynamic executable"
>
> linux32 rebol gives me
> "Can not execute rebol: No such file or directory"
>
> It is compiled as 32-bit .... works fine on slackware 10.0


Try

file /usr/bin/rebol

and tell us what it says. (Install the "file" package, if necessary.)

Same for

ls -l /usr/bin/rebol


--
Refactor Windows.
Tim Johnson

2007-05-24, 7:13 pm

Linonut wrote:
> After takin' a swig o' grog, Tim Johnson belched out this bit o' wisdom:
>
>
> Try
>
> file /usr/bin/rebol
>
> and tell us what it says. (Install the "file" package, if necessary.)
>
> Same for
>
> ls -l /usr/bin/rebol
>

Here you go....
tim@bart:~$ file /usr/bin/rebol
/usr/bin/rebol: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
tim@bart:~$ ls -l /usr/bin/rebol
-rwxr-xr-x 1 root root 364576 2006-02-13 19:17 /usr/bin/rebol

thanks
tim
Tim Johnson

2007-05-24, 7:13 pm

Linonut wrote:

>
> Try
>
> file /usr/bin/rebol
>
> and tell us what it says. (Install the "file" package, if necessary.)
>
> Same for
>
> ls -l /usr/bin/rebol
>

BTW: If I run ldd on this same executable from slackware I get:
ldd ~/downloads/rebol
libm.so.6 => /lib/libm.so.6 (0x4002c000)
libc.so.6 => /lib/libc.so.6 (0x4004e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
tim
Tim Johnson

2007-05-24, 7:13 pm

Tim Johnson wrote:
> Linonut wrote:
>
> BTW: If I run ldd on this same executable from slackware I get:
> ldd ~/downloads/rebol
> libm.so.6 => /lib/libm.so.6 (0x4002c000)
> libc.so.6 => /lib/libc.so.6 (0x4004e000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

ld-linux is not present on this machine.
question 1: Where do I get it?
question 2: can this 32-bit executable use those libraries
:-)that should answered when I find ld-linux.so.2
Mumia W.

2007-05-24, 7:13 pm

On 05/24/2007 05:59 AM, Tim Johnson wrote:
> [...]
> ldd rebol gives me
> "Not a dynamic executable"
> linux32 rebol gives me
> "Can not execute rebol: No such file or directory"
> It is compiled as 32-bit .... works fine on slackware 10.0
>
> I have also tried executing as ./rebol from several other directories.
> thanks
> tim


That rebol binary is too old to run under modern Linuxes. You need a
modern executable which you can probably get here:
http://www.rebol.net/builds/

Tim Johnson

2007-05-24, 7:13 pm

Mumia W. wrote:
> On 05/24/2007 05:59 AM, Tim Johnson wrote:
>
> That rebol binary is too old to run under modern Linuxes. You need a
> modern executable which you can probably get here:
> http://www.rebol.net/builds/


That executable is the one compiled for ubuntu 5.1
(http://www.rebol.net/builds/042/reb...42-ub510.tar.gz)

I downloaded sdk-2705042, which is a build date of March 30,
and extracted the binary.
_exactly_ the same issues.

This problem remains, and to really resolve anything, I need
ld-linux.so.2
Where can I get it? Must be part of some package, right?
Thank you
Tim
Tim Johnson

2007-05-24, 7:13 pm

Tim Johnson wrote:
<...>
> This problem remains, and to really resolve anything, I need
> ld-linux.so.2
> Where can I get it? Must be part of some package, right?


I'm thinking that ld-linux.so.2 is part of the ldso dynamic loader
and appears to be obsoleted. Here is output from apt-get:
"""
sudo apt-get install ldso
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ldso is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libc6-dev libc6
E: Package ldso has no installation candidate
"""

Mumia W.

2007-05-25, 1:18 am

On 05/24/2007 09:03 AM, Tim Johnson wrote:
> Mumia W. wrote:
>
> That executable is the one compiled for ubuntu 5.1
> (http://www.rebol.net/builds/042/reb...42-ub510.tar.gz)
>


When I visited http://www.rebol.net/builds/ I saw at least two different
binaries for Linux.

> I downloaded sdk-2705042, which is a build date of March 30,
> and extracted the binary.
> _exactly_ the same issues.
>
> This problem remains, and to really resolve anything, I need
> ld-linux.so.2
> Where can I get it? Must be part of some package, right?
> Thank you
> Tim



If you have either Debian Sarge or Etch, you have /lib/ld-linux.so.2.
It's packaged with the C library (libc6).
Tim Johnson

2007-05-25, 1:18 am

Mumia W. wrote:

>
> When I visited http://www.rebol.net/builds/ I saw at least two different
> binaries for Linux.

In fact there are more .... there are _two_ binaries specially
compiled for 32-bit ubuntu and neither work.

> If you have either Debian Sarge or Etch, you have /lib/ld-linux.so.2.
> It's packaged with the C library (libc6).


Don't, but someone just sent a debian 4.0 copy of ld-linux.so.2
it solved nothing. rebol is not Open Source - the developers will
probably have to do a build on ubuntu 64
Tim Johnson

2007-05-25, 1:14 pm

I found a solution: Below is partial copy of what I wrote to the rebol
Mailing List:
****************************************
*******************************
When I attempted to install the 32-bit rebol binary which was compiled for
32-bit ubuntu on ubuntu 7.04, execution of the binary returned only a
message: "No such file or directory". I believe that message came from
rebol itself, but that is only speculation on my part.

Running ldd was unsuccessful even tho' `file rebol' did report that is was
a 32-bit executable.

Running `ldd rebol' on slackware returned this information:
libm.so.6 => /lib/libm.so.6 (0x4002c000)
libc.so.6 => /lib/libc.so.6 (0x4004e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libm.so.6 and libc.so.6 were present on the ubuntu machine, but
ld-linux.so.2 - the dynamic loader - was not. Ubuntu has obsoleted it.
Installing a 32-bit loader was unsuccessful.

I'm an old (in more ways than one) "C" programmer with some experience
working
with dlls on windows, which are the equivalent of linux shared object
libraries. I suspected that the paths to the shared objects were hard-coded
in the binary and after some inspection I did find them.

I made a copy of the rebol binary on opened with vim using the -b switch,
thus putting vim in binary mode.
--------------------------------------------------------------------------------------------
NOTE: There is a wonderful windows shareware application called ztreewin,
and one of it's tools is a hex editor - actually it is a modern clone of
xtreegold.
-------------------------------------------------------------------------------------------
I then edited the paths to the binaries as follows:
libm.so.6 => l1bm.so.6
libc.so.6 => l1bc.so.6
ld-linux.so.2 => ld-l1nux.so.2
and made copies of the shared objects with those name changes, ported
all to
the ubuntu machine and I have rebol running.
****************************************
****************************************
*
:-) edit binaries with *extreme* care and you better know what you're
doing before you start.
Mumia W.

2007-05-25, 1:14 pm

On 05/25/2007 04:01 AM, Tim Johnson wrote:
> [...]
> I made a copy of the rebol binary on opened with vim using the -b switch,
> thus putting vim in binary mode.
> [...]


Good job. On Debian you can also install 'hexcurse' which is a
curses-based hex editor. And for KDE there is hhexedit.

Tim Johnson

2007-05-25, 7:13 pm

Mumia W. wrote:
> On 05/25/2007 04:01 AM, Tim Johnson wrote:
>
> Good job. On Debian you can also install 'hexcurse' which is a
> curses-based hex editor. And for KDE there is hhexedit.


<sigh> Ubuntu was not my first choice - it was debian.
I tried for a week to resolve a mysterious network timeout, before I gave
up. To make a long story short, I went with the ubuntu because it
*worked* and I could then get used to the debian engineering, such as it
is on ubuntu - til a later version of debian would recognize the onboard
nic chip. (new gateway computer)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com