LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2010, 12:37 AM   #1
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Rep: Reputation: 2
arm-linux-gcc: Command not found


hi,
i have fedora 11 (64 bit).i was trying install eldk.so i installed arm-2008-11-24.After installation when i go for make command it shows error like /opt/edlk/usr/bin/arm-linux-gcc: Command not found
details:

[Bibhu@localhost linux-2.6.30.4]$ make
make: /opt/edlk/usr/bin/arm-linux-gcc: Command not found
CHK include/linux/version.h
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
ERROR: include/asm is a directory but a symlink was expected
make: *** [include/asm] Error 1
[Bibhu@localhost linux-2.6.30.4]$


so please help me.
thanks.
 
Old 11-18-2010, 12:54 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
It appears that the shell does not understand the name of your compiler

The shell will usually look for your compiler in /usr/local/bin or /usr/bin according to your $PATH environmental variable. try "printenv" or "echo $PATH" from the command line.

You can use "whereis" or "slocate" or "find" to find your compiler executable. You can have a symbolic link named "gcc" to the executable.
 
Old 11-18-2010, 01:16 AM   #3
crashpoint_zero
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 1
Will give you a generic reason why you got that error and then delve into the specific error that you got.

Generic reason:

You get the "Command not found" error when you try to execute a command which does not exist on your system or exists in a directory which is not in your shell's search path.

When you execute:

$ which ls
/usr/local/bin/ls

the shell starts searching in the ":" separated paths in $PATH environment variable to see if a file by the name "ls" exists. The search stops upon the first find. If it doesn't find the file in any of the paths, it gives the "Command not found" error.

Specific reason:


make: /opt/edlk/usr/bin/arm-linux-gcc: Command not found

says that your make file contained a target entry which was supposed to be compiled by "/opt/edlk/usr/bin/arm-linux-gcc". Most probably it would be defined in a $CC variable at the top of the makefile.

But which is your make file? As per the man page here
it says that by default make looks into GNUmakefile, makefile, and Makefile, in that order.

So see which makefile you are using first.

Once you've got that figured out, find the entry "/opt/edlk/usr/bin/arm-linux-gcc" in it. That's the command that your shell is executing but it isn't there.

Normally most makefiles use the system's GCC compiler instead of using their own. If I were you at this stage, I'd do the following:

1. Check if arm-linux-gcc is installed on my system or not (check by running the "which" command as described above)
2. If its not there, install it and go to step 1. If it is there, go to step 3.
3. Create a symlink from "/opt/edlk/usr/bin/arm-linux-gcc" to <insert absolute path of arm-linux-gcc here>
4. Run your make again

How to do step 3? - # ln -s <abs path of arm-linux-gcc> "/opt/edlk/usr/bin/arm-linux-gcc"

Hope this helps.
 
  


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
Compiling debian arm for NSLU2 - arm-linux-gnueabi-objdump not found ergosteur Linux - Kernel 3 10-30-2010 12:24 PM
adjusting tool chain section 5.8 i686-lfs-linux-gnu-gcc: command not found rlaybourn Linux From Scratch 7 10-14-2010 09:23 AM
Compile the linux2.6.14.1 for arm must ues the arm-linux-gcc-3.4.4? frankyue Linux - Embedded & Single-board computer 2 12-20-2008 08:28 AM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 05:02 PM


All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration