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-
there is openjdk, so, in order to make the default use of the JDK we installed, but also to do the following work.Perform:sudo update-alternatives--install/usr/bin/java Java ~/abc/jdk1.6.0_45/bin/java 300sudo update-alternatives--install/usr/bin/javac javac ~/abc/jdk1.6.0_45/bin/javac 300This step adds our installed JDK to the Java menu.Then execute:sudo update-alterna
The default GCC version in Ubuntu 12.04 is 4.6. But this version will be on the road when compiling Android 4.0 source code, the following is the method of installing and setting up GCC4.4.The first method:Install GCC 4.4First, install GCC 4.4 (and friends):apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilibSet 4.4 To is the defaultThen set 4.4 to is higher priority than 4.6:update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4
Install Hadoop in Linux (pseudo distribution mode) before writing: when installing Hadoop in Linux, pay attention to permission issues and grant hadoop permissions to non-root users. This article does not cover how to create a new user in Linux. Step 1: Install JDK1. download java. sun. com2. decompress the tar.gz file tar-xzvf jdk-7u17-linux-x64.tar.gz3. move the extracted folder to the/usr/local/jdk-1.7 directory mv/usr/local/src/jdk1.7.0 _ 17/usr/local/jdk-1.74. modify profilevi/etc/profile a
Install JDK 1.6 in Ubuntu and set it to the default JDK 1. download the Liunx JDK in Windows, my jdk-6u43-linux-i586.bin2. upload JDK to Ubuntu3. manually install JDK through secureCRT (I installed under/usr/local/bin/jdk1.6.0 _ 43): First modify the permission sudo chmod u + x jdk-6u43-linux-i586.bin to install sudo-s. /jdk-6u43-linux-i586.bin4. configure the environment variable to open the profile file sudo nano/etc/profile and add # author ylchou # date 2013-06-23export JAVA_HOME =/usr/local
Ubuntu uses different versions of gccubuntu system different versions have different gcc, such as ubuntu10.04 default gcc version is gcc-4.4.1, ubuntu10.10gcc default version is gcc-4.4.5. but in actual use, because of cross-compilation or other specific requirements, we...
Ubuntu uses gcc of different versionsDifferent versions of ubuntu have different gcc, such as ubuntu 10.04 default gcc version is gcc-4.4.1, ubuntu 10.10gcc default version is gcc-4.4.5.However, in actual use, we want to use
Ubuntu delete openjdk install SunJDK1. download the installation package to the official website: jdk-7-linux-i586.tar.gz2. create the installation directory: sudomkdir/usr/lib/jvm3. decompress: tarzxvf. /jdk-7-linux-i586.tar.gz-C/usr/lib/jvm4. set the environment variable :... ubuntu delete openjdk install Sun JDK 1. download the installation package to the official website: jdk-7-linux-i586.tar.gz2. create the installation directory: sudo mkdir/usr/lib/jvm3. decompress: tar zxvf. /jdk-7-linux-
Ubuntu14.04 install JDK and ubuntu14.04jdk
Download from Sun's official website
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Select accept license, and then select JDK download suitable for your model.
Decompress the file and modify the file name.
sudo mkdir /usr/lib/jvmsudo tar zxvf jdk-8u11-linux-i586.tar.gz -C /usr/lib/jvmcd /usr/lib/jvmsudo mv jdk1.8.0_11 java
Add Environment Variables
sudo vim ~/.bashrc
Add the following content
export JAVA_HOME=/usr
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[email protected] ~]# which Java/usr/bin/java[email protected] ~]# ls/usr/bin/java-llrwxrwxrwx. 1 root root 22 September 11:37/usr/bin/java-/etc/alternatives/java[email protected] ~]# Ll/etc/alternatives/javalrwxrwxrwx. 1 root root 35 September 11:37/etc/
JVM and rename them to the Java folder$ sudo MKDIR/USR/LIB/JVM$ sudo tar zxvf jdk-8u25-linux-i586.tar.gz-c/USR/LIB/JVM$ CD/USR/LIB/JVM$ sudo mv jdk1.8.0_25 Java2. Add an environment variable (~ represents the root directory of the current user)$ sudo vi ~/.BASHRCAdd the following environment variable configuration content in the tail line:Export Java_home=/usr/lib/jvm/javaExport JRE_HOME=${JAVA_HOME}/JREExport Classpath=.:${java_home}/lib:${jre_home}/libExport Path=${java_home}/bin: $PATH3. Con
Compile android source code 3 --- install JDK 6 on ubuntuFor Android 2.3 and later versions, JDK 6, that is, JDK 1.6, must be used instead of copying files to/urs/lib/jvm.
Cd download
Sudo su
Sudo cp jdk-6u45-linux-x64.bin/usr/lib/jvm2. jdk-6u45-linux-x64.bin File Installation
# Chmod 777 jdk-6u45-linux-x64.bin grants the current user permission to execute#. Jdk-6u45-linux-x64.bin.bin3. Change the environment variable 4. Configure the default JDK version
Sudo 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.