Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  setting path problem in ubuntu
« previous next »
  • Print
Pages: [1]

Author Topic: setting path problem in ubuntu  (Read 2015 times)

Offline sldonmtns

  • Member
  • *
  • Posts: 2
setting path problem in ubuntu
« on: April 23, 2007, 09:29:20 PM »
I'm having problems compiling, because I can't get the compiler to see the path to arm-elf.

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

When I enter the command:  "sudo ../tools/configure" I get the following:
Code: [Select]
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

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: [Select]
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$

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
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: setting path problem in ubuntu
« Reply #1 on: April 23, 2007, 10:01:38 PM »
Can you 'which arm-elf-gcc' ?
Logged

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: setting path problem in ubuntu
« Reply #2 on: April 23, 2007, 10:38:55 PM »
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.
Logged

Offline sldonmtns

  • Member
  • *
  • Posts: 2
Re: setting path problem in ubuntu
« Reply #3 on: April 24, 2007, 12:08:20 AM »
Thanks safetydan, that was the problem. I made my build directory w/ sudo.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  setting path problem in ubuntu
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.073 seconds with 15 queries.