Microchip’s MPLAB IDE in Ubuntu Gusty

Do you ever using Linux to develop PIC application? Unfortunately, Microchip don’t port their MPLAB to Linux platform in near future. But you still can use “WINE” to install MPLAB IDE on my Gusty machine, you can follow this guide for adding the APT repository. To install WINE on your machine:

> sudo apt-get update
> sudo apt-get install wine

next you will need IE6, go to this site download IEs4Linux and run the script:

> tar zxf ies4linux-<version>.tar.gz
> cd ies4linux-<version>
> ./ies4linux

EDIT: Adding a missing step which point out by Arpad Telse.

IEs4Linux will create its own WINEPREFILE under ~/.ies4linux/ie6, so you need to use this path as your WINEPREFIX when you install MPLAB. You either can replace your ~/.wine directory with ~/.ies4linux/ie6 or adding WINEPREFIX=”/home/<user>/.ies4linux/ie6″ in front of every wine command you enter, WINEPREFIX need a absolute to work. For example:

> WINEPREFIX=”/home/<user>/.ies4linux/ie6″ wincfg

From now on, I assume you have replace your ~/.wine with ~/.ies4linux/ie6.

You have to check the windows version of wine is set to windows 98:

> winecfg

winecfg

Next click on the “Libraries” tab to change DLL overrides:

"*msiexec.exe"="native"
"msi"="native"
"ole2"="native"
"ole32"="native, builtin"
"olepro32"="native, builtin"
"rpcrt4"="native"
"wininet"="native"

then run the installer

> wine /path/to/mplabinstaller/Install_MPLAB_v8.exe

The installer will start and pick any things you needed.

MPLAB installed

Finally MPLAB IDE launched:

MPLAB running

3 Responses to “Microchip’s MPLAB IDE in Ubuntu Gusty”

  1. Linux and Electronics » Blog Archive » Install Microsoft Office 2003 using WINE Says:

    [...] « Microchip’s MPLAB IDE in Gusty [...]

  2. Arpad Telse Says:

    Hi. I made it as you said but I have the following error on the screen. I tried with different versions of wine but the output is the same. When I want to install MPLAB appears the following errors. Please help me !
    Thanks
    Arpi

    > wine ./Desktop/mplab/Install_MPLAB_v8.exe
    err:module:import_dll Library rpcrt4.dll (which is needed by L”c:\\windows\\system32\\ole32.dll”) not found
    err:module:import_dll Library ole32.dll (which is needed by L”Z:\\home\\atekse\\Desktop\\mplab\\Install_MPLAB_v8.exe”) not found
    err:module:import_dll Library rpcrt4.dll (which is needed by L”c:\\windows\\system32\\ole32.dll”) not found
    err:module:import_dll Library ole32.dll (which is needed by L”c:\\windows\\system32\\oleaut32.dll”) not found
    err:module:import_dll Library rpcrt4.dll (which is needed by L”c:\\windows\\system32\\oleaut32.dll”) not found
    err:module:import_dll Library OLEAUT32.dll (which is needed by L”Z:\\home\\atekse\\Desktop\\mplab\\Install_MPLAB_v8.exe”) not found
    err:module:LdrInitializeThunk Main exe initialization for L”Z:\\home\\atekse\\Desktop\\mplab\\Install_MPLAB_v8.exe” failed, status c0000135

  3. liewsheng Says:

    hi, I think I miss some step. You will need to replace your default .wine directory with directory created by IEs4Linux:

    cp -r ~/.ies4linux/ie6 ~/.wine

    remember to delete the ~/.wine first if it already exist (else it will copy to ~/.wine, replace cp with mv if you don’t want ~/.ies4linux/ie6 anymore). Or you can put WINEPREFIX=”/home/user/.ies4linux/ie6″ in front the command you enter, for example:

    WINEPREFIX=”/home/user/.ies4linux/ie6″ winecfg

    Hope this will you solve the problem.

Leave a Reply