Rockbox Development > Starting Development and Compiling

setting path problem in ubuntu

(1/1)

sldonmtns:
I'm having problems compiling, because I can't get the compiler to see the path to arm-elf.

I added:
--- Code: ---#!/bin/bash
PATH=/usr/local/arm-elf/bin:$PATH
export PATH
--- End code ---
to my .profile file in my /home/"user" directory.

When I enter the command:  "sudo ../tools/configure" I get the following:

--- Code: ---Normal build selected
Using source code root directory: /home/danny/rockbox-20070423
../tools/configure: 1403: arm-elf-gcc: not found
WARNING: The compiler you must use (arm-elf-gcc) is not in your path!
WARNING: this may cause your build to fail since we cannot do the
WARNING: checks we want now.
Created Makefile

--- End code ---

Then if I don't use the sudo command ("../tools/configure") the compiler seems to see the path, but of course does not have permission.

--- Code: ---Normal build selected
Using source code root directory: /home/danny/rockbox-20070423
Using arm-elf-gcc 4.0.3 (400)
../tools/configure: 1489: cannot create autoconf.h: Permission denied
../tools/configure: 1575: cannot create Makefile: Permission denied
Created Makefile
danny@danny-desktop:~/rockbox-20070423/build$

--- End code ---

I also checked to make sure the path I'm using is correct and it should be. all the files are in: /usr/local/arm-elf/bin

saratoga:
Can you 'which arm-elf-gcc' ?

safetydan:
Why are you using sudo? It looks like you're having permission problems rather than path problems. Your rockbox build directory should be created as your normal account, not as the root/sudo user.

sldonmtns:
Thanks safetydan, that was the problem. I made my build directory w/ sudo.

Navigation

[0] Message Index

Go to full version