Newbie install error at step_02.php


(Arekczer) #21

[quote]
Thanks for feedback Benjamin. To give you an idea here are the software versions we are running :



MSM v3.28.8

Oracle 10g

PHP v5.2.14

Apache2 (v2.2.16)

PEAR v1.9.1



I again installed MSM today running through steps 1-4 and step 2 just returned to the command prompt. :frowning:



We felt there may be a problem with php and pear so installed php, and this is the resulting dialog :



Installing PHP SAPI module: cgi

Installing PHP CGI binary: /usr/local/bin/

Installing PHP CLI binary: /usr/local/bin/

Installing PHP CLI man page: /usr/local/man/man1/

Installing build environment: /usr/local/lib/php/build/

Installing header files: /usr/local/include/php/

Installing helper programs: /usr/local/bin/

program: phpize

program: php-config

Installing man pages: /usr/local/man/man1/

page: phpize.1

page: php-config.1

Installing PEAR environment: /usr/local/lib/php/

[PEAR] Archive_Tar - already installed: 1.3.7

[PEAR] Console_Getopt - already installed: 1.2.3

[PEAR] Structures_Graph- already installed: 1.0.3

[PEAR] XML_Util - already installed: 1.2.1

[PEAR] PEAR - already installed: 1.9.1

Wrote PEAR system config file at: /usr/local/etc/pear.conf

You may want to add: /usr/local/lib/php to your php.ini include_path

Installing PDO headers: /usr/local/include/php/ext/pdo/



Any guidance would be gratefully received



Regards

[/quote]

Hi,



Can you post output for this commands:

pear list

and

php -m



you should have something similar for this:

    
    [arek@thor ~]% php -m
    [PHP Modules]
    bz2
    ctype
    curl
    date
    dom
    filter
    gd
    gettext
    hash
    iconv
    json
    libxml
    mysql
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_pgsql
    pdo_sqlite
    pgsql
    posix
    pspell
    readline
    Reflection
    session
    SimpleXML
    soap
    SPL
    SQLite
    standard
    tidy
    tokenizer
    wddx
    xml
    xmlreader
    xmlwriter
    xsl
    zip
    zlib
    
    [Zend Modules]
    
    [arek@thor ~]% 
    [arek@thor ~]% pear list
    Installed packages, channel pear.php.net:
    =========================================
    Package           Version State
    Archive_Tar       1.3.7   stable
    Console_Getopt    1.2.3   stable
    DB                1.7.13  stable
    File_Archive      1.5.4   stable
    HTTP              1.4.1   stable
    HTTP_Client       1.2.0   stable
    HTTP_Request      1.4.4   stable
    I18N              1.0.0   stable
    Image_Canvas      0.3.2   alpha
    Image_Color       1.0.3   stable
    Image_Graph       0.7.2   alpha
    Log               1.12.3  stable
    MDB2              2.5.0b2 beta
    MDB2_Driver_pgsql 1.5.0b2 beta
    MIME_Type         1.2.1   stable
    Mail              1.2.0   stable
    Mail_Mime         1.8.1   stable
    Mail_Queue        1.2.6   stable
    Net_SMTP          1.4.4   stable
    Net_Socket        1.0.10  stable
    Net_URL           1.0.15  stable
    Numbers_Roman     1.0.2   stable
    Numbers_Words     0.16.0  beta
    PEAR              1.9.1   stable
    Services_JSON     1.0.2   stable
    Structures_Graph  1.0.3   stable
    Text_Diff         1.1.1   stable
    XML_HTMLSax       2.1.2   stable
    XML_Parser        1.3.4   stable
    [arek@thor ~]%

Of course you should have pdo and other stuffs for oracle as I have for pgsql.



Regards

Arek


(Chris Smith) #22

Hi,

[quote]

Thanks for feedback Chris ā€¦



No logs in data/private/logs ā€¦ strange I suppose. Heres the step2 command execution dialog :



Liberator - Root -->pwd

/usr/local/mysource_matrix/data/private/logs

Liberator - Root -->ls

CVS

Liberator - Root -->ls -al

total 8

drwxrwxr-x 3 bamcops staff 512 Jan 4 03:16 .

drwxrwxr-x 13 bamcops staff 512 Jan 4 03:16 ā€¦

