phpBeans

Installation Notes

Forum / Installation / Installation Notes

Reply         Subscribe         Start new thread         Syndicated Feed (RSS)        

Displaying 1 to 8 of 8 Previous   1   Next
Author Message
jblythe

Posts: 2
Installation Notes - Posted: January 4, 2005 - 6:15 PM Quote and reply
Hi everyone!

Had some major issues trying to install phpBeans server on a gentoo system, below are some solutions to the problems I encountered hope this helps someone.

1) Edit the compile.sh in the src directory I changed the the line in ./configure --with-mysql=/usr/local to --with-mysql to let the system discover where the mysql headers/libs are stored this may not suit everyone I am just lazy.

I commented out the following lines as these would fail.

#./bin/pear install sqlite
#echo 'extension="sqlite.so"' > $conf/php.ini
#./bin/pear install -f Net_Server

2) ./compile.sh this should run through now with no problems just make sure that all the extensions you want have been confgured.

3) Goto: http://pear.php.net and download the following packages I had to do this as for some reason I could not install remote packages with the PEAR installer kept getting the famous 'no signature found for package.info(string,string,bool)' Error message (this is after I manually installed XML_RPC)

DB-1.6.8.tgz
HTTP-1.3.3.tgz
Mail-1.1.4.tgz
Net_SMTP-1.2.6.tgz
Net_Server-0.12.0.tgz
Net_Socket-1.0.4.tgz
SQLite-1.0.3.tgz
XML_Parser-1.2.2.tgz
XML_RPC-1.2.0RC1.tgz

Install each one from the root of the phpbeans install directory leave SQLite until last

./php/bin/pear install xxxx.tgz

After you install SQLite edit the conf/php.ini and uncomment or add the line:

extension="sqlite.so"

4) Now follow the install document instructions on testing the server it should work :)

IMHO I really dislike the fact that phpBeans comes packaged with PHP and PEAR I would rather just the bare system and a list of requirements as I already have a running PHP/CLI and working PEAR installation, I tried to hack the phpBeans scripts to use this but soon ran into all sorts of problems, I am sure this would be pretty straight forward so please consider this in a future release, I guess compiling a staticlly linked PHP installation and having the PEAR modulues pre-installed may suit most people also, unless they need some fancy extensions, most could be loaded at runtime anyway.

Looking forward to writing some beans and seeing what others come up with :)

Regards,

Joseph





Back to top
lux

Posts: 17
Re: Installation Notes - Posted: February 11, 2005 - 2:14 AM Quote and reply
jblythe said:
IMHO I really dislike the fact that phpBeans comes packaged with PHP and PEAR I would rather just the bare system and a list of requirements as I already have a running PHP/CLI and working PEAR installation, I tried to hack the phpBeans scripts to use this but soon ran into all sorts of problems, I am sure this would be pretty straight forward so please consider this in a future release, I guess compiling a staticlly linked PHP installation and having the PEAR modulues pre-installed may suit most people also, unless they need some fancy extensions, most could be loaded at runtime anyway.


Hi Joseph,

The reason for the bundled PHP is mainly because typical PHP/CLI installations don't usually have the necessary extensions for the phpBeans server, and it's not always a good idea to mix those extensions with an already running PHP installation (ie. they could have adverse side effects, since they affect things like process and socket control). I also figured it would make it slightly simpler for people to install, but I suppose that's not necessarily true in all cases.

I'm going to continue to bundle them for now, but I'm definitely open to alternatives, especially ones that might potentially simplify the installation.

Cheers,

Lux

Back to top
mose

Posts: 1
Re: Installation Notes - Posted: July 20, 2005 - 4:02 AM Quote and reply
jblythe said:
Hi everyone!

I commented out the following lines as these would fail.

#./bin/pear install sqlite
#echo 'extension="sqlite.so"' > $conf/php.ini
#./bin/pear install -f Net_Server



