First step: Using which gcc, which g++, and which gfortran to view the location, my display results are:/usr/bin/gcc;/usr/bin/g++ and/usr/bin/gfortranPart Two: First, take a look at what version of GCC you have installed in your Ubuntu command: ls/usr/bin/gcc*-L;The gcc/g++ in Ubuntu 12.04 are all 4.6, and we downgrade the system to 4.4 by default.$sudo Apt-get Install gcc-4.4$sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.4 40(Here "
Download eclipse-cpp-neon-2-linux-gtk-x86_ from Http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/neon2 64.tar.gz, unzip and install to directory/opt/, run/opt/eclipse/eclipse, error:It looks like Java 1.8 is needed.To view the Java version:$ java-versionJava Version "1.7.0_111"OpenJDK Runtime Environment (IcedTea 2.6.7) (7U111-2.6.7-2~DEB8U1)OpenJDK 64-bit Server VM (build 24.111-b01, Mixed mode)Find out where the Java command is:$ which Java/usr/bin/java$ Ll/usr/bin/javalrwxr
1, to the Sun's official website downloadIf the path cannot be found, please Baidu "Oracle technology Networkjavajava SEDownloads"Select Accept License and select the JDK download that fits your model.2, unzip the file, modify the filename$ sudo mkdir/usr/lib/jvm$ sudo tar zxvf jdk-7u21-linux-i586.tar.gz-c/usr/lib/jvm$ cd/usr/lib/jvm$ sudo mv jdk1.7.0_21 Java3. Add Environment variables$ sudo vim ~/.BASHRCAdd the following:Export Java_home=/usr/lib/jvm/java export JRE_HOME=${JAVA_HOME}/JRE expo
Tags: get error image. com failed highlight information path pictureThe general problem is this, not PHP installation failed, that is, MySQL installation failed, or Nginx installation failedis basically a fancy error. Later in the military elder brother's forum found this post: https://bbs.vpser.net/viewthread.php?tid=16700highlight=ubuntu17.10In simple terms, the GCC version is a problem.I thought about it--switch version:Let's see what the GCC and g++ are for our system.gcc-vThe information yo
format for installing Java 6 is as follows:
Java 6 (for Android 2.1 + ):
$ Sudo add-Apt-repository "Deb http://archive.canonical.com/lucid partner"
$ Sudo add-Apt-repository "Deb-Src http://archive.canonical.com/ubuntu lucid partner"
$ Sudo apt-Get update
$ Sudo apt-Get install sun-java6-jdk
If you want to switch to the Java version (when multiple Java versions are installed), enter the following command:
Sudo Update-alternatives -- config Java
Sudo
As we all know, GCC does not support "make Uninstall ". A recommended installation method is to install GCC in a path you specify. When you do not need a GCC version number, you only need to remove the corresponding version number.
If you already have an old version number in your system, the simplest method is:
1) join? Personal package archive in the repositories
2. repositoris)
3) upgrade procedure
sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updateJoin? New Ppa (peronal
Step 1: Check the version and installed version
Lee @ Lee :~ $ Ls/usr/bin/GCC *
/Usr/bin/GCC/usr/bin/gcc-4.5/usr/bin/gcc-4.6
If 4.5 is missing, install it.
Sudo apt-Get install gcc-4.5 g ++-4.5
G ++-V
Gcc-V
Step 2: Add options
Sudo Update-alternatives -- install/usr/bin/GCC gcc/usr/bin/gcc-4.5 40
Sudo Update-alternatives -- install/usr/bin/GCC gcc/usr/bin/gcc-4.6 30
Sudo Update-
=.: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib
Next
# Source/root/. bashrc switch to your user and then under source.# Echo $ JAVA_HOME/Usr/java/java7
If openjdk is not installed, enter
#/Usr/java/java7/bin/java-version
Now let's start the link. add to the bin of the system and use the update-alternatives command to maintain the soft connection of the system. update this command to let the system know which command to use. the last parameter is priority. h
Switch GCC, G ++, and gfortran versions in Ubuntu
Step 1: use which gcc, which g ++, and which gfortran to view the location. My result is/usr/bin/gcc; /usr/bin/g ++ and/usr/bin/gfortran
Part 2: first, let's take a look at the gcc commands installed in your Ubuntu: ls/usr/bin/gcc *-l;
Gcc/g ++ in ubuntu 12.04 is 4.6. We will downgrade the default system to 4.4.
$ Sudo apt-get install gcc-4.4
$ Sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gc
may have the default JDK, such as openjdk, the following work is required to set the installed JDK to the default JDK Version. Run the code: [plain] sudo update-alternatives -- install/usr/bin/java/usr/lib/jvm/java-7-sun/bin/java 300 sudo update-alternatives -- install/ usr/bin/javac/usr/lib/jvm/java-7-sun/bin/javac 300 sudo update-alternatives -- install/usr/bi
current shell then uses SSH to link localhost without having to enter a password.$ ssh localhostInstalling Java$ java -versionIf this command can be correctly viewed in Java version then Java has been fighting for installation, if not, be sure to install Java first.
step1: Download java (jdk-*u**-os-x64.tar.gz) here.
SETP2: Switch to the folder where Java is located and unzip.
$ cd Downloads/ $ tar zxf jdk-7u71-linux-x64.gz $ ls jdk1.7.0_71 jdk-7u71-linux-x64.
step3
When configuring Hadoop, there is no JDK found when you format HadoopI used Red Hat is 32-bit, no ready-made 32-bit, hit Java, found that the machine has Java, and found a bit of its locationFound jdk-1.6.0.which Java[email protected] hadoop-1.1.2]# which Java/usr/bin/java[Email protected] hadoop-1.1.2]# Ls/usr/bin/java/usr/bin/java[Email protected] hadoop-1.1.2]# ls-l/usr/bin/javalrwxrwxrwx. 1 root root June 03:00/usr/bin/java-/etc/alternatives/java[
This article was reproduced from: http://blog.csdn.net/lincyang/article/details/42024565Android L recommended using the JDK7 compiler, which is the natural evolution of the law, just like 4 years ago to compile Android 1.6 needs to use JDK5.Multiple versions of the JDK can coexist, and you can switch them at any time using the Update-alternatives tool. The procedures for installing OPENJDK and Oracle JDK (Sun) and switching versions are described belo
reduce Ubuntu Central GCC and g++ version ofThe gcc/g++ in Ubuntu 12.04 are all 4.6, dropping it to 4.4.The procedure is as follows:One, reduce the GCC version1. $sudo Apt-get Install gcc-4.42, $sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.4 40 (where "40" is the priority, the higher the value the higher the priority)3, $sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.6 60
in the configuration Hadoop is, in the format of Hadoop, there is no JDK found I used CENTOS7 is 64 bit, found that the machine has Java, looked for its location found the JDK-1.7.0_75which java[[email protected] Hadoop-1.1.2]# which Java/usr/bin/Java[[email protected] Hadoop-1.1.2]# ls/usr/bin/Java/usr/bin/Java[[email protected] Hadoop-1.1.2]# ls-l/usr/bin/javalrwxrwxrwx.1Root root AJune - Geneva:xx/usr/bin/java-/etc/alternatives/Java[[email protecte
安装环境:ubuntu14.04。JDK不只Oracle一家,但出于习惯问题,我还是选择安装Oracle的JDK。安装方法有两种,一种是通过ppa安装自动配置环境,另一种是下载压缩包解压后自己配置环境。第一种方法比较省事,只是有一个前提:必须上网。第二种方法稍微麻烦一些,有些像在Windows的安装配置。1 Installing using the PPA source method1.1 Adding PPAsudo add-apt-repository Ppa:webupd8team/javasudo apt-get update1.2 Installing Oracle-java-installersudo apt-get install Oracle-java8-installerThe installer will prompt you to agree to Oracle's terms of service, select OK, and then select Yes (note that you want to use the keyboard.) )。1.3 Set
Original address: Github.com/kdn251/interviews translations from: Nuggets translation Program Translator: Wang invited the moon Bear Reviewer: phxnirvana, square root Three this link is used to see if there is a difference between this translation and the English version (if you don't see README.MD Change, that means the translation document is up to date. Interviews
Personal Guide for interviewing software engineering techniques.
Maintainer-kevin Naughton Jr.Other language versions中文版DirectoryO
Continuum.io. Anaconda will pack up most of the things you might use later. The main disadvantage of adopting this approach is that you still need to wait for continuum to update the Anaconda package even though there may already be updates to the underlying libraries available. Of course, if you are a beginner, this should be fine.
If you encounter any problems during the installation process, you can find more detailed installation instructions in different operating systems here.
Step 2: Lea
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.