What is eAccelerator?

Started by [Unknown], September 19, 2005, 01:35:51 AM

Previous topic - Next topic

Saku

doesn't work too :(

[root@serverge11 eaccelerator-0.9.3]# ./configure --with-eaccelerator=shared --with-php-config=/usr/bin/php-config
-bash: ./configure: No such file or directory
[root@serverge11 eaccelerator-0.9.3]# ./configure --enable-eaccelerator=/root/eaccelerator-0.9.3 --with-php-config=/usr/bin/php-config
-bash: ./configure: No such file or directory
[root@serverge11 eaccelerator-0.9.3]#

Saku

please help me to finish eaccelerator's installation, my site still overloading my server's CPU
http://www.simplemachines.org/community/index.php?topic=60076.0

bluemuse

can someone help me. I've tryed to install php-devel to have acess to phpize.

Php-devel was sucessfully installed:

warning: php-devel-4.3.4-11.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:php-devel              ########################################### [100%]


But then when I try to access phpize, it seems it is not there. How do I certify that?

# /usr/bin/phpize
/usr/bin/phpize: line 57: aclocal: command not found

Compuart

I think autoconf isn't installed on your server. Try:
yum install autoconf
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

bluemuse

i think it is:

locate autoconf
/var/cache/yum/base/headers/autoconf213-0-2.13-8.noarch.hdr
/var/cache/yum/base/headers/autoconf-0-2.59-3.noarch.hdr
/usr/include/linux/autoconf.h
/lib/modules/2.6.10-1.771_FC2/build/include/linux/autoconf.h
/lib/modules/2.6.5-1.358/build/include/linux/autoconf.h


what do u suggest?

Compuart

those are merely source files. Try running autoconf:
autoconf --version

If it doesn't find it, it'd need to be installed.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

bluemuse

it might be the problem.
I installed autoconf:

yum install autoconf
Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 2 - Atomic PSA-Compatible RPMS
Server: Atomic Rocket Turtle - 2 - Atomic PSA App Vault RPMS
Server: Atomic Rocket Turtle - 2 - Base OS RPMS mirror
Server: Atomic Rocket Turtle - 2 - SW-Soft PSA 7.5 RPMS
Server: Atomic Rocket Turtle - 2 - OS Update RPMS mirror
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[install: autoconf 2.59-3.noarch]
Is this ok [y/N]: y
Downloading Packages
Getting autoconf-2.59-3.noarch.rpm
autoconf-2.59-3.noarch.rp 100% |=========================| 630 kB    00:01     
Running test transaction:
Test transaction complete, Success!
autoconf 100 % done 1/1
Installed:  autoconf 2.59-3.noarch
Transaction(s) Complete




then:

autoconf version
autom4te: version: no such file or directory

and I still cant access the step 5:
/usr/bin/phpize
/usr/bin/phpize: line 57: aclocal: command not found


bluemuse

it worked out this time :)

but another problem right in the end of the process:

make
make: *** No targets specified and no makefile found.  Stop.
[root@xxx eaccelerator-0.9.3]# su
[root@xxx eaccelerator-0.9.3]# mkdir /tmp/eaccelerator
[root@xxx eaccelerator-0.9.3]# chown apache:apache-group /tmp/eaccelerator
chown: `apache:apache-group': invalid group
[root@xxx eaccelerator-0.9.3]# chmod 1700 /tmp/eaccelerator
[root@xxx eaccelerator-0.9.3]# make install
make: *** No rule to make target `install'.  Stop.

ozmafans

The install guide says to change anything in italic to what your server has it set to. It clearly says that apache-group is not a valid group, that you need to change that to the group your apache runs under. "nobody is usually the group this is run as"

so the command would be:

Quote
chown apache:nobody /tmp/eaccelerator

which is why it says invalid group.

And, since your initial command of make failed, make install will also fail. Make builds it, make install puts it all together. Then you likely need to

Quote
cp modules/eaccelerator.so /usr/lib/eaccelerator.so

bluemuse

and this error:

make
make: *** No targets specified and no makefile found.  Stop.


is it normal?

ozmafans

#70
No. did your ./configure command run properly?

to "try again" do the following:

inside the eaccelerator directory:

Quote
$ make clean
$ ./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
$ make
$ su
# mkdir /tmp/eaccelerator
# chown apache:nobody /tmp/eaccelerator
# chmod 1700 /tmp/eaccelerator
# make install
# cp modules/eaccelerator.so /usr/lib/eaccelerator.so

report back if you have problems...

bluemuse

./configure run properly.

but the make command always give me that error message.

and also that make clean gives me this