-rwxrwxr-x 1 bamcops staff 7 Mar 8 2005 .cvsignore

drwxrwxr-x 2 bamcops staff 512 Jan 4 03:16 CVS

Liberator - Root -->pwd

/usr/local/mysource_matrix/data/private/logs

Liberator - Root -->cd /usr/local/mysource_matrix

Liberator - Root -->pwd

/usr/local/mysource_matrix

Liberator - Root -->php install/step_02.php /usr/local/mysource_matrix

Liberator - Root -->



As you can see there's no error messages or report from the step 2 command.

[/quote]



Run



php /path/to/matrix/install/check_requirements.php /path/to/matrix



and it should give you a list of php and/or pear modules that are missing that are required for matrix to work.



Once you've sorted those requirements out try step2 again.



If you need help deciphering the list, post it here and we'll be happy to help.


(david.j.ware@ba.com) #23

[quote]
Hi,





Run



php /path/to/matrix/install/check_requirements.php /path/to/matrix



and it should give you a list of php and/or pear modules that are missing that are required for matrix to work.



Once you've sorted those requirements out try step2 again.



If you need help deciphering the list, post it here and we'll be happy to help.

[/quote]



Thanks Chris that was helpful as the following was returned :



Liberator - Root -->php /usr/local/mysource_matrix/install/check_requirements.p

hp /usr/local/mysource_matrix

sh: clamscan: not found

sh: fpscan: not found

sh: tidy: not found

sh: antiword: not found

sh: pdftohtml: not found

sh: squidclient: not found

sh: js: not found

The following requirements or suggestions are made:



These php extensions are required by the ldap package

--------------------

ldap



These php extensions are required by the trim package

--------------------

soap



These php extensions are required by the sharepoint package

--------------------

soap



These php extensions are required by the web_services package

--------------------

soapPHP Soap Extension



These php extensions are required by the core package

--------------------

curl

gd

pspell

sockets

wddx

xsl - you only need to install this module, if you are going to use the

XSL Transformation.



These pear packages are required by the ecommerce package

--------------------

http_request



These pear packages are required by the bulkmail package

--------------------

mail_queue



These pear packages are required by the cms package

--------------------

http_client

http_request

net_url



These pear packages are required by the core package

--------------------

http_client

http_request

i18n_unicodenormalizer

image_canvas

image_color

image_graph

mail

mail_mime

net_url

text_diff

xml_htmlsax

xml_parser



There is obviously quite a bit there (plus more) ā€¦ gulp!!. Do you have any suggestions on what's best to start with from the list that may speed up the process.



Thanks again and Regards



Dai


(Benjamin Pearson) #24

[quote]


There is obviously quite a bit there (plus more) ā€¦ gulp!!. Do you have any suggestions on whatā€™s best to start with from the list that may speed up the process.



Thanks again and Regards



Dai

[/quote]



Squiz Matrix Requirements can be found at: http://matrix.squiz.net/resources/requirements


(david.j.ware@ba.com) #25

[quote]
Hi,



Can you post output for this commands:

pear list

and

php -m



you should have something similar for this:

    
    [arek@thor ~]% php -m
    [PHP Modules]
    bz2
    ctype
    curl
    
    etc etc ..
    
    [Zend Modules]
    
    [arek@thor ~]% 
    [arek@thor ~]% pear list
    Installed packages, channel pear.php.net:
    =========================================
    Package           Version State
    Archive_Tar       1.3.7   stable
    Console_Getopt    1.2.3   stable
    
    etc etc ...
    
    [arek@thor ~]%

Of course you should have pdo and other stuffs for oracle as I have for pgsql.



Regards

Arek

[/quote]



Thanks again Arek for your input. Here are my command results :



Liberator - Root -->pear list

INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:

=========================================

PACKAGE VERSION STATE

Archive_Tar 1.3.7 stable

Console_Getopt 1.2.3 stable

DB 1.7.14RC1 beta

PEAR 1.9.1 stable

Structures_Graph 1.0.3 stable

XML_Util 1.2.1 stable





Liberator - Root -->php -m

[PHP Modules]

ctype

date

dom

filter

hash

iconv

json

libxml

pcre

PDO

pdo_sqlite

posix

Reflection

session

SimpleXML

SPL

SQLite

standard

tokenizer

xml

xmlreader

