LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   /bin/sh: gcc: command not found (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/bin-sh-gcc-command-not-found-649627/)

muruganm 06-16-2008 07:22 AM

/bin/sh: gcc: command not found
 
hi,
i am new to embedded linux,also to this forum.i am trying to compile kernel and uboot for arm target board on the centos.i installed crosstool in path /usr/local/arm/2.95.3/bin.i put kernel and uboot source in the /opt
directory.when i compiling the kernel it shows error


/bin/sh: gcc: command not found

>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/opt/LN2440SBC/clabsys_kernel_2.4.20_rel1.0/scripts/lxdialog'
make: *** [menuconfig] Error 2

can anyone help me?


thanks and regards

m.murugan

kscott121 06-17-2008 08:12 AM

Not sure about your environment fully but your messages indicate that you need to install the Ncurses packages (perhaps from an existing repository) or else a straight make/install.

As to the gcc error, I have sometimes seen the need to establish a symbolic link to the actual executable (called in my case 'gcc-4.0' as below. This so the compile step can find the actual executable.

ls-l /usr/bin
lrwxrwxrwx 1 root root 7 2007-07-31 22:22 /usr/bin/gcc -> gcc-4.0
-rwxr-xr-x 1 root root 104520 2006-04-20 16:51 /usr/bin/gcc-4.0

create the link with ln -s /usr/bin/gcc /usr/bin/gcc-4.0

Hope this helps.
kscott

Fadoksi 07-03-2008 08:11 AM

Do you have crosstool's gcc in your PATH?
Try:
Code:

export PATH="$PATH:/usr/local/arm/2.95.3/bin"


All times are GMT -5. The time now is 11:26 AM.