Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxÏÂQTµÄ°²×°

1¡¢ÏÂÔØqt-x11-opensource-src-4.3.2.tar.gz £¬ÍøÖ·ÔÚÏÂÃæ
http://www.cevx.com/bbs/thread-10047-1-1.html
2¡¢ÏÂÔØ¹ýÀ´µÄÊÇ qt-x11-opensource-src-4.3.2.tar.gz Îļþ£¬ÎÒÃÇÓÃtarÃüÁî½âѹһÏ¡£
      tar zxvf qt-x11-opensource-src-4.3.2.tar.gz
      3¡¢°ÑÕâ¸öÄ¿Â¼ÒÆµ½/usr/localĿ¼Ï£¬»òÕß²»ÒÆ£¬·ÅÔÚ/homeĿ¼ҲÎÞËùν£¬ÏÂÃæµÄ°²×°¹ý³ÌÊǰÑÕâ¸öÄ¿Â¼ÒÆµ½/usr/localĿ¼Ï£¬¸ÄÃûΪqt£¬Èç¹ûÄúûÓÐÒÆ¶¯£¬ÔÚÉèÖõÄʱºò×¢ÒâĿ¼¡£
      4¡¢Ð޸ģ¨¿ÉÒÔʹÓÃvi±à¼­Æ÷»òÕßgedit£©×Ô¼ºÄ¿Â¼ÏµÄ.bash_profile »òÕß .profile»òÕßÊÇ/etc/profileÕâ¸öÎļþ(ÎÒÓõÄÊÇvi /etc/profile)£¬¼ÓÈëÏÂÃæµÄ´úÂ룺
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
      5¡¢×¢ÏúÒ»ÏÂÓû§»òÕß source .bash_profile һϣ¬Ê¹ÅäÖÃÎļþÉúЧ¡££¨ÔÚĿ¼ÏÂÕÒ²»µ½.bash_profile Õâ¸öÎļþ£¬¿ÉÒÔÓÃsource /etc/profile£©
      6¡¢½øÈëQTµÄĿ¼£¬¿ªÊ¼±àÒë
      ./configure
      ÊäÈëyesͬÒâGPL/QPLЭÒé¡£
      ÔÚÍøÂçÉÏ»¹¿´µ½Õâ¸öÃüÁî ./configure -thread£¬ÎªÁËÖ§³Ö¶àỊ̈߳¬´ó¼Ò»¹ÊÇÇÃÒ»ÏÂÕâЩÃüÁîºÃÁË¡££¨²»ÖªµÀ./configure -thread ºÍ ./configure ÃüÁîÓÐûÓÐÖØ¸´£©
      7¡¢¿ªÊ¼make Õâ²½ÒªÒ»Á½¸öСʱ
      make
      8¡¢¿ªÊ¼install  £¨ÍøÉϵÄһЩÊÖ²áûÓÐÕâ²½£¬»á³öÏÖ error while loading shared libraries: libQTDesignerComponents.so4 ´íÎó£¬ÎÒmake installÒ»ÏÂÖ®ºó£¬¾ÍOKÁË¡££©ÕⲽҲҪͦ¾ÃµÄ£¬´ó¸Å¼¸Ê®·ÖÖÓ°É¡£
      make install
      9¡¢½øÈëQTµÄĿ¼£¬½øÈëbinĿ¼£¬È»ºóÔËÐÐ ./designer£¬´ó¼Ò¿ÉÒÔ¿´µ½Í¼ÐνçÃæÁ˰ɡ£


Ïà¹ØÎĵµ£º

linux ÖØ¶¨Ïò


1. ±ê×¼ÊäÈëµÄ¿ØÖÆ
Óï·¨£ºÃüÁî< Îļþ½«Îļþ×öΪÃüÁîµÄÊäÈë¡£
ÀýÈ磺
mail -s “mail test” das@163.com < file1 ½«Îļþfile1 µ±×öÐżþµÄÄÚÈÝ£¬Ö÷
ÌâÃû³ÆÎªmail test£¬Ë͸øÊÕÐÅÈË¡£
2. ±ê×¼Êä³öµÄ¿ØÖÆ
Óï·¨£ºÃüÁî> Îļþ½«ÃüÁîµÄÖ´Ðнá¹ûËÍÖÁÖ¸¶¨µÄÎļþÖС£
ÀýÈç:
ls -l > list ½«Ö´ÐÐ&ldqu ......

LinuxϵÄѹËõÎļþÆÊÎö

¶ÔÓÚ¸Õ¸Õ½Ó´¥LinuxµÄÈËÀ´Ëµ£¬Ò»¶¨»á¸øLinuxÏÂÒ»´ó¶Ñ¸÷ʽ¸÷ÑùµÄÎļþÃû¸ø¸ãÔΡ£±ð¸ö²»Ëµ£¬µ¥µ¥¾ÍѹËõÎļþΪÀý£¬ÎÒÃÇÖªµÀÔÚWindowsÏÂ×î³£¼ûµÄѹËõÎļþ¾ÍÖ»ÓÐÁ½ÖÖ£¬Ò»ÊÇ,zip£¬ÁíÒ»¸öÊÇ.rap¡£¿ÉÊÇLinux¾Í²»Í¬ÁË£¬ËüÓÐ.gz¡¢.tar.gz¡¢tgz¡¢bz2¡¢.Z¡¢.tarµÈÖÚ¶àµÄѹËõÎļþÃû£¬´ËÍâwindowsϵÄ.zipºÍ.rarÒ²¿ÉÒÔÔÚLinuxÏÂʹÓ㬲»¹ýÔÚ ......

[×ªÔØ]linuxµÄtestÃüÁî

ÿһÖÖÌõ¼þÓï¾äµÄ»ù´¡¶¼ÊÇÅжÏʲôÊÇÕæÊ²Ã´ÊǼ١£ÊÇ·ñÁ˽âÆä¹¤×÷Ô­Àí½«¾ö¶¨Äú±àдµÄÊÇÖÊÁ¿Ò»°ãµÄ½Å±¾»¹ÊÇÄú½«ÒýÒÔΪÈٵĽű¾¡£
Shell ½Å±¾µÄÄÜÁ¦Ê±³£±»µÍ¹À£¬µ«Êµ¼ÊÉÏÆäÄÜÁ¦µÄ·¢»ÓÊÜÖÆÓڽű¾×«Ð´ÕßµÄÄÜÁ¦¡£ÄúÁ˽âµÃÔ½¶à£¬Äú¾ÍÔ½ÄÜÏñ±äÏ··¨ËƵØ×«Ð´Ò»¸öÎļþÀ´Ê¹ÈÎÎñ×Ô¶¯»¯ºÍ¼ò»¯ÄúµÄ¹ÜÀí¹¤×÷¡£
ÔÚ shell ½Å±¾ÖнøÐеÄÃ¿Ò»Ö ......

linux shell Ö® find

תÌùµØÖ·:  Cy158358.cublog.cn
#!/bin/sh
check_patch()
{
 test -d $1
 return
}
#¼ì²é·¾¶ÊÇ·ñ´æÔÚ
check_patch $2
if [ $? -ne 0 ]
then
 echo "no such path $2"
 exit 1
fi
if [ "$1" = "name" ]
then
 #²éÕÒtxtÎļþ
 echo " ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