Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I have a file, and terminal won't run it. I don't understand why. There are a number of files in directory, but the binaries are the only ones that fail. help? I use this program for my work, and without it I'm in a world of un-productivity. I just did a clean install of 12.04. Am I missing a vital package? Why are there no errors, is it the binary itself? They are marked as executable.

mantra@Mantra:~$ cd iambuff/mplab\ 1.2\ full\ package/
mantra@Mantra:~/iambuff/mplab 1.2 full package$ ls   
mantra@Mantra:~/iambuff/mplab 1.2 full package$ sudo ./ 
[sudo] password for mantra: 
mantra@Mantra:~/iambuff/mplab 1.2 full package$ sudo ./ -v
mantra@Mantra:~/iambuff/mplab 1.2 full package$

In response to the first response to my question, here is the -lh output and the echo. Thanks.

mantra@Mantra:~/iambuff/mplab 1.2 full package$ ls -lh
total 712M
-rwxr-xr-x 1 mantra mantra  71M Jun  1 01:48
-rwxrwxr-x 1 mantra mantra 230M Jun  1 01:11
-rwxrwxr-x 1 mantra mantra 123M Sep 26  2011
-rw-r--r-- 1 mantra mantra 122M Jun  1 02:10
-rwxrwxr-x 1 mantra mantra  17M Sep 21  2011
-rw-r--r-- 1 mantra mantra  17M Jun  1 02:08
-rwxr-xr-x 1 mantra mantra 136M Jun  1 02:04
mantra@Mantra:~/iambuff/mplab 1.2 full package$ sudo ./ 
[sudo] password for mantra: 
mantra@Mantra:~/iambuff/mplab 1.2 full package$

In response to the third post. The echo command yields 127?

mantra@Mantra:~/iambuff/mplab 1.2 full package$ ./ 
mantra@Mantra:~/iambuff/mplab 1.2 full package$ echo $?
mantra@Mantra:~/iambuff/mplab 1.2 full package$
share|improve this question
"ls -lh" output will be more helpful, as it will show the file modes for each file as well. Also, after you run the program and it exits giving you back control of the terminal, what does "echo $?" output if you run it? –  dobey Jun 3 '12 at 0:26
thanks for the quick response, I put the answer in the original post. –  Pentax Jun 3 '12 at 0:41
I think the binary is being run, but it is silently exiting (if it was a permission problem it would say "permission denied"). Are you sure you need to run this with sudo? You should probably be able to install programs into your home directory. –  pablomme Jun 3 '12 at 0:45
You need to run "echo $?" and not "echo $". The question mark is literal there, and is a special variable, which holds the exit code of the last run program. Is it required to run the program with sudo? You should just run it as your normal user. –  dobey Jun 3 '12 at 0:51
Thank you pablomme and dobey. I tried it without the super, and published the echo output. –  Pentax Jun 3 '12 at 0:55

1 Answer 1

up vote 2 down vote accepted

The installer requires 32-bit libraries not present by default on a 64-bit system

MPLAB IDE may be 32/64-bit, but it's installer is 32-bit only and won't run by default on a 64-bit Ubuntu installation. To get the minimal 32-bit libraries it needs to run, please do

sudo apt-get install libc6:i386

This will let the installer run, but if you get any more problems, simply install the full 32-bit library set with sudo apt-get install ia32-libs.


I downloaded the MPLAB IDE installer to figure this out.

The last two lines of strace ./ are revealing:

open("/lib/", O_RDONLY)    = -1 ENOENT (No such file or directory)
_exit(127)                              = ?

That file is only present on 32-bit installations, or if you've installed the 32-bit libraries on a 64-bit system.

share|improve this answer
you sir, are very talented. Or miss, whatever you may be. –  Pentax Jun 3 '12 at 6:58
@Pentax : Thank you, dear sir (or madam). Please accept the answer (tick mark on left) in that case so the question is marked as "answered". –  izx Jun 3 '12 at 7:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.