天天看点

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

继续阅读