I had the same problem and just added in compile.sh one line: --with-xmlrpc
and then the pear commands works fine.

hth,
mose


Back to top
mdavey

Posts: 2
Re: Installation Notes - Posted: July 20, 2005 - 8:16 AM Quote and reply
mose said:

and then the pear commands works fine.


That was my finding with Gentoo and phpBeans too (--with-mysql --with-xmlrc)

Could this be added to the compile.sh or at least documented in an INSTALL-gentoo.txt ?


Back to top
maruda

Posts: 2
Re: Installation Notes - Posted: March 6, 2007 - 4:35 PM Quote and reply
jblythe said:


1) Edit the compile.sh in the src directory I changed the the line in ./configure --with-mysql=/usr/local to --with-mysql to let the system discover where the mysql headers/libs are stored this may not suit everyone I am just lazy.

I commented out the following lines as these would fail.

#./bin/pear install sqlite
#echo 'extension="sqlite.so"' > $conf/php.ini
#./bin/pear install -f Net_Server

2) ./compile.sh this should run through now with no problems just make sure that all the extensions you want have been confgured.

3) Goto: http://pear.php.net and download the following packages I had to do this as for some reason I could not install remote packages with the PEAR installer kept getting the famous 'no signature found for package.info(string,string,bool)' Error message (this is after I manually installed XML_RPC)

DB-1.6.8.tgz
HTTP-1.3.3.tgz
Mail-1.1.4.tgz
Net_SMTP-1.2.6.tgz
Net_Server-0.12.0.tgz
Net_Socket-1.0.4.tgz
SQLite-1.0.3.tgz
XML_Parser-1.2.2.tgz
XML_RPC-1.2.0RC1.tgz

Install each one from the root of the phpbeans install directory leave SQLite until last

./php/bin/pear install xxxx.tgz

After you install SQLite edit the conf/php.ini and uncomment or add the line:

extension="sqlite.so"



Hi Joseph,
thank you for very nice guide. I have Debian Sarge and unfortunately I had some problems with installation PHPBeans. I will glad if you can give me some advices.
I have done points 1 and 2 yours guide. In the end of compilation process I got messages like that:
-------------------
[PEAR] Archive_Tar - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR - installed: 1.3.2
Wrote PEAR system config file at: /usr/share/phpbeans-server-1.0.0-stable/php/etc/pear.conf
You may want to add: /usr/share/phpbeans-server-1.0.0-stable/php/lib/php to your php.ini include_path
[PEAR] DB: unable to unpack /usr/share/phpbeans-server-1.0.0-stable/src/php-4.3.8/pear/packages/DB-1.6.2.tar
[PEAR] HTTP: unable to unpack /usr/share/phpbeans-server-1.0.0-stable/src/php-4.3.8/pear/packages/HTTP-1.2.2.tar
[PEAR] Mail: unable to unpack /usr/share/phpbeans-server-1.0.0-stable/src/php-4.3.8/pear/packages/Mail-1.1.3.tar
[PEAR] Net_SMTP - installed: 1.2.3
[PEAR] Net_Socket: unable to unpack /usr/share/phpbeans-server-1.0.0-stable/src/php-4.3.8/pear/packages/Net_Socket-1.0.1.tar
[PEAR] XML_Parser: unable to unpack /usr/share/phpbeans-server-1.0.0-stable/src/php-4.3.8/pear/packages/XML_Parser-1.0.1.tar
[PEAR] XML_RPC: unable to unpack /usr/share/phpbeans-server-1.0.0-stable/src/php-4.3.8/pear/packages/XML_RPC-1.1.0.tarInstalling build environment: /usr/share/phpbeans-server-1.0.0-stable/php/lib/php/build/
Installing header files: /usr/share/phpbeans-server-1.0.0-stable/php/include/php/
Installing helper programs: /usr/share/phpbeans-server-1.0.0-stable/php/bin/
program: phpize
program: php-config
program: phpextdist

