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 (geeko@buildhost) (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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值