View Single Post
Old 09-16-2012, 10:14 AM   #642
tigran
Zealot
tigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
Kai771
You moved the directory to the wrong level. The end result should look like:

$ l /usr/local/arm/arm-kindle-linux-gnueabi/
total 912
dr-xr-xr-x 6 1000 1000 4096 2011-02-12 01:58 arm-kindle-linux-gnueabi/
dr-xr-xr-x 2 1000 1000 4096 2011-02-12 01:58 bin/
-r--r--r-- 1 1000 1000 907913 2011-02-12 01:58 build.log.bz2
dr-xr-xr-x 4 1000 1000 4096 2011-02-12 01:55 lib/
dr-xr-xr-x 3 1000 1000 4096 2011-02-12 01:55 libexec/
dr-xr-xr-x 2 1000 1000 4096 2011-02-12 01:58 share/
drwxr-xr-x 3 1000 1000 4096 2011-02-12 01:57 test-suite/

i.e. one level deeper. The confusion is perhaps because there is yet another "arm-kindle-linux-gueabi" inside which looks like this:

$ l /usr/local/arm/arm-kindle-linux-gnueabi/arm-kindle-linux-gnueabi/
total 16
dr-xr-xr-x 2 1000 1000 4096 2011-02-12 01:58 bin/
dr-xr-xr-x 2 1000 1000 4096 2011-02-11 23:36 debug-root/
dr-xr-xr-x 3 1000 1000 4096 2011-02-12 01:55 include/
dr-xr-xr-x 6 1000 1000 4096 2011-02-12 01:58 sysroot/

and this is my PATH:

$ echo $PATH
/usr/local/arm/arm-kindle-linux-gnueabi/bin/:the_rest_deleted_as_irrelevant_

Why did I have an "arm" directory at all? Because I was trying different ARM toolchains and that was an easy way to switch between them. But you can skip "arm" level altogether and adjust PATH accordingly.

and to make sure that the compiler is found do this:

$ type arm-kindle-linux-gnueabi-gcc
arm-kindle-linux-gnueabi-gcc is /usr/local/arm/arm-kindle-linux-gnueabi/bin/arm-kindle-linux-gnueabi-gcc
tigran is offline   Reply With Quote