| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-29-2012, 03:47 AM
|
#1
|
|
Member
Registered: May 2008
Location: Glendale, CA
Distribution: ubuntu 12.04
Posts: 146
Rep:
|
"command not found" but the file file exists!
Hi everyone,
im trying to compile a kernel for my phone, but i get an error from make :
Code:
make: /home/r1d3r/code/arm-2010q1/bin/arm-none-eabi-gcc: Command not found
but the file already exists:
Code:
r1d3r@r1d3r-0:~/code/arm-2010q1/bin$ ls
arm-none-eabi-addr2line arm-none-eabi-gcc-4.4.1 arm-none-eabi-objdump
arm-none-eabi-ar arm-none-eabi-gcov arm-none-eabi-ranlib
arm-none-eabi-as arm-none-eabi-gdb arm-none-eabi-readelf
arm-none-eabi-c++ arm-none-eabi-gdbtui arm-none-eabi-run
arm-none-eabi-c++filt arm-none-eabi-gprof arm-none-eabi-size
arm-none-eabi-cpp arm-none-eabi-ld arm-none-eabi-sprite
arm-none-eabi-g++ arm-none-eabi-nm arm-none-eabi-strings
arm-none-eabi-gcc arm-none-eabi-objcopy arm-none-eabi-strip
r1d3r@r1d3r-0:~/code/arm-2010q1/bin$ ./arm-none-eabi-gcc
bash: ./arm-none-eabi-gcc: No such file or directory
do u guys have an idea what might be the problem?
PS: im running ubuntu 12.04
Thanks in advance.
|
|
|
|
04-29-2012, 04:04 AM
|
#2
|
|
Senior Member
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 2,770
|
in such cases usually the first line of that file contains an interpreter, like here:
#!/path/to/interpreter
it is used to be /bin/bash, but in your case that file does not exists.
|
|
|
|
04-29-2012, 04:23 AM
|
#3
|
|
Member
Registered: May 2008
Location: Glendale, CA
Distribution: ubuntu 12.04
Posts: 146
Original Poster
Rep:
|
"arm-none-eabi-gcc" is a binary and the makefile doesnt need the #! but i even tried adding it to the beginning of the makefile, and the problem persists.
is it possible that the config of bash got corrupted somehow?
thanks for your help.
|
|
|
|
04-29-2012, 07:21 AM
|
#4
|
|
Senior Member
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 2,770
|
You are right, for makefiles the #! is not used although it would be possible.
You can check how the SHELL variable set. Which make have you tried? Also you can try if that file (/home/r1d3r/code/arm-2010q1/bin/arm-none-eabi-gcc) can be executed from the command line without make. Have you checked the permissions?
|
|
|
1 members found this post helpful.
|
04-29-2012, 07:38 AM
|
#5
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
|
Is it executable? Is it the right binary format for the system you are trying to run it on? file arm-none-eabi-gcc would show what sort of binary it is. Is it named as it appears to be named? How does its full path look when listed with the --escape option of ls?
|
|
|
1 members found this post helpful.
|
04-29-2012, 07:53 PM
|
#6
|
|
Member
Registered: May 2008
Location: Glendale, CA
Distribution: ubuntu 12.04
Posts: 146
Original Poster
Rep:
|
ok i found the problem, its a 32bit binary, and im running a 64bit OS.
Code:
arm-none-eabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped
after a quick search in the ubunru wiki, i found out that i need to install "ia32-libs" to run 32bit executables, and voila! its working now :-)
thank you guys for your help, i was about to start pulling my hair from desperation.
best regards.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:41 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|