Install Gcc Multilib Ubuntu 14.04
Contents
|
To install the gcc and g++ compilers, you will need the build-essential package. This will also install GNU make.
build-essential contains a list of packages which are essential for building Ubuntu packages including gcc compiler, make and other required tools.
Now, you should able to compile software using C / C++ compilers.
To install gcc-4.9-multilib just follow these instructions. × Are you having problems? You can always remove gcc-4.9-multilib again by following the instructions at this link. # run as root on ubuntu 14.04 # basic deps: apt-get install build-essential clang libgtk2.0-dev libnotify-dev gcc-multilib g-multilib libgnome-keyring-dev # node: apt-get install python-software-properties software-properties-common. I had this post hanging in my drafts on how I attempted to install a valid Python 2.7.9 runtime environment on Ubuntu 14.04 and make my own.deb package for easy re-deployment. Apt-get install -y gcc-multilib g-multilib libffi-dev libffi6 libffi6-dbg python-crypto python-mox3 python-pil python-ply libssl-dev zlib1g-dev libbz2-dev. Composer XE (aka version compiler versions 12.x and 13.x) prerequisites for Ubuntu Desktop, assuming that gcc and g are installed already: apt-get install build-essential apt-get install gcc-multilib apt-get install rpm apt-get install ia32-libs (only needed if you install the 32bit compiler) apt-get install. Gcc-4.8-multilib 4.8.4-2ubuntu114.04.4 is in ubuntu - trusty-security / main.This package's architecture is: amd64.
To install the manpages for c and c++ development, install the manpages-dev package.
Note that GNU's Java compiler is not the same as the one developed and distributed by Sun Microsystems, and will not provide Java to the firefox browser. For that, please see Java. To install gcj, the GNU Java compiler, install the following package: gcj.
gcj can be used to:
- compile .java files to bytecode (.class files).
- compile .java files to a linux-executable.
To install the GNU Java bytecode interpreter, you need the gij package.
To have gcj compile to executables, install libgcj6-dev (otherwise an error during compilation occurs: libgcj.spec: No such file or directory). Use synaptic to install libgcj6-dev.
To install the GNU Fortran 77 compiler - g77, you need the g77 package.
To install the GNU Fortran 95 compiler - gfortran, the package is: gfortran.
To install autoconf and automake, you need the autoconf and automake packages.
Apt-get will tell you to explicitly choose a version of automake. If, for example, you decide to use automake1.9, you need to specify the version, such as the automake1.9 package.
The GNU compilers have options that allow them to create 32-bit object and executable files on 64-bit operating systems, and vica versa. The critical options are -m32 (to build 32-bit) and -m64 (to build 64-bit).
These options will be present when you install the compiler of your choice. However, they won't actually work unless you install several additional packages.
The first thing you will need is the multilib package for the compiler you are using. For example, to add multilib support to the default version of g++ (4.1 in gutsy), you would install {g++-multilib}. For 4.2, you would need {g++-4.2-multilib}.
The multilib packages are compiler runtime packages. Now, you need 32-bit (or 64-bit) versions of whatever libraries you need to link your application program. 64-bit packages have names that start with lib64. Install these on 32-bit systems to support 64-bit builds. 32-bit packages have names that start with lib32. Install these on 64-bit systems to support 32-bit builds. Whatever else you are doing, you will probably need {libNNgcc1}. If you are using g++, you will need {libNNstdc++6}.
Using the Intel compilers for C, C++, and FORTRAN requires installing 32-bit libraries for Ubuntu if you are using a 64-bit system. Please ensure you have these packages:
gcc, build-essential, libc6-dev (see above)
ia32-libs, g++-multilib, and libc6-dev-i386 (for 64-bit systems)
32-bit packages starting with lib32 (for 64-bit systems)
alien and rpm for installing the RPM packages that Intel distributes.
libstdc++5 and libstdc++5-3.3-dev for good measure because Intel's builds depend on these runtimes.
before you attempt installing the Intel Compiler Suite.
Get the License Number and Extract to a path without spaces
Ensure that you have obtained the license number for your installation and extracted the downloaded installation archive into a path that does not contain any spaces. This last statement is utterly important. The installer script that comes with the package has a bug that does not allow you to install the compiler suite if you have any spaces in the installer script path.
On 64-bit systems you may also need to issue these commands
because the chklic_32_64 license checking utility from Intel dynamically links to these libraries.
Once you're done preparing to install the compiler suite, it's time to go to the installer directory and install the compiler (be sure to also read through accompanying documentation; e.g., README, INSTALL.txt):
Run the Installation Script
After installing the compiler, you need to tell your shell the location of these executables by adding their parent paths to the PATH environment variable.
Edit /etc/bash.bashrc to add the installation path to the PATH environment variable
Where 10.1.012 is the version of the compiler suite installed.
For more information: Intel Compiler Suite 10.x support page for Ubuntu Linux
Install script for X11 development libs
NS3 is a discrete event network simulator, which is widely use for the research in the network domain. The advantage of using NS3 instead of NS2 is that we can code using c++, while the prior one is based on TCL. In this post we will cover the installation of this on Ubuntu 14.04.
Step 1: Installation of supported packages and library.
- gcc and g++ compiler
- Python development environment
- qt frame work
- Mercurial for repository management
- Bazaar revision control for python binding
- Compilation packages
- Debugging tools, valgrind for memory debugging and leaking
- gsl is gnu scientific library for mathematical function in c,c++
- Bison is parser generator in gnu project
- Tcpdump is network packet capture tools, generally installed as by default.
- sqllite for database support
- XML library support
- GTK libraries which is use for creating graphical user interface.
- Linux container, operating system based virtualization. Vtun is virtual tunnel
- uncrustify use for source code modification
- imagemagic for editing image and texlive for documentation
- python libraries for graph
- c++ libraries
- Message passing interface use for high performance computing.
Now the next step is downloading the packages from repository.
G++ Multilib
Step 2:
- Create a directory for downloading repository files
- Clone the files to this directory
Step 3: You will find ns-3-allinone directory move to this directory and run the python file to download.
Once download is complete you will find below contain in your directory
Step 4: This is time to compile and build the package. run build python file
Step 5: Configure it using waf. So change the directory to ns-3-dev
Gcc Disable Multilib
Step 6: Now check your installation by running python test file
Install Gcc Multilib
if you find below message it means your installation is successful. You can start programing