xmlwriter



[Zend Modules]



Liberator - Root -->



Looks like there are a few php & pear modules missing compared to your list. I suppose the next step is to acquire the modules in turn until Step 2 of the install works ā€¦ gulp !!



Regards David


(david.j.ware@ba.com) #26

I'm working through the php and pear requirements and have made some progress, enabling soap for exmaple.


Not being an experienced open source user I'm confused how to get pear packages to install.



I used the php configure command --with-pear but only 5 or so modules show as being installed.



I see from the pear requirements that :



HTTP_Client 1.1.1 (minimum),and

Net_URL 1.0.15



are required.



Can someone tell me how I go about installing these packages please



Thanks and Regards



David


(Nic Hubbard) #27

[quote]
Can someone tell me how I go about installing these packages please

[/quote]



First, are you trying to compile php from the source? You should use package installs instead, it is going to be SO much easier for you. Try using something like apt-get to install your packages.



Here is a guide that I wrote a while back, it should still have quite a bit of relevance: http://www.zedsaid.com/blog/installing-mysource-matrix-in-15-min


(david.j.ware@ba.com) #28

Thankyou nnhubbard ā€¦ for your input. I will checkout your guide link asap.


As I said previously I'm inexperienced with open source and I'm following the MySource Matrix requirements as best I can having been tasked with the job of assessing MSM. Unfortunately getting it to do something is proving difficult. So the approach I've taken is to build up the modules bit by bit and my latest php configure command looks like this :



./configure --with-pear --enable-soap --enable-sockets --enable-wddx --enable-gd-native-ttf --with-gd --with-ldap --with-pspell



Taking tour point "are you trying to compile php from the source?"

Our php comes from php-5.2.14.tar and I follow a three step approach that my colleague instructed me to follow :

./configure (as above)

make

make install



I understand the "./confgure" prepares the enviroment, "make" builds it and "make install" installs it.



Thanks and Regards


(Benjamin Pearson) #29

[quote]
Thankyou nnhubbard ā€¦ for your input. I will checkout your guide link asap.



As I said previously Iā€™m inexperienced with open source and Iā€™m following the MySource Matrix requirements as best I can having been tasked with the job of assessing MSM. Unfortunately getting it to do something is proving difficult. So the approach Iā€™ve taken is to build up the modules bit by bit and my latest php configure command looks like this :



./configure --with-pear --enable-soap --enable-sockets --enable-wddx --enable-gd-native-ttf --with-gd --with-ldap --with-pspell



Taking tour point ā€œare you trying to compile php from the source?ā€

Our php comes from php-5.2.14.tar and I follow a three step approach that my colleague instructed me to follow :

./configure (as above)

make

make install



I understand the ā€œ./confgureā€ prepares the enviroment, ā€œmakeā€ builds it and ā€œmake installā€ installs it.



Thanks and Regards

[/quote]



Pretty much all modern distributions have a package manager of some description, so you can install the pre-built binaries of the php packages you need. Is there any reason why you are compiling from source? I would recommend you use the package manager over building from source, since you are only trialling Matrix. As Nic said, Debian and Ubuntu use apt-get, RedHat and CentOS use yum, just find the community forums for your distribution and look topics about installing PHP and PEAR.



Also if you are trialling Matrix, could using the VMs be another alternative for testing? You can find the Matrix VM at http://matrix.squizsuite.ne


(david.j.ware@ba.com) #30

Thanks again for your feedback Benjamin. As you can probably tell I'm learning all the time about this ā€¦ I'm more from a Windows based background and good old setup.exe :rolleyes: !! A bit rusty too but I'll get there one day.


A package manager sounds good to me, and I'll check out http://matrix.squizsuite.net for the Matrix Virtual Machine. It may satisfy our initial test requirements.



You mention that I'm "compiling from source" that implies that the "php-5.2.14.tar " file that I've

been supplied with only holds source modules that require compiling before they will work whereas I

was under the impression that the tar file was a working php application, compressed, that just needed to be

installed in the UNIX environment that we use here. To give you an idea here are the software versions we are attempting to run with :



MSM v3.28.8

Oracle 10g

PHP v5.2.14

Apache2 (v2.2.16)

PEAR v1.9.1



Thanks and Regards


(david.j.ware@ba.com) #31