--------------
I started install pear packages manually as you wrote in point 3. I got errors:

pc:#./pear install Net_Server-1.0.2.tgz
pc:#No handlers for package.xml version 2.0

pc:#./pear install Auth_SASL-1.0.2.tgz
pc:#No handlers for package.xml version 2.0

pc:#./pear install SQLite-1.0.3.tgz
50 source files, building
running: phpize
sh: line 1: phpize: command not found
`phpize' failed

I have no idea where problem is :(
Do you mind you could help me ?

Peter


Back to top
lux

Posts: 17
Re: Installation Notes - Posted: March 6, 2007 - 4:40 PM Quote and reply
maruda said:
I started install pear packages manually as you wrote in point 3. I got errors:

pc:#./pear install Net_Server-1.0.2.tgz
pc:#No handlers for package.xml version 2.0

pc:#./pear install Auth_SASL-1.0.2.tgz
pc:#No handlers for package.xml version 2.0

pc:#./pear install SQLite-1.0.3.tgz
50 source files, building
running: phpize
sh: line 1: phpize: command not found
`phpize' failed

I have no idea where problem is :(
Do you mind you could help me ?

Peter


Hi Peter,

It looks like the pear installer can't find the phpize command in your $PATH. I'd probably try locating that and either copying it or symlinking it to somewhere definitely in your path like /usr/bin. Then try rerunning the above commands and see if that works.

Hope that helps.

Cheers,

Lux

Back to top
maruda

Posts: 2
Re: Installation Notes - Posted: March 6, 2007 - 5:06 PM Quote and reply
lux said:
maruda said:
I started install pear packages manually as you wrote in point 3. I got errors:

pc:#./pear install Net_Server-1.0.2.tgz
pc:#No handlers for package.xml version 2.0

pc:#./pear install Auth_SASL-1.0.2.tgz
pc:#No handlers for package.xml version 2.0

pc:#./pear install SQLite-1.0.3.tgz
50 source files, building
running: phpize
sh: line 1: phpize: command not found
`phpize' failed

I have no idea where problem is :(
Do you mind you could help me ?

Peter


Hi Peter,

It looks like the pear installer can't find the phpize command in your $PATH. I'd probably try locating that and either copying it or symlinking it to somewhere definitely in your path like /usr/bin. Then try rerunning the above commands and see if that works.

Hope that helps.

Cheers,

Lux


Hi Lux,
I upgrade pear to newer version and problems 'No handlers for package.xml version 2.0' has been resolved :)
After that I tried install SQlite and error has changed:
pc:#./pear install SQLite-1.0.3.tgz
50 source files, building
running: phpize
/usr/share/phpbeans-server-1.0.0-stable/php/bin/phpize: line 57: aclocal: command not found
ERROR: `phpize' failed

I will try to copy phpize to another path, now phpize is locating in the same catalog with pear executable script.

Thank you,
Peter.

Back to top
lux

Posts: 17
Re: Installation Notes - Posted: March 6, 2007 - 5:21 PM Quote and reply
maruda said:
Hi Lux,
I upgrade pear to newer version and problems 'No handlers for package.xml version 2.0' has been resolved :)
After that I tried install SQlite and error has changed:
pc:#./pear install SQLite-1.0.3.tgz
50 source files, building
running: phpize
/usr/share/phpbeans-server-1.0.0-stable/php/bin/phpize: line 57: aclocal: command not found
ERROR: `phpize' failed

I will try to copy phpize to another path, now phpize is locating in the same catalog with pear executable script.

Thank you,
Peter.


Hi Peter,

If it's sqlite you're getting stuck on, the sqlite folks may be better able to help you get that installed.

I would try searching for "aclocal command not found" on Google and see what that comes up with too.

Cheers,

Lux

Back to top

Return to Top


  Powered by Sitellite Enterprise PHP CMS