yum installiere pcre-devel

yum installiere pcre-devel

Ich muss APC für eine meiner Drupal-Installationen zum Laufen bringen. Ich habe eine recht knappe Anleitung gefunden unterhttp://blog.4rev.net/2009-09/installing-apc-accelerator-into-php5-fedora-core-11/nur zur Installation auf FC11, ich verwende FC12. Ich dachte, ich würde es mal versuchen.

Ich konnte die folgenden Befehle erfolgreich ausführen – und yum hat FC12-Versionen von allem im FC11-Handbuch installiert.

 yum install php-pear

    yum install php-devel httpd-devel

    yum groupinstall ‘Development Tools’

    yum groupinstall ‘Development Libraries’

Dann versuchte ichpecl installieren apc. Alles sah gut aus, bis ich zum Ende kam, wo der folgende Fehler ausgegeben wurde.

/var/tmp/APC/php_apc.c: In function ‘zif_apc_compile_file’:
/var/tmp/APC/php_apc.c:881: warning: unused variable ‘eg_class_table’
/var/tmp/APC/php_apc.c:881: warning: unused variable ‘eg_function_table’
/var/tmp/APC/php_apc.c: At top level:
/var/tmp/APC/php_apc.c:959: error: duplicate ‘static’
make: *** [php_apc.lo] Error 1
ERROR: `make' failed

Einige Leute hatten Erfolg mit der Installation von apc-beta, aber bei mir hat es nicht funktioniert.

Irgendwelche Vorschläge? Habe ich etwas übersehen, das in der FC12-Version wichtig ist?

Antwort1

Um dies zu beheben und APC neu zu installieren (stellen Sie sicher, dass EAccelerator aus PHP entfernt wurde), installieren Sie vor der Neuinstallation von APC die folgenden Pakete: -

yum installiere pcre-devel

bevor Sie APC installieren.

Zur Verwendung von Debian

Eignung installieren libpcre3-dev

Wenn Sie APC dann neu installieren, erhalten Sie die folgende Antwort: -

Antwort2

Das hat bei mir funktioniert.

# # install APC package  
# yum install php-pecl-apc  
#   
# # install gd package to have graphs in APC dashboard (optional)  
# yum install php-gd  

Ich habe das hier gefunden bei.. http://www.redips.net/wordpress/make-it-faster/

Antwort3

eine andere Lösung, die bei mir funktioniert hat, bestand darin, die Datei /var/tmp/APC/php_apc.c zu bearbeiten und „static“ aus Zeile 959 zu entfernen. Dann habe ich „make“ und „make install“ ausgeführt und es hat funktioniert.

verwandte Informationen