2012-02-13 12 views
8

स्थापित करते समय "कोई स्वीकार्य सी कंपाइलर नहीं मिला" एपीसी को सही तरीके से काम करने के लिए मुझे क्या करने की ज़रूरत है, ऐसा लगता है कि मेरे पास सही जगह या सी के समान कुछ नहीं है? एक बार यह इंस्टॉल हो जाने के बाद मैं कैसे सत्यापित करूं कि यह सही ढंग से चल रहा है?एपीसी

[[email protected]]# pecl install apc 
downloading APC-3.1.9.tgz ... 
Starting to download APC-3.1.9.tgz (155,540 bytes) 
.................................done: 155,540 bytes 
54 source files, building 
running: phpize 
Configuring for: 
PHP Api Version:   20090626 
Zend Module Api No:  20090626 
Zend Extension Api No: 220090626 
config.m4:180: warning: AC_CACHE_VAL(PHP_APC_GCC_ATOMICS, ...): suspicious cache-id,      must contain _cv_ to be cached 
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from... 
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from... 
config.m4:180: the top level 
config.m4:180: warning: AC_CACHE_VAL(PHP_APC_GCC_ATOMICS, ...): suspicious cache-id,  must contain _cv_ to be cached 
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from... 
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from... 
config.m4:180: the top level 
Enable internal debugging in APC [no] : no 
Enable per request file info about files used from the APC cache [no] : no 
Enable spin locks (EXPERIMENTAL) [no] : no 
Enable memory protection (EXPERIMENTAL) [no] : no 
Enable pthread mutexes (default) [yes] : yes 
Enable pthread read/write locks (EXPERIMENTAL) [no] : no 
building in /var/tmp/pear-build-root/APC-3.1.9 
running: /var/tmp/APC/configure --enable-apc-debug=no --enable-apc-filehits=no --enable- apc-spinlocks=no --enable-apc-memprotect=no --enable-apc-pthreadmutex=yes --enable-apc- pthreadrwlocks=no 
checking for grep that handles long lines and -e... /bin/grep 
checking for egrep... /bin/grep -E 
checking for a sed that does not truncate output... /bin/sed 
checking for cc... no 
checking for gcc... no 
configure: error: in `/var/tmp/pear-build-root/APC-3.1.9': 
configure: error: no acceptable C compiler found in $PATH 
See `config.log' for more details. 
ERROR: `/var/tmp/APC/configure --enable-apc-debug=no --enable-apc-filehits=no --enable-apc- spinlocks=no --enable-apc-memprotect=no --enable-apc-pthreadmutex=yes --enable-apc- pthreadrwlocks=no' failed 
[[email protected]]# 
+2

क्या ऑपरेटिंग सिस्टम सर्वर है? –

+0

2.6.35.14-97.44.amzn1.x86_64 # 1 एसएमपी सोम अक्टूबर 24 16:03:08 यूटीसी 2011 x86_64 x86_64 x86_64 जीएनयू/लिनक्स – user1179295

उत्तर

3

ऐसा लगता है कि जीसीसी स्थापित नहीं है। लिनक्स की रिहाई के आधार पर, जीसीसी स्थापित करने का तरीका अलग है। मुझे यकीन है कि अगर आप जिस रिलीज का उपयोग कर रहे हैं उसे पोस्ट करते हैं, तो हम आपकी मदद कर सकेंगे।

+0

2.6.35.14-97.44.amzn1.x86_64 # 1 एसएमपी सोम अक्टूबर 24 16:03:08 यूटीसी 2011 x86_64 x86_64 x86_64 जीएनयू/लिनक्स – user1179295

+0

यह कर्नेल के बारे में सिर्फ जानकारी है। आपको यह जानने की ज़रूरत है कि आप किस लिनक्स का उपयोग कर रहे हैं। –

15

आपका सिस्टम एक सी संकलक याद आ रही है (या कम होने की संभावना है, यह नहीं पाया जा सकता है)।

संभावना तुम सिर्फ क्या करने की जरूरत:

sudo apt-get install build-essential 
डेबियन या Ubuntu के लिए

या

sudo yum groupinstall "Development Tools" 
रेड हैट/CentOS के लिए

वैसे, आपके सिस्टम के पैकेज प्रबंधक एपीसी स्थापित कर सकते हैं।

+0

Red Hat Enterprise/CentOS पर, आपको अतिरिक्त सॉफ़्टवेयर भंडार सक्षम करने की आवश्यकता हो सकती है। [ईपीईएल] (http://fedoraproject.org/wiki/EPEL) में शामिल (प्रागैतिहासिक) PHP संस्करण के लिए पैकेज 'php-pecl-apc' है। – Charles

+0

मैंने विकास टूल इंस्टॉल किया है जब pecl इंस्टॉल एपीसी चलाने की कोशिश की और उसने मुझे /var/tmp/APC/apc.c:454 दिया: त्रुटि: 'apc_regex' के पास 'preg' नाम का कोई सदस्य नहीं है, मुझे यह कैसे पता चलेगा कि यह चल रहा है या नहीं? php-pecl-apc के लिए यह सिर्फ सुडो योम php-pecl-apc है? – user1179295

+0

क्या पीआरसीई समर्थन आपके PHP में संकलित है? – Corbin

1

हमारे सेंटोस 6 बॉक्स पर मैंने yum इंस्टॉल php-pecl-apc का उपयोग किया - मैंने कुछ अन्य यम इंस्टॉल किए जैसे पहले glib, gcc। लेकिन कम से कम आप जानते हैं कि यम निर्भरता को सही तरीके से संभाल लेगा। नहीं वास्तव में इसके साथ एक विशेष गति से वृद्धि हुई है, लेकिन मुझे लगता है यह वह जगह है जहाँ ट्यूनिंग में आता है

1

मैं निम्नलिखित के माध्यम से इस हल:।

#rpm -qa | grep gcc 

# yum install gcc glibc glibc-common gd gd-devel -y 
संबंधित मुद्दे