Several recent projects are written with c++11, the more you feel strong, a lot of new features also hope that Java can be integrated into it. Plan to have time to write a c++11 of the use of the experience, but C + + is too profound, there are several great features have not mastered. Now try to use c++11 on native Ubuntu, find several methods, think the following method is the quickest.First, in order to use the C++11,GCC version must be above 4.7. Of course, if you do not use all the features
to edit ~/.bashrc the file, using VI, Gedit or VIM. Copy the following to the end of the file.export JAVA_HOME=/usr/lib/java/jdk1.8.0_45export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/libexport PATH=${JAVA_HOME}/bin:$PATHAfter saving, return to terminal, source a bit:source ~/.bashrcThe following may or may not be performed.To configure the default JDK version:Because Ubuntu has a default JDK version built in, we can replace the original OPENJDK after we configur
Installation in the ubuntu10.10 system, the development environment needs, sometimes need to install JDK5 and JDK6, how to achieve the switch between the two? Use the Update-alternativs command to complete this taskSpecific as follows:1. Check to see if the JDK is in the Ubuntu JDK menu:Java code
Update-alternatives--config Java
Update-alternatives--config Javac
2. If not in the menu can b
installation of Ubuntu, first install make
sudo apt-get install make
Download source
sudo wget https://downloads.php.net/~ab/php-7.0.2RC1.tar.gz
sudo tar-zvxf php-7.0.2rc1.tar.gz
CD Php-7.0.2rc1
According to Brother Bird, install gcc4.8
With a new compiler, GCC is recommended for more than 4.8 because only gcc 4.8 or more PHP will open the global Register for Oplineand Execute_data support, this will bring about 5% performance promotion (Wordpres QPS angle measure) actually GCC4.8 Previous
-downloads-javase6-419409.html, select Java SE development Kit 6u45, and then click Accept on the newly opened pageAccept License Agreement". Once accepted, select "Jdk-6u45-linux-x64.bin" to download. If you are not logged in, the system will first go to the login page and enter the username and password you registered with the Oracle website.Step three: Install Oracle JDK(1) Create Java directory $ sudo mkdir-p/usr/local/java copy your downloaded Jdk-6u45-linux-x64.bin to/usr/local/java direct
/downloads/ java-archive-downloads-javase6-419409.html, select Java SE development Kit 6u45, and then click Accept on the newly opened pageAccept License Agreement". After acceptance. Select "Jdk-6u45-linux-x64.bin" to download. Assuming you are not logged in, the system will first go to the login page and enter your username and password on the Oracle site. Step three: Install Oracle JDK(1) Create Java folder $ sudo mkdir-p/usr/local/java copy your downloaded Jdk-6u45-linux-x64.bin to/usr/local
1. Go to Oracle official website: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Download JDK version, such as: jdk-8u171-linux-x64.tar.gz2. Sudo tar-zxf jdk-8u171-linux-x64.tar.gz/usr/local, unzip the JDK into/usr/local3. Set environment variables to add the following environment variables in. ZSHRC (zsh) or/etc/profile (bash):Export java_home=/usr/local/jdk1.8.0_171Export Jre_home= $JAVA _home/jreExport classpath=.: $JAVA _home/lib: $JRE _home/libExport pat
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/
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.