Installing MPLAB X IDE 5.25 on 64-bit Ubuntu 19.04

While I love seeing companies provide Linux version of their software, it still annoys me when they do it as lazily as possible. For example Microchip not only doesn't provide repository for their software, making you download and install every version separately, but they also don't provide up-to-date instructions. Their section describing Ubuntu 14.04 and above simply doesn't work.

To install MPLAB X on newer Ubuntu one must first explicitly add architecture:

Terminal
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt install libc6:i386 libx11-6:i386 libxext6:i386 libstdc++6:i386 libexpat1:i386

Only once those are up you can proceed installing MPLAB IDE X itself:

Terminal
tar -xvf MPLABX-v*-linux-installer.tar
chmod +x MPLABX-v*-linux-installer.sh
sudo ./MPLABX-v*-linux-installer.sh

Of course, installing compiler follows (XC8 in this case):

Terminal
chmod u+x xc8-v*-full-install-linux-installer.run
sudo ./xc8-v*-full-install-linux-installer.run

And now MPLAB X IDE is installed.


PS: I won't even go into the need for 32-bit compatibility libraries in 2019...

15 thoughts to “Installing MPLAB X IDE 5.25 on 64-bit Ubuntu 19.04”

  1. It works! :-D
    Thank you very much, it’s a great help for a greenhorn like me.

  2. Thank you very much.

    It’s direct, simple & final direction to install MPLAB on UBUNTU.

    With Metta,
    Dhanaji.

    1. First I am still a newbie to Linux. I am using a 64bit version of Ubuntu Studio 20.04. I am trying to download and install MPLAB X IDE. I tried using all the preparatory downloads suggested in this article above. I get several messages, here is a sample :
      E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.28-0ubuntu1_i386.deb 404 Not Found [IP: 91.189.91.38 80]
      E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libb/libbsd/libbsd0_0.9.1-1_i386.deb 404 Not Found [IP: 91.189.91.38 80]
      E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb1_1.13.1-1_i386.deb 404 Not Found [IP: 91.189.91.38 80]
      E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-6_1.6.7-1_i386.deb 404 Not Found [IP: 91.189.91.38 80]
      E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/expat/libexpat1_2.2.6-1ubuntu0.18.10_i386.deb 404 Not Found [IP: 91.189.91.38 80]
      E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libu/libunistring/libunistring2_0.9.10-1ubuntu1.18.10.1_i386.deb 404 Not Found [IP: 91.189.91.38 80]
      E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libi/libidn2/libidn2-0_2.0.5-1_i386.deb 404 Not Found [IP: 91.189.91.38 80]
      E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-8/libstdc++6_8.3.0-6ubuntu1~18.10.1_i386.deb 404 Not Found [IP: 91.189.91.38 80]
      E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
      I tried using –fix-missing after each attempt, it gave me a different response but, still failed. What am I doing wrong. Thanks in advance….Godfrey P.S. Like I said I am a ‘newbie’ I am 72 years old and am trying to get away from Microsoft so, do not assume that I know what to do next . . . .

  3. Thanks for sharing!
    It worked perfectly with MPLABX IDE v5.40 on my Linux Mint 18.2 (KDE Edition, Ubuntu 16.04.1 based).

    Regards.

  4. Top Work !

    can you email this to microchip so they can put it in the readme file plz ;)

  5. His work was the best reference for installing on Linux that I found. Thank you!

  6. I’m relatively new to both using MPLAB X IDE and installing (on Ubuntu 20.04lts) the tar files from Microchip’s archive site, found at https://www.microchip.com/development-tools/pic-and-dspic-downloads-archive.
    I’ve downloaded the older archived versions of IDE and then followed the Microchip Developer site instructions, found at https://microchipdeveloper.com/mplabx:installation and then select the Linux install instructions
    to install the MPLAB X IDE. I’ve installed MPLAB X IDE v5.05; v5.05 and v5.35 using the tar packages from the archive site. My old laptop is a Samsung R522 with the original Windows 7 Home Premium installed. Ive then partitioned the HDD for Ubuntu installation and currently running 20.04lts. I’ve not yet used MPLAB X IDE much on the Ubuntu partition, I had to first get going on Windows and follow the tutorials from Kanda.com for the starter kits for PIC and AVR for Assembler projects… I still have a way to go but now am working on using the Ubuntu version of IDE to run and test the tutorials on a safe OS…

  7. I’m having to install the dependencies mentioned on link https://microchipdeveloper.com/mplabx:installation
    and found at https://microchip.wikidot.com/install:mplabx-lin64 for the installation of MPLAB X IDE version 5.05
    I do not recall having to do this for version 5.35. Reason I’m loading the v5.05 IDE is to be able to compile the Assembler tutorials which has the MPASM assembler installed with 5.05 I found that v5.35 run on Windows did not have the MPASM so could not build assembler code with the XC8 compiler. I know XC8 can work with assembler code, apparently there are two techniques to use assembler code if using the XC8 compiler but I’ve not delved into this.

  8. I try this method on Kali Linux 2020.4, but it didn’t work. when running “Sudo ./MPLABX-v5.45-Linux-installer.sh” it shows some error like this =”Verifying archive integrity…Error in MD5 checksums: 9eb84837c501a22466bc88f555d809f9 is different from ee7d03612df5f94d3c25088bef8f7392

    please help me to fix this…

    1. If the checksums don’t match, I believe it could mean the download file has been tampered with, best try another download location and advise the mirror site of the potential file integrity issue. I’ve usually taken the files directly from Microchip’s archives or latest releases which have the SHA256 info which I check once download has completed. I’m not sure if this SHA256 info changes if file is saved locally and moved around as needed.

  9. Hi, I’m playing around with this in my retirement. And have just spent two days on and off trying to install mplabx on my linux machine. My linux knowledge is very patchy still but increasing slowly. When I found your website and read this page, some of the mystery cleared up and I now have mplab installed. Weather it works is another matter. If I can I’ll let you know the results.
    Thanks for being there,
    Paul

  10. My linux knowledge is also not that good. But I noticed that the names are different now.
    For XC8 package:
    chmod u+x xc8-v2.32-full-install-linux-x64-installer.run
    sudo ./xc8-v2.32-full-install-linux-x64-installer.run
    Thank you.

  11. Pingback: Mplabx 6 - Newbjav

Leave a Reply

Your email address will not be published. Required fields are marked *