ondar07
ondar07

Reputation: 93

How to update gcc in mingw32 on Ubuntu (14.04)?

I ran apt-get install mingw32, but gcc version is likely to be 4.2.

How to update to 4.6?

Upvotes: 0

Views: 288

Answers (1)

Amit Jaiswal
Amit Jaiswal

Reputation: 113

Download the one you want from the Automated Builds. To install a downloaded toolchain package, just untar it to a directory of your choice and add the toolchain executables to PATH.

To add toolchain to your Path

Edit .bashrc in your home directory and add the following line:

export PATH="/path/to/dir:$PATH"

You will need to source your .bashrc or logout/login (or restart the terminal) for the changes to take effect.

To source your .bashrc, simply type

$ source .bashrc

when in the home directory.

Also consider deleting other installation or modifying alternatives to avoid any conflicts.

Upvotes: 1

Related Questions