The version of GCC used in Ubuntu is different from the release version, and when compiling the Android system different versions are recommended to compile with different gcc, so can you change the system's GCC to suit the needs of the Android build environment? The answer is yes.Let's see what the GCC and g++ are for our system.Gcc-vThe information you can get is as followsGCC version 4.4.6 (Ubuntu/linaro 4.4.6-11ubuntu2)What if we want to use gcc4.5? First see if there is gcc4.5 installed,ls/
The next day of contact with Hadoop, the configuration of Hadoop to the environment also took two days, the process of their own configuration is written here, I hope to help you!I will use the text to share all the resources here, click to download, do not need to find a!Among them is "the Hadoop Technology Insider" This book, the first chapter describes this configuration process, but not detailed ~---------------Installing the JDK-------------------------------1.Download jdk1.6.0_452. Unzip t
Error: ISO C + + does not allow the initialization of a very static member within a classstarting today to learn C + + primer, when involved in the sales_item.h header file, there are some problems (and c++11 new features related), the current compiler version is gcc/g++ 4.6.3, so need to upgrade. You can use the PPA to upgrade to 4.8.1, as follows:sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get update; sudo apt-get install gcc-4.8 g++-4.8sudo update-
Install the JDK with CentOS today and find that when the installation is complete, enter the Java command to verify if the installation is successful.Usage:gij [OPTION] ... CLASS [ARGS] ...To invoke Class.main, orGij-jar [OPTION] ... Jarfile [ARGS] ...To execute a JAR fileTry ' gij--help ' for more information.Feel very strange, how to appear gij, in the online search error occurred because the Linux system is not the default point to the JDK version of the installation, so, to view the next[ema
Install the JDK with CentOS today and find that when the installation is complete, enter the Java command to verify if the installation is successful.Usage:gij [OPTION] ... CLASS [ARGS] ...To invoke Class.main, orGij-jar [OPTION] ... Jarfile [ARGS] ...To execute a JAR fileTry ' gij--help ' for more information.Feel very strange, how to appear gij, in the online search error occurred because the Linux system is not the default point to the JDK version of the installation, so, to view the next[ema
-alternatives -- install/usr/bin/Java/usr/lib/JVM/jdk1.6.0 _ 38/bin/Java 300Sudo Update-alternatives -- install/usr/bin/javac/usr/lib/JVM/jdk1.6.0 _ 38/bin/javac 300Sudo Update-alternatives -- install/usr/bin/Jar/usr/lib/JVM/jdk1.6.0 _ 38/bin/jar 300
After the three commands are executed, resources on the Internet can be automatically switched to jdk1.6.0 _ 38, b
Step 1: Download jdk-7-linux-i586.tar.gz
[Plain]
View plaincopy
Http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz wget-C
(Note: If the download fails, we recommend that you use thunder to download it and copy it to the Linux system .)Step 2: unzip and install
[Plain]
View plaincopy
Sudo tar zxvf./jdk-7-linux-i586.tar.gz-C/usr/lib/JVM
CD/usr/lib/JVM
Sudo MV jdk1.7.0/Java-7-sun
Step 3: Modify Environment Variables
[Plain]
View plaincopy
Vim ~ /. Bashrc
Add:[Plain]
Configure JDK 1.8.0 _ 25 in Ubuntu 14.04 and switch the version.
Configure jdk 1.8.0 _ 25 in Ubuntu 14.04. You can switch the version to jdk.
Decompress:
Sudo mkdir/usr/lib/jvm
Sudo tar zxvf/home/user name/Downloads/jdk-8u25-linux-i586.tar.gz-C/usr/lib/jvm
Modify the environment variable: // The environment variable is not configured after the test. After the configuration, the following command cannot be used to switch the version.
Test method: Hadoop-2.6.0 with jdk1.8.25 compilation will be wr
the Alternatives command to install JAVA
After the installation package is decompressed, you can use the alternatives command for installation. The alternatives command encapsulates chkconfig.
cd /opt/jdk1.8.0_72/alternatives --install /usr/bin/java java /opt/jdk1.8.0_72/bin/java 2alternatives --config javaThere are 3
to the logon page and enter your username and password registered on the Oracle website.
Step 3: Install Oracle JDK(1) create a java directory$ Sudo mkdir-p/usr/local/javaCopy the jdk-6u45-linux-x64.bin you downloaded to the/usr/local/java directory$ Cd/usr/local/java$ Sudo cp/home/bkjia/Downloads/jdk-6u45-linux-x64.bin.
(2) decompress the binfile$ Sudo chmod + x jdk-6u45-linux-x64.bin$ Sudo./jdk-6u45-linux-x64.bin$ Sudo rm-rf jdk-6u45-linux-x64.bin
Step 4: configure the JDK(1) Configure JAVA_H
Install Oracle JDK 14.04 on Ubuntu 1.8 LTS
(1) download JDK
Http://www.oracle.com/technetwork/cn/java/javase/downloads/index.html
(2) Extract
(3) create a jvm File
(4) Move to/usr/lib/jvm
(Note: If there is no jvm file, running this statement will automatically create the jvm file, but it will only put all the files in jdk1.8.0 _ 25 into the jvm, instead of placing the jdk1.8.0 _ 25 and its files in the jvm file, the two are different)
(5) set JDK Environment Variables
(Also in ~ /. Bashrc
you have not logged on, the system will go to the logon page and enter your username and password registered on the Oracle website.Step 3: Install Oracle JDK(1) create the java directory $ sudo mkdir-p/usr/local/java copy the jdk-6u45-linux-x64.bin you downloaded to the/usr/local/java directory $ cd/usr/local/java $ sudo cp/ home/dennis/Downloads/jdk-6u45-linux-x64.bin.(2) unzip the binfile $ sudo chmod + x jdk-6u45-linux-x64.bin $ sudo./jdk-6u45-linux-x64.bin $ sudo rm-rf jdk-6u45-linux-x64.bi
Step 1: Download the JDK of tar.gz,
Run the sudo tar zxvf./jdk's name.tar.gz-C and the path you want to specify.
Step 2: Modify JDK Permissions
Sudo chmod 766-r your JDK path
Step 3: Press CTRL + ALT + T to open the terminal
Step 4: Enter sudo gedit/etc/profile, the system will pop up the profile text file, and add the following code at the end
# Set Java environmentExport java_home = Your JDK pathExport jre_home =$ {java_home}/JREExport classpath =. :$ {java_home}/lib: 4 {jre_home}/libExport pa
1. Check the version and installed version
Dev03 @ dev03 :~ $ Ls/usr/bin/GCC *
/Usr/bin/GCC/usr/bin/gcc-4.5/usr/bin/gcc-4.6
If some versions are missing, install them directly:
Sudo apt-Get install gcc-4.5 g ++-4.5
Sudo apt-Get install gcc-4.4 g ++-4.4
2. view the G ++ GCC version.
G ++-V gcc-V
3. When the environment requires a specific version of GCC g ++, select
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.5 40sudo update
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.