yum for linux update
http://linux.duke.edu/yum/ ÏÂÔØyum°²×°Îļþ
http://mirror-status.centos.org ÍøÕ¾²éÕÒÀë×Ô¼º×î½üµÄ¾µÏñÕ¾µã£¬Ìæ»»ÏÂÃæÎļþÖеÄÏàÓ¦µØÖ·
Èí¼þ°²×°·Ç³£¼òµ¥£ºrpm –ivh yum*.rpm
È»ºóÐÞ¸Ä/etc/yum.repos.d/rhel-debuginfo.repo
[base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=http://mirror.be10.com/centos/5.0/os/$basearch/
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=http://mirror.be10.com/centos/5.0/updates/$basearch/
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=http://mirror.be10.com/centos/5.0/extras/$basearch/
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=http://mirror.be10.com/centos/5.0/addons/$basearch/
gpgcheck=1
2.ÏÂÔز¢µ¼ÈëKEY
¸ù¾ÝÑ¡ÔñµÄ¾µÏñÕ¾µãÏÂÔØkeyÎļþ£¬²¢°²×°
cd /etc/pki/rpm-gpg
wget http://mirror.be10.com/centos/RPM-GPG-KEY-CentOS-5
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
³£ÓÃÃüÁî
Yum check-update #²é¿´¸üÐÂ
Yum update pack #¸üв¹¶¡¡£
±à¼/etc/yum.conf ÔÚ[main] ÖмÓÈë exclude=kernel kernel-source ÕâÑù¿ÉÒÔ²»Éý¼¶kernel
Ïà¹ØÎĵµ£º
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
linuxѹËõ(½âѹËõ)ÃüÁîÏê½â
Ò».tarÃüÁî
tar¿ÉÒÔΪÎļþºÍĿ¼´´½¨µµ°¸¡£ÀûÓÃtar£¬Óû§¿ÉÒÔΪijһÌض¨Îļþ´´½¨µµ°¸£¨±¸·ÝÎļþ£©£¬Ò²¿ÉÒÔÔÚµµ°¸ÖиıäÎļþ£¬»òÕßÏòµµ°¸ÖмÓÈëеÄÎļþ¡£tar ×î³õ±»ÓÃÀ´ÔÚ´Å´øÉÏ´´½¨µµ°¸£¬ÏÖÔÚ£¬Óû§¿ÉÒÔÔÚÈκÎÉ豸ÉÏ´´½¨µµ°¸£¬ÈçÈíÅÌ ......
ÎÒΪʲôдÕâ¸öÌâÄ¿ÄØ£¬ÒòΪÎÒ½ñÌìҪдµÄ²©ÓëÕâÈýÕ߶¼ÓйØϵ£¬ÖÁÉÙÎÒ¸öÈËÈÏΪÊÇÕâÑùµÄ¡£
ÓиöÈËÎÊÁËÒ»¸öÕâÑùµÄС³ÌÐò£¬ËµÓÐÎÊÌ⣺
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
vector <string*> spvec;
string str;
cout & ......
½ñÌìÔÚVMÖа²×°REDHat9Ö®ºó£¬ÔÚÖÕ¶ËÖÐÖ´ÐÐifconfigÖ¸Áî·¢ÏÖ²»ÄÜ»ñÈ¡²»µ½IP£¬Ö´ÐÐsetupÃüÁÐÞ¸ÄIP»ñÈ¡·½Ê½Îª¶¯Ì¬»ñÈ¡ºó»¹ÊÇ»ñÈ¡²»µ½£¬Ö´ÐÐsetup eth0 ÏÔʾ“ÎÞÁ¬½Ó¡£¡£¡£”ÉÏÍø²éÕÒÔÒòºÜ¶àÈ˶¼ËµÊÇÇý¶¯Ã»°²×°¡¢Íø¿¨Ã»°²×°µÈ£¬×îºó·¢ÏÖ¶¼Êdz¶µ¡£ÕæÕýµÄÔÒòÊÇδ°²×°VMware Tools¡£°²×°VMtools·½Ê½
1 µã» ......
Q:
I
keep getting
errors due to library functions being undefined,
but I'm #including all
the right header files.
A:
In the general case of calling code in an
external library,
using #include
to pull in
the right header file(s) is only half
of the story; you also have to tell th ......