CC and GCC in Linux
Zhou yinhui
In Linux, CC will be seen later, and GCC will be seen later, which is a bit messy. Are they the same thing? What is the difference?
In two parts:
First, if the scope of discussion is between UNIX and Linux, Then CC and GCC are not the same thing. CC from UNIXC LanguageCompiler, short for C compiler. GCC comes from the Linux world and is short for GNU Compiler Collection. Note that this is a set of compilers, not just C or C ++.
Secondly, if t
Install JDK 1.6 in Ubuntu and set it as the default JDK. download the Liunx JDK in Windows, and I will download the jdk-6u43-linux-i586.bin2. upload JDK to Ubuntu3. manually install JDK through secureCRT (I installed JDK under/usr/local/bin/jdk1.6.0 _ 43): repair first... 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
source/etc/profile for one time)
Javac java = version confirmation
// This setting applies to a single user
Cd/home/{user's home directory}
Vim. bashrc
Add the following statement at the end of the bashrc file:
Export JAVA_HOME =/usr/local/{jdk path}
Export JRE_HOME =/usr/local/{jdk path}/jre
Export PATH = $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin: $ PATH
Export CLASSPATH =.: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/dt. jar
2. install myeclipse
Download the run file of myeclise for linux from the
1, first uninstall the server's own JDK package# java-version #查看服务器是否安装过jdkJava Version "1.6.0_17"OpenJDK Runtime Environment (IcedTea6 1.7.4) (rhel-1.21.b17.el6-i386)OpenJDK Client VM (build 14.0-b16, Mixed mode)# Rpm-qa |grep gcj #查看服务器安装的jdk软件包信息libgcj-4.4.4-13.el6.i686java-1.5.0-gcj-1.5.0.0-29.1.el6.i686# rpm-e java-1.5.0-gcj-1.5.0.0-29.1.el6.i686 #卸载软件包2, to the Sun's official website downloadHttp://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.htmlSelect Accept L
After centos is installed, openjdk is used by default. We found that the image of the app verification code we developed is displayed incorrectly. We checked that the image interface is different from that of Sun JDK, we usually use Sun JDK for development in windows. Therefore, we must replace Sun JDK. Generally, we may need to delete open JDK. I checked it online and found a new method, use alternatives to convert the Java version. The specific meth
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 other gcc compilers because of cross-compilation or other specific requirements. For example, if I want to use gcc-4.3 in ubuntu 10.10, what should I do?First open the new software manager, enter gcc in it, find the gcc-4.3 and g ++-4.3, and then select:
Enter the following
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/jvmsudomv jdk1.8.0_11 java
Add Environment Variables
sudo vim ~/.bashrc
Add the following content
export JAVA_HOME=/usr/li
original link: http://blog.csdn.net/yuxiangyunei/article/details/45365235Environment:Ubuntu:ubuntu-15.04-desktop-amd64vmware:vmware-workstation-full-11.1.0-2496824,1f04z-6d111-7z029-av0q4-3aeh8android:andro Id-5.1.0_r3One, Initializing a Build environmentOpen Terminal to enter the following command, open by: Ctrl+alt+tYou can also open the terminal by right-clicking the desktop. 1.Installing the JDK
$ sudo apt-get update
$ sudo apt-get install OPENJDK-7-JDKThe following has not been
Finally, the complete implementation of C ++ 11 GCC 4.8.1.
Upgrade your system.
The following steps can be performed to install GCC 4.8.1 in Ubuntu 13.04,
Sudo add-apt-repository ppa: ubuntu-toolchain-r/testSudo update-alternatives -- remove-all gccSudo update-alternatives -- remove-all g ++Sudo apt-get install gcc-4.8Sudo apt-get install g ++-4.8Sudo update-alternative
, add the following at the endExport Java_home=/usr/lib/jvm/java7Export JRE_HOME=${JAVA_HOME}/JREExport Classpath=.:${java_home}/lib:${jre_home}/libExport Path=${java_home}/bin: $PATH# Source/etc/profile #使配置文件立即生效Since there may be a default version of the JDK in the system, the following work will be done to set up our installed JDK as the default JDK version.Update-alternatives--install/usr/bin/java Java/usr/lib/jvm/java7/bin/java 300Update-
variables# Cp/etc/profile/etc/profile.bak #备份# Vi/etc/profile #编辑, add the following at the endExport Java_home=/usr/lib/jvm/java7Export JRE_HOME=${JAVA_HOME}/JREExport Classpath=.:${java_home}/lib:${jre_home}/libExport Path=${java_home}/bin: $PATH# Source/etc/profile #使配置文件立即生效Since there may be a default version of the JDK in the system, the following work will be done to set up our installed JDK as the default JDK version.Update-alternatives--inst
Moving Hadoop the next day. Construction Hadoop The environment also took two days to write the process of its own configuration here, I hope to help!I will use the text of all the resources are shared here, click to download, do not need to find a!There is a book on the inside of Hadoop technology. The first chapter describes the configuration process, but not specific ~---------------Installing the JDK-------------------------------1.Download jdk1.6.0_452. Unzip to opt directory and configure/
1. New JVM folder-Unzip# mkdir /usr/lib/JVM# tar2, set the environment variables, the last side of the/etc/profile file added:# vi /etc/profileexport java_home=/usr/lib/jvm/jdk1. 7 . 0_79export jre_home=${java_home}/jreexport CLASSPATH=.:${java_home}/lib:${jre_home}/ Libexport PATH=${java_home}/bin: $PATH3. Modify the system default JDK# update-alternatives--install /usr/bin/java java/usr/lib/jvm/jdk1. 7 - # Update-
installation of ECLIPSE-CDT failed.Start gnome-do,win+6. Chinese Input method,Apt-get Install IBUs ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4Apt-get Install Ibus-googlepinyinThen set the IBUs frame7. After the installation is finished, you need to start ATD and CronUse Chkconfig to start some problems, but you can use it to display servicesUPDATE-RC.D cron defaults or specify sequence numberUPDATE-RC.D Cron Defaults 50 508 configuration can be compiled for Android Javajava_home=/usr/lib/jvm/jdk1.
From:http://www.cnblogs.com/plinx/archive/2013/06/01/3113106.html1, to the Sun's official website downloadhttp://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Select Accept License and select the JDK download that fits your model.2, unzip the file, modify the filenamemkdir/usr/lib/tar zxvf jdk-7u21-linux-i586. Tar.gz-c/usr/lib/jvm$ cd/usr/lib/mv Jdk1. 7.0_21 java 3. Add Environment variablessudo vim ~/.BASHRCAdd the following:Export java_home=/usr/lib/jvm/JAVA
Installing the JDK ;java-version--View Versioncd/usr/local/src--Enter the directory of the installation packageTar zxvf jdk-7u79-linux-x64.tar.gz--decompression jdk;Mkdir-p/usr/lib/jvm--New Folder JVMMV jdk1.7.0_79/usr/lib/jvm/java7--Move the JDK unpacking package to the Java7 folder (Java is easy to name when moving)cp/etc/profile/etc/profile.bak--Backup to avoid a change in recoveryVi/etc/profile #编辑, add the following at the end of the save--:wq!Export java_home=/usr/lib/jvm/java7--Configurin
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.