天天看點

suse linux筆記(關機、檢視版本、安裝gcc)

安裝包下載下傳網站:http://213.174.32.130/sles/distribution/11.0-SP1/repo/disk1/suse/x86_64/

rpm包:http://rpm.pbone.net/

shutdown關機指令

格式: shutdown 選項 時間

如:重新開機 shutdown -r now

        關機 shutdown now

 ===========================================================================================================================

1、如何檢視linux版本。

linux:~ # cat /etc/issue

Welcome to SUSE Linux Enterprise Server 11 SP1  (x86_64) - Kernel \r (\l).

2、如何檢視linux核心。

linux:~ # cat /proc/version

Linux version 2.6.32.12-0.7-default ([email protected]) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP 2010-05-20 11:14:20 +0200

===========================================================================================================================

 3、安裝gcc

所需包:三、gcc43-4.3.4_20091019-0.7.35.x86_64.rpm

                二、glibc-devel-2.11.1-0.17.4.x86_64.rpm

               一、 linux-kernel-headers-2.6.27-3.2.src.rpm

(将上面3個包安一二三安裝:rpm -ivh linux-kernel-headers-2.6.27-3.2.src.rpm 即可。有些可能還需要裝  cpp43-4.3.4_20091019-0.7.35.x86_64.rpm

               linux-glibc-devel-2.6.36-3.1.noarch.rpm)

錯誤語句分析(安裝之前需要linux-kernel-headers包):

              linux:~/Downloads/cgh # rpm -ivh glibc-devel-2.11.1-0.17.4.x86_64.rpm

              error: Failed dependencies:

              linux-kernel-headers is needed by glibc-devel-2.11.1-0.17.4.x86_64

===========================================================================================================================

 4、安裝ntfs-3g

錯誤1(沒有安裝gcc編譯器,無法編譯configure檔案)、

linux:~/Downloads/ntfs-3g # ./configure

checking build system type... x86_64-suse-linux-gnu

checking host system type... x86_64-suse-linux-gnu

checking target system type... x86_64-suse-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking for gcc... no

checking for cc... no

configure: error: no acceptable C compiler found in $PATH

繼續閱讀