[BusyBox] Re: File not found errors
Ryan Lindeman
lindemanr at rubberstampfactory.com
Sun Mar 10 15:26:04 UTC 2002
At 06:36 AM 3/10/2002 -0700, you wrote:
>Message: 1
>Date: Sat, 9 Mar 2002 06:25:47 -0800 (PST)
>From: jimmy carter <jim_muna at yahoo.com>
>To: busybox at busybox.net
>Subject: [BusyBox] why i can't add program to my bootdisk
>
>hi..
>i have problem with my bootdis, i use busybox and
>kernel 2.4.18. and nothing goes wrong until i need
>iptables some additional prog. it cant run on that
>system. some error msg that i can seen on screen is
>bash :file or directory not found .
>
>so what wrong?
>
>=====
>wasalam
>
>
>jimmy carter
>kadiv. hub alumni dan keluar kampus Himafi ITB
>http://upk.fi.itb.ac.id/~jim_muna
Hey Jimmy I have had similar problems too. I often found this error occurs
if the file you are trying to execute
doesn't have all the libraries it needs.
So the question now is...How do I know what libraries it needs?
Take a regular linux box and type in: ldd <filename>
LDD stands for "List Dynamic Dependencies" that is, list shared objects
that would be loaded if the file were executed.
A lot of others who use busybox also use uCLibc or DietCLib or some other
package.
What is uCLibc or DietCLib? (Maintained by Eric as well I believe.)
When you compile an executable you can chose to compile the "libraries"
into the executable or have them loaded "dynamically."
(Much like .DLL's for Windows)
Most linux distributions come with GLib, or Libc 5.0? (Correct me, I'm
probably wrong...)
The library files for these two are very large and must be included with
the executable.
So, others have created smaller versions of these libraries. These are
uCLibc, DietCLib, etc.
To answer your first question: If you use LDD and find that "xxx library"
is required, you can do one of two things:
1) Recompile the executable in question with uCLibc or DietCLib and copy
the uCLibc libraries (Which are smaller) along with the newly compiled
executable to your "busybox" disk.
or
2) Copy the Glib or Lib5 libraries from you linux distribution to your disk
along with the compiled executable.
I hope this all makes sense, there are others who could have said it
better. But we are all learning and having fun...at least I am..
Ryan Lindeman
More information about the busybox
mailing list