Jump to content

Installing PEAR

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Ivenius

Ivenius

    Newbie

  • Members
  • Pip
  • 5 posts
Hi,

I want to install PEAR, I go to usr/php, open go-pear.bat file, but there appears an error:
"Unable to initialize module. Module compiled with module API=......0debug=0, thread-safety=1. These options need to match."
The problem could be the location of php.ini. I have two of them, one in C:/Windows/, the other in C:/usr/
It looks like the one in C:/Windows is correct, though the rest php files are in C:/usr/php.
phpinfo() function shows the location of php.ini in /usr/local/lib/php.ini (but usr/local does not exist).

Do you know what could be the reason? Maybe someone have had similar problems...Thanks for any help.

#2
Vizlim

Vizlim

    Newbie

  • Members
  • Pip
  • 5 posts
It is for to test install pear, can to view all install modules:
<?php
phpinfo(INFO_MODULES);
?> 
The file "php.ini" valid that, what to locate in folder php.
The file php.ini need write:
extension=go-pear.bat

After reset web-server.

#3
Ivenius

Ivenius

    Newbie

  • Members
  • Pip
  • 5 posts
I guess I have to move this go-pear.bat file into php/extensions, but it no says: "Can't find a proper directory". Launching it from php/ still shows an error.

#4
Ivenius

Ivenius

    Newbie

  • Members
  • Pip
  • 5 posts
Any ideas?

#5
Vizlim

Vizlim

    Newbie

  • Members
  • Pip
  • 5 posts
to copy all file pear in folder with some extension dll (After reset web-server)
or
to write in file "php.ini" extension=C:/path/to/pear/go-pear.bat (After reset web-server)

or
remove web-server =)
and install pack Denwer Джентльменский Набор Web-Разработчика (PHP 5.3.1, MySQL 5.1, PostgreSQL 8.4 etc.) « Denwer
and install add modules (is pear): PHP 5:

Or manual Manual :: Installation of a local PEAR copy on a shared host