Sorry I missed the vital component, silly me ā€¦


Operating System is UNIX Solaris 10.


(Arekczer) #32

[quote]
Sorry I missed the vital component, silly me ā€¦



Operating System is UNIX Solaris 10.

[/quote]

You can try to use: Blastwave.org or

Blastwave.org or Blastwave.org or Blastwave.org or Blastwave.org repositories.



Regards

Arek


(Benjamin Pearson) #33

[quote]
You mention that I'm "compiling from source" that implies that the "php-5.2.14.tar " file that I've

been supplied with only holds source modules that require compiling before they will work whereas I

was under the impression that the tar file was a working php application, compressed, that just needed to be

installed in the UNIX environment that we use here.

[/quote]



No, I was going from the ./configure; make; make install procedure you were doing, that is compiling from source.


(david.j.ware@ba.com) #34

[quote]
You can try to use: Blastwave.org or

Blastwave.org or Blastwave.org or Blastwave.org or Blastwave.org repositories.



Regards

Arek

[/quote]



Thanks Arek ā€¦ you are very helpful.



Regards David


(david.j.ware@ba.com) #35

[quote]
No, I was going from the ./configure; make; make install procedure you were doing, that is compiling from source.

[/quote]



Thanks Benjamin ā€¦ you are very helpful. I'm learning all the time !



Regards David


(david.j.ware@ba.com) #36

Having reduced the list of required packages/php extensions and feeling a sense of achievement we've stumbled over a problem called "curl". The command I run to compile/build is :


Liberator - Root -->./configure --with-pear --enable-soap --enable-sockets --en

able-wddx --enable-gd-native-ttf --with-gd --with-ldap --with-pspell --with-oci

8 --with-curl=/usr/local



but the addition of "ā€“with-curl=/usr/local" parameter results in the following "configure" dialogue failure:



Configuring extensions ā€¦

ā€¦

ā€¦

checking for cURL supportā€¦ yes

checking if we should use cURL for url streamsā€¦ no

checking for cURL 7.10.5 or greaterā€¦ libcurl 7.21.3

checking for SSL support in libcurlā€¦ yes

checking how to run the C preprocessorā€¦ gcc -E

checking for openssl support in libcurlā€¦ no

checking for gnutls support in libcurlā€¦ no

checking for curl_easy_perform in -lcurlā€¦ no

configure: error: There is something wrong. Please check config.log for more inf

ormation.

Liberator - Root -->



"config.log" is very hard to decipher and I've aborted that approach. No doubt an experienced person might get the reason from viewing that.



As you can see from above the "libcurl 7.21.3" entry shows the s/w version as expected (see below)

The curl package install I used from the web was "curl-7.21.3-sol10-sparc-local.gz" that appeared to be added ok using the command :



pkgadd -d curl-7.21.3-sol10-sparc-local



This resulted in the following returned dialogue that I was encouraged by :

ā€¦

/usr/local/share/man/man3/libcurl-tutorial.3

[ verifying class <none> ]



Installation of <SMCcurl> was successful.

Liberator - Root -->



Any help will be gratefully received. MSM is proving a right headache :rolleyes:



Thanks and Regards David


(Nic Hubbard) #37

[quote]


Any help will be gratefully received. MSM is proving a right headache :rolleyes:



[/quote]



It is a headache for you because you didn't take our advice about using packages to install the requirements. Was there a reason you went with using Solaris?


(david.j.ware@ba.com) #38

Thanks for feedback Nic Hubbard ā€¦ I'll have to allocate some time to "package managers" and check out places like http://sunfreeware.com/


Regards


(david.j.ware@ba.com) #39

Sorry missed your point about Solaris ā€¦


Solaris 10 is our o/s on our main application server and the test server that we try out things before implementing on our main application server. It runs a number of applications using Oracle databases, plus our existing Intranet.



Unfortunately it's what I've got to work with at the moment.



Regards


(Nic Hubbard) #40

[quote]
Thanks for feedback Nic Hubbard ā€¦ I'll have to allocate some time to "package managers" and check out places like http://sunfreeware.com/



Regards

[/quote]



Sorry, not trying to be harsh. Just trying to make your life SO much easier.



I remember about 5 years ago when I first found Matrix I did the same thing as you, complied everything from the source. It took 1.5 days of frustration!