LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 06-16-2008, 07:22 AM   #1
muruganm
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
/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
 
Old 06-17-2008, 08:12 AM   #2
kscott121
Member
 
Registered: Jul 2003
Location: NC
Distribution: Fedora,Mepis,Debian
Posts: 84

Rep: Reputation: 15
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
 
Old 07-03-2008, 08:11 AM   #3
Fadoksi
Member
 
Registered: Apr 2006
Location: Finland
Distribution: Ubuntu, Gentoo, Debian
Posts: 88

Rep: Reputation: 15
Do you have crosstool's gcc in your PATH?
Try:
Code:
export PATH="$PATH:/usr/local/arm/2.95.3/bin"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/bin/sh: CC : command not found Pikidalto Linux - Software 7 05-11-2008 02:03 AM
/bin/bash: root: command not found pridefc Red Hat 5 12-12-2006 07:09 PM
gcc: command not found tds2000_us Fedora 1 08-03-2006 08:02 AM
/bin/sh: cmp: command not found - when compile 2.6.15 again . -=Graz=- Slackware 7 05-05-2006 08:39 PM
/bin/sh: anaconda-ks.cfg: command not found Buttercups Linux - General 1 08-07-2003 08:47 PM


All times are GMT -5. The time now is 08:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration