For some reason, I'm trying to make a minimal Linux system which only has essential components to run. I succeeded in installing BusyBox on my system, but I am having trouble installing glibc on top of it.
I just followed the instructions on this site: http://wiki.beyondlogic.org/index.php?title=Cross_Compiling_BusyBox_for_ARM
As per the instructions, all the libraries produced by glibc were put in the '/lib' directory. But when I tried to execute a dummy C program as follows
#include <stdio.h>
int main { printf ("hello\n"); }
the system printed a "not found" message. Presumably this message means the system cannot find the glibc libraries.
How can I make the system find the libraries in the '/lib' directory by default? If the Linux kernel already finds libraries from there by default, what could have been wrong?
The above program was put in the '/scratch' directory with the name 'a.out'. I tried to execute it inside the directory by typing './a.out'. Here is the result of 'ls' in the root directory
bin dev etc include lib linuxrc proc root sbin scratch sys usr
As I mentioned, all the glibc libraries are in the '/lib' directory.