µ±Ç°Î»Ö㺠´úÂëÃÔ >> Çý¶¯¿ª·¢ >> linux ȱʧ ϵͳͷÎļþÓйØÎÊÌâ
  Ïêϸ½â¾ö·½°¸

linux ȱʧ ϵͳͷÎļþÓйØÎÊÌâ

Èȶȣº175   ·¢²¼Ê±¼ä£º2016-04-28 10:21:26.0
linux ȱʧ ϵͳͷÎļþÎÊÌâ
 gmp-5.0.1  Ä¿Â¼ÏÂÃæÔËÐРsudo make clean all .

/usr/local/include/asm/sigcontext.h:4:28: fatal error: linux/compiler.h: No such file or directory
compilation terminated.
make[2]: *** [invalid.lo] Error 1
make[2]: Leaving directory `/home/jianjun-w/gmp-4.3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jianjun-w/gmp-4.3.2'
make: *** [all] Error 2


¶øÇÒ£¬ÔÚ±àÒëgcc µÈһЩ¿âµÄʱºò£¬¾­³£»á³öÏÖÕâÖÖ Í·ÎļþȱʧµÄÇé¿ö£¬´ó¼ÒÒ»°ãÊÇÔõô×öµÄ£¿ Ôõô½â¾öµÄ£¿ ÎÒ°Ù¶ÈÕâÑùµÄÎÊÌ⣬һ°ã¶¼ÊÇ ÈíÖ¸Ïò£¬ µ«ÎÒ×öÁËln Ò²Ã»ÓÐÈκÎЧ¹û¡£¡£

Çó¸÷λ´óÉñÖ¸µ¼£¬ Ð»Ð»¡£
linux gmp 4.3.2 ȱʧ Í·Îļþ

------½â¾ö·½°¸--------------------
Èç¹ûÎļþÕæµÄ´æÔÚ£¬ÄÇ¿ÉÄܾÍÊÇȨÏÞµÄÎÊÌâÁË¡£
------½â¾ö·½°¸--------------------
ÒýÓÃ:
 gmp-5.0.1  Ä¿Â¼ÏÂÃæÔËÐРsudo make clean all .

/usr/local/include/asm/sigcontext.h:4:28: fatal error: linux/compiler.h: No such file or directory
compilation terminated.
make[2]: *** [invalid.lo] Error 1
make[2]: Leaving directory `/home/jianjun-w/gmp-4.3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jianjun-w/gmp-4.3.2'
make: *** [all] Error 2


¶øÇÒ£¬ÔÚ±àÒëgcc µÈһЩ¿âµÄʱºò£¬¾­³£»á³öÏÖÕâÖÖ Í·ÎļþȱʧµÄÇé¿ö£¬´ó¼ÒÒ»°ãÊÇÔõô×öµÄ£¿ Ôõô½â¾öµÄ£¿ ÎÒ°Ù¶ÈÕâÑùµÄÎÊÌ⣬һ°ã¶¼ÊÇ ÈíÖ¸Ïò£¬ µ«ÎÒ×öÁËln Ò²Ã»ÓÐÈκÎЧ¹û¡£¡£

Çó¸÷λ´óÉñÖ¸µ¼£¬ Ð»Ð»¡£

ÇëÈ·ÈÏÄãÔÚϵͳÖÐÒѾ­°²×°linux header°ü¡£
  Ïà¹Ø½â¾ö·½°¸