make clean
make: *** No rule to make target `clean'.  Stop.

Webrunner

should i install this on PHP5 with mysql 4.1 and apache 2?
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

Compuart

Quote from: bluemuse on February 16, 2006, 05:17:14 PM
./configure run properly.
Are you sure it doesn't show any errors?

Quote from: Webrunner on February 17, 2006, 11:15:08 AM
should i install this on PHP5 with mysql 4.1 and apache 2?
Yep, this or APC of course, whichever you like best.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

bluemuse

this is what i get:

./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
checking for PHP extension directory... /usr/lib/php4
checking for re2c... exit 0;
checking for gawk... gawk
checking whether to enable eaccelerator support... yes, shared
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking mandatory system headers... yes
checking whether union semun is defined in sys/sem.h... no
checking for sysvipc shared memory support... no
checking for mmap shared memory support... no
checking for mmap on /dev/zero shared memory support... no
checking for anonymous mmap shared memory support... no
checking for posix mmap shared memory support... no
checking for best shared memory type... no
configure: WARNING: eaccelerator cannot detect shared memory type, which is required
checking for spinlock semaphores support... no
checking for pthread semaphores support... no
checking for posix semaphores support... no
checking for sysvipc semaphores support... no
checking for fcntl semaphores support... no
checking for flock semaphores support... no
checking for best semaphores type... no
configure: WARNING: eaccelerator cannot semaphores type, which is required
checking for sched_yield... yes
checking for mprotect... yes
checking for ext/session/php_session.h... yes
checking for a sed that does not truncate output... //bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Compuart

Quote from: bluemuse on February 17, 2006, 12:50:56 PMchecking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
that did not go well ;) Try installing gcc:

yum install gcc
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

bluemuse

sucessfully installed it.

yum install gcc
Gathering header information file(s) from server(s)
Server: Atomic Rocket Turtle - 2 - Atomic PSA-Compatible RPMS
Server: Atomic Rocket Turtle - 2 - Atomic PSA App Vault RPMS
Server: Atomic Rocket Turtle - 2 - Base OS RPMS mirror
Server: Atomic Rocket Turtle - 2 - SW-Soft PSA 7.5 RPMS
Server: Atomic Rocket Turtle - 2 - OS Update RPMS mirror
Finding updated packages
Downloading needed headers
php-mbstring-0-4.4.2-1.rh 100% |=========================| 6.2 kB    00:00     
php-pgsql-0-4.4.2-1.rhfc2 100% |=========================| 6.4 kB    00:00     
php-mysql-0-4.4.2-1.rhfc2 100% |=========================| 6.3 kB    00:00     
php-devel-0-4.4.2-1.rhfc2 100% |=========================|  13 kB    00:00     
php-domxml-0-4.4.2-1.rhfc 100% |=========================| 6.3 kB    00:00     
php-pear-0-4.4.2-1.rhfc2. 100% |=========================|  10 kB    00:00     
php-0-4.4.2-1.rhfc2.art.i 100% |=========================| 8.1 kB    00:00     
php-imap-0-4.4.2-1.rhfc2. 100% |=========================| 6.5 kB    00:00     
php-ldap-0-4.4.2-1.rhfc2. 100% |=========================| 6.4 kB    00:00     
php-odbc-0-4.4.2-1.rhfc2. 100% |=========================| 6.4 kB    00:00     
php-snmp-0-4.4.2-1.rhfc2. 100% |=========================| 6.3 kB    00:00     
php-mhash-0-4.4.2-1.rhfc2 100% |=========================| 6.2 kB    00:01     
php-mcrypt-0-4.4.2-1.rhfc 100% |=========================| 6.4 kB    00:00     
php-xmlrpc-0-4.4.2-1.rhfc 100% |=========================| 6.2 kB    00:00     
gcc is installed and is the latest version.
No actions to take


but:

./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend
checking for PHP extension directory... /usr/lib/php4
checking for re2c... exit 0;
checking for gawk... gawk
checking whether to enable eaccelerator support... yes, shared
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking mandatory system headers... yes
checking whether union semun is defined in sys/sem.h... no
checking for sysvipc shared memory support... no
checking for mmap shared memory support... no
checking for mmap on /dev/zero shared memory support... no
checking for anonymous mmap shared memory support... no
checking for posix mmap shared memory support... no
checking for best shared memory type... no
configure: WARNING: eaccelerator cannot detect shared memory type, which is required
checking for spinlock semaphores support... no
checking for pthread semaphores support... no
checking for posix semaphores support... no
checking for sysvipc semaphores support... no
checking for fcntl semaphores support... no
checking for flock semaphores support... no
checking for best semaphores type... no
configure: WARNING: eaccelerator cannot semaphores type, which is required
checking for sched_yield... yes
checking for mprotect... yes
checking for ext/session/php_session.h... yes
checking for a sed that does not truncate output... //bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Compuart

It might need C++

Try:
yum install gcc-c++
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

Webrunner

I am not that great with Linux and i read that eAccelerator isn't compatible with php5.
I used apt-get to install php5 on Sarge (Debian).
Can i just install eAccellerator from the source code?
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

Compuart

According to themselves they have fixed that in 0.9.4 RC2 ("eA should be php 5 compatible except some very unusual cases."). You can always try to compile eaccelerator. If it works, it'll compile a module you then can include in the php.ini file. If it fails after that, simply remove it from php.ini and it's gone. So not much risk involved.
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com

Advertisement: