jewelry display wholesale near me How do I install the GCC compiler in the virtual machine Linux operating system?

jewelry display wholesale near me

5 thoughts on “jewelry display wholesale near me How do I install the GCC compiler in the virtual machine Linux operating system?”

  1. google wholesale jewelry 1. Download

    This on the GCC website (GCC.GNU/) or search through the Internet to find download resources. The latest version of GCC is 3.4.0. There are generally two forms available for downloading: GCC-3.4.0.TAR.GZ and GCC-3.4.0.tar.bz2, but the compression format is different, the content is exactly the same, one can be downloaded.

    2. Uncressing

    According to the compression format, select the corresponding method below (the following "%" indicates the command line prompt):
    n n n n n n n n n n n n n n n n n n n n n n R N% Tar XZVF GCC-3.4.0.tar.gz
    or
    % BZCAT GCC-3.0.bz2 | Tar XVF-

    The directory of GCC-3.4.0 is called the source directory, which is represented by $ {srcdir}. In the future, at the place where $ {srcdir} appears, it should be replaced with a real path. You can view the current path with the PWD command.

    The detailed GCC installation instructions in $ {srcdir}/install directory, you can use the browser to open index reading.

    3. Create the target directory

    The target directory (represented by $ {objdir}) is where the compilation results are used. GCC recommends that the compiled files should not be placed in the source directory $ {srcdir] (although this can be done), it is best to store it alone in another directory, and it cannot be a subdirectory of $ {srcdir}.

    . For example, you can build a target directory called GCC-Build (with source directory $ {srcdir} is the same level of directory):

    % mkdir GCC-BUILD r r
    % CD GCC-BUILD

    The operation below is mainly performed under the target directory $ {objdir}.

    4. Configuration

    The purpose of configuration is to determine where to install the GCC compiler ($ {Destdir}), what language to support, and specified other options. Among them, $ {Destdir} cannot be the same as $ {Objdir} or $ {srcdir} directory.

    The configuration is done by executing the configure by executing $ {srcdir}. Its command format is (remember to replace $ {Destdir} with your real path):

    % $ {srcdir}/configure -prefix = $ {Destdir} R n For example, if you want to install GCC 3.4.0 to /usr/local/gcc-3.4.0 directory, then $ {Destdir} means this path.

    On my machine, I configured this:

    % ../gcc-3.4.0/configure-prefix =/usr/local/gcc- 3.4.0-Enable-Threads = POSIX-Disable-Checking --Nable-LONG-LONG-Host = i386-RedHat-LINUX-With-System-ZLib-Languages ​​= C, C , Java

    In the GCC in the /usr/local/gcc-3.0 directory, support the C/C and Java language. For other options, see the help description provided by GCC.

    5. Compile

    % make

    This is a long process. It took more than 50 minutes on my machine (P4-1.6).

    6. Installation

    The command below to copy the compiled database file and other copies to the $ {Destdir} catalog (according to the path you set, you may need an administrator’s administrator. Permissions):

    % Make Install

    . At this point, the installation process of GCC 3.4.0 is completed.

    6. Other files of other settings

    gcc 3.4.0, including command files (such as GCC, G ), library files, etc. For example, the command file is placed in the BIN directory, the library file is under lib, and the header file is under include. Because the directory where the command file and the library file is located have not been included in the corresponding search path, it is necessary to make appropriate settings to find and use them smoothly.

    6.1 GCC, G , GCJ settings

    It to use GCC 3.4.0 GCC and other commands, the simple method is to put its path $ {Destdir}/ BIN is placed in the environment variable path. I do n’t use this method, but in the manner of symbolism. The advantage of this is that I can still use the original old version of the GCC compiler on the system.

    First, check the path of the original GCC:

    % who GCC

    bin/gcc. Therefore, the original GCC command is in the/usr/bin directory. We can make a symbol connection of GCC 3.4.0 GCC, G , GCJ and other commands in the/usr/bin directory:

    % cd/usr/bin
    % ln- s $ {Destdir}/Bin/GCC GCC34
    % ln -S $ {Destdir}/bin/g g 34
    % ln -S $ {Destdir}/bin/gcj gcj34

    , you can use GCC34, G 34, GCJ34 to call GCC 3.4.0 GCC, G , GCJ to complete the compilation of C, C Java programs. At the same time, GCC, G and other commands in the old version of GCC compilers can still be used.

    6.2 Settings of the path of the library

    In the $ {Destdir}/lib path to the environment variable ld_library_path, it is best to add it to the system configuration file so that this will not not, so This environment variable is set every time.

    . For example, if GCC 3.4.0 is installed in the /usr/local/gcc-3.0 directory, it can be executed directly on the command line or add it in the file/etc/profile under the rh Linux The following sentence:

    setenv ld_library_path /usr/local/gcc-3.4.0/lib:00_library_path n
    7. Test
    n (GCC34, G 34, etc.) Compiled your previous C and C programs to check whether the newly installed GCC compiler can work normally.

    8. You can delete or retain $ {srcdir} and $ {objdir} directory as needed.

    If it is Ubuntu or Fedora, you can install it directly in the source

  2. wholesale colombian jewelry If the Linux server can access the Internet, use the YUM command to install
    to install the GCC YUM Install GCC

    Install G YUM Install GCC-C
    n n If you are more complicated. It depends on the package one by one, and finally install the GCC
    rpm -ith kernel-headers-2.6.32-431.l686_64.rpm
    rpm -ith Glibc-Headers-2.12-1.132.x86_644444 .rpm
    rpm -IVH Glibc-Devel-2.12-1.132.EL686_64.rpm
    rpm -IVH Libgomp-4.4.7-4.EL686_64.rpm n
    rpm -IVHhhhhhhhhhhhhhhh PPL-0.10.2-11.el6.x86_64.rpm
    rpm -ith cloog-ppl-0.15.7-1.2.l686_64.rpm
    rpm -IVH MPFR-2.4.1-6.el6. x86_64.rpm
    rpm -IVH CPP-4.4.7-4.EL686_64.rpm
    rpm -IVH GCC-4.7-4.EL686_64.rpm

  3. wholesale kid jewelry Put in the installation disc, mount on the virtual machine (Mount -T ISO9660/DEV/CDROM/Media/Disk), and then CD/Media/Disk/Service, LS, find the installation package of GCC (C ), in its directory, in its directory Under RPM -IVO GCC-.

Leave a Comment