4

I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI.

I have to install few softwares in Ubuntu which are as follow:

  • MPLAB X IDE version 1.90
  • XC8 Compiler and X32 Compiler
  • Cadsoft from Eagle

I download there setup files, which are having extension *.run extension.

I searched on Internet and found that these files don't have executable permission, either one have to do it graphically by right clicking on the file and then under permissions tab check the Allow executing as program check box, or use chmod command to do so. I had tried everything but nothing works for me.

I used graphical method to change this, but as soon as I click on the check box, the check mark disappears. I tried command line methods too but nothing works for me:

sudo chmod u+x MPLABX-v1.90-linux-installer.run
sudo chmod +x MPLABX-v1.90-linux-installer.run
chmod +x MPLABX-v1.90-linux-installer.run
sudo chmod 777 MPLABX-v1.90-linux-installer.run

When run:

sudo ./MPLABX-v1.90-linux-installer.run

the result is command not found.

sudo "./MPLABX-v1.90-linux-installer.run"

results in command not found.

I tried all these commands but nothing changes the permission to executable. Please help me as soon as possible.

Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407

3 Answers3

13

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the directory of the .run file, and run the command(s) below:

chmod +x example.run
sudo ./example.run

OR

Right-click the file and select Properties. Under the Permissions tab, make sure that Allow executing file as program is checked and press Close. Double-click the .run file to open it. A dialog box will appear, choose Run in Terminal to run the installer

A Terminal window will open. Follow any instructions on-screen to install the program.

Note:64-bit versions of Ubuntu don't include the 32-bit libraries required to run the installer. Before the installer will run, you need to install the ia32-libs.

Mitch
  • 109,787
1

Try with the following commands:

cd ~/Downloads
chmod +x <file>.run
sudo sh ./<file>.run

assuming that you downloaded your files in ~/Downloads directory.

Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407
0

I used graphical method to change this, but as soon as I click on the check box, the check mark disappears

Sorry, but I think all the other answers are wrong.
Here are my solution(s), in order of preference:

  • You might be able to run it with sudo bash ./MPLABX-v1.90-linux-installer.run, assuming that it should open with bash.

  • Try using these commands (source):

    for 64-bit programs: sudo /lib64/ld-linux-x86-64.so.2 ./MPLABX-v1.90-linux-installer.run
    for 32-bit programs: sudo /lib/ld-linux.so.2 ./MPLABX-v1.90-linux-installer.run

  • You could create a small ext4 partition, place the file there and give it executable status

  • You could remount the partition this file is on and make all the files on it executable, see here

kiri
  • 28,986