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

linux¹²Ïí¿âλÖÃÅäÖÃ


linux¹²Ïí¿âλÖÃÅäÖÃ(LD_LIBRARY_PATH»·¾³±äÁ¿ »òÕß ¸ü¸Ä/etc/ld.so.conf »òÕß Ê¹ÓÃ-RÑ¡Ïî)
2009-11-06
°æȨÉùÃ÷£º×ªÔØʱÇëÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂԭʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷
http://skatings.blogbus.com/logs/50437681.html
linux¹²Ïí¿âλÖÃÅäÖÃ(LD_LIBRARY_PATH»·¾³±äÁ¿ »òÕß ¸ü¸Ä/etc/ld.so.conf »òÕß Ê¹ÓÃ-RÑ¡Ïî)
½ñÌìÏÂÎç³¢ÊÔʹÓÃlibosip2£¬°²×°±È½Ï¼òµ¥£¬°´ÕÕ×Ô´øµÄhelpÎĵµÀïÃæµÄ²Ù×÷½øÐм´¿É¡£
$>mkdir linux-build 
$>cd linux-build
$>../libosip2-2.2.0/configure
$>make                          (×îºó2²½ÒªÔÚ¹ÜÀíԱȨÏÞÏÂÖ´ÐУ©
# make install 
Íê³ÉÖ®ºó£¬»áÔÚ/usr/local/lib·¾¶ÏÂÉú³ÉһЩlioosipXXX.soµÄÎļþ£¬ÔÚ/usr/local/includeÏÂÉú³É¹ØÓÚosipµÄÍ·Îļþ¡£
ΪÁ˲âÊÔ°²×°ÊÇ·ñÕýÈ·£¬ÔÚeclipseϽ¨Á˸ö²âÊÔÏîÄ¿£¬Ð´Á˺ܼòµ¥µÄ´úÂ룺
#include <sys/time.h>//²»¼ÓµÄ»°£¬±àÒëʱ»á±¨´í£¬¿ÉÄÜosipÒÀÀµÓÚtime.h
#include <osip2/osip.h>
//Ö®ËùÒÔÄÜÕÒµ½/usr/local/includeϹØÓÚosipµÄÍ·Îļþ£¬ÊÇÒòΪeclipseĬÈÏ°Ñ/usr/local/include·Åµ½Include directoriesÀïÃæÁË¡£ÔÚeclipseµÄÏîÄ¿ÊôÐÔ-->C++ General-->Path and symbols -->IncludeÀïÃæ¿ÉÒÔ¿´µ½¡£Èç¹û×Ô¼ºÐ´makefileÎļþµÄ»°£¬Òª¼ÓÉÏ-I Ñ¡Ï±íʾ³ÌÐòÀïincludeµÄÍ·ÎļþÈ¥ÄÄÀïÕÒ¡£²Î¼û
http://blog.csdn.net/liuzhuan_1986/archive/2009/07/05/4323274.aspx ¹ØÓÚÍ·Îļþ˵Ã÷
#include <iostream>
using namespace std;
int main()
{
int i;
osip_t *osip;
i = osip_init(&osip);
if(i != 0)
cout << "error" << endl;
cout << "ok" << endl;
return 0;
}
²¢ÇÒÔÚeclipseµÄÏîÄ¿ÊôÐÔ-->C/C++ Build-->Settings-->Tool settings-->GCC C++ Linker-->Libraries¼ÓÉÏ-lpthread -losip2µÄÑ¡Ïî¡£
±àÒëÁ´½Ó¶¼Ã»ÓÐÎÊÌ⣬ÔËÐÐʱ±¨´í£º
error while loading shared libraries: libosip2.so.4: cannot open shared object file: No such file or directory
È»ºó²éµ½¿ÉÄÜÊÇÒòΪ¹²Ïí¿âÉèÖõÄÎÊÌ⣺
ÏÂÃæµÄ¼¸¶ÎÊÇתÔصģ¬¿´ÁËÖ®ºóÃ÷°×linuxÔõôÕÒµ½¹²Ïí¿âµÄ
===========================================================================================
Linux ÔËÐеÄʱºò£¬ÊÇÈçºÎ¹ÜÀí¹²Ïí¿


Ïà¹ØÎĵµ£º

Linux Ï°²×°jdk

Ò»£º°²×°jdk Îҵİ汾ÊÇ£ºjdk-6u10-linux-i586.rpm
°²×°jdk1.6°²×°°ü£º rpm -ivh jdk-6u10-linux-i586.rpm
ÅäÖû·¾³±äÁ¿£º
1£¬½øÈëprofileÎļþ£ºvi/etc/profile
2,ÔÚÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺
   export JAVA_HOME = /usr/usr/java/jdk1.6.0_10 --jdk°²×°Ä¿Â¼
   export CALSSPATH = $JAVA_HOM ......

LinuxÏ°²×°mysql

1:ÏÂÔØÉçÇø°æµÄmysql£¬
     ÒªÏÂÔØÁ½¸öÎļþ£¬·Ö±ðΪ£ºMySQL-server-community-5.1.46-1.rhel5.i386.rpm
                               ......

Linux ÐźÅsignal´¦Àí»úÖÆ Ò»

ÐźÅÊÇLinux±à³ÌÖзdz£ÖØÒªµÄ²¿·Ö£¬±¾ÎĽ«Ïêϸ½éÉÜÐźŻúÖƵĻù±¾¸ÅÄî¡¢Linux¶ÔÐźŻúÖƵĴóÖÂʵÏÖ·½·¨¡¢ÈçºÎʹÓÃÐźţ¬ÒÔ¼°ÓйØÐźŵļ¸¸öϵͳ
µ÷Óá£
       
ÐźŻúÖÆÊǽø³ÌÖ®¼äÏ໥´«µÝÏûÏ¢µÄÒ»ÖÖ·½·¨£¬ÐźÅÈ«³ÆΪÈíÖжÏÐźţ¬Ò²ÓÐÈ˳Æ×÷ÈíÖжϡ£´ÓËüµÄÃüÃû¿ÉÒÔ¿´³ö£¬ËüµÄʵÖʺ ......

Linux ÐźÅsignal´¦Àí»úÖÆ Èý

Ç°ÃæÁ½½ÚÒѾ­½éÉÜÁËÓйØÐźŵĴ󲿷ÖÖª
ʶ¡£ÕâÒ»½ÚÎÒÃÇÀ´Á˽âÒ»ÏÂÕâЩϵͳµ÷Óá£ÆäÖУ¬ÏµÍ³µ÷ÓÃsignalÊǽø³ÌÓÃÀ´É趨ij¸öÐźŵĴ¦Àí·½·¨£¬ÏµÍ³µ÷ÓÃkillÊÇÓÃÀ´·¢ËÍÐźŸøÖ¸¶¨½ø³ÌµÄ¡£Õâ

Á½¸öµ÷ÓÿÉÒÔÐγÉÐźŵĻù±¾²Ù×÷¡£ºóÁ½¸öµ÷ÓÃpauseºÍalarmÊÇͨ¹ýÐźÅʵÏֵĽø³ÌÔÝÍ£ºÍ¶¨Ê±Æ÷£¬µ÷ÓÃalarmÊÇͨ¹ýÐźÅ֪ͨ½ø³Ì¶¨Ê±Æ÷µ ......

linuxÏÂtomcat°²×°ÅäÖÃ

ÎÒ°ÑÎÒÕûºÏapache£«tomcat£«mod_webapp.soµÄ¹ý³Ì·¢ÉÏÀ´¡£ÆäÖаüÀ¨ÁËÐí¶àÇ°È˵ÄÐĵÃÓë¾­Ñé  
   
 
1.ËùÐèµÄÈí¼þ°ü  
   
  ¡¡¡¡j2sdk-1_4_1_02-linux-i586.bin(jdk1.4.1)  

  ¡¡¡¡Apache2.0.40   (Red   Hat   Linux8.0×Ô´ø)   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