Php and Xaira

Support/Development for PHP
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

Php and Xaira

Unread post by Rakel »

Hello,
We have dedicated server with Plesk 8.4 (upgraded), Linux Core4, php-5.2.5, and want use Xaira server for BNC
We have successfully installed BNC (from instructions) and Xaira-1.23 server (and all needed libraries) on Fedora Core4.
But we want to use xaira with php extension. As described in SouceForge, this is possible in this way: run ./configure --with-php5=source/dir/of/php.
But in server, there is no way run --with-php5=source/dir/of/php, because PHP is installed from package (may be), and there no source dir. , and I don't how to resolve this problem.

Please, we really need to install Xaira with PHP support!
If anybody run into same problem, please help as solve it!
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

Problem with Xaira and Php

Unread post by Rakel »

Hi, guys !

Above problem install Xaira server with php extension.
I cannot believe - is really no solution?

I am so distressed

:cry:
P.S. May be this is stupid, but if install php-devel, or some other "tools" ? I don't know what will happen in this way, but...
I am searching in all ways, but not get answer yet

I will waiting
Thank you in advance
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

php and xaira

Unread post by Rakel »

If i try run script ./configure --with-php5=/usr/bin/php
is this right way?
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

Unread post by Rakel »

May be I pose a wrong question, because Xaira server is not typical installation.
If I want configure other software for use with php (when php is from package) - what can I do? And in ./configure script I must put option "--with-php" - what will be right way? This situation of course conformable with specific php<->plesk and other installations?

I will be so thankful for any answer!
Thanks again!
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Im not familiar with the package so I cant really help here. Theres a php-devel package, maybe thats what they need.
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

Unread post by Rakel »

Thank you scott!!
Yes, may be Xaira is particular case, but if it is some popular library installation for PHP as an example. ANd I must run ./configure --with-php5="dir" - what can I do with "php source dir"? I've never do it, because on our test server, I have installed all from sources , including php. And I don't know what will be happen if make installation of php-devel. We mustn't forget about Plesk and all extant installations.
It will be big advice for me, if you tell me!
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

Unread post by Rakel »

OK, I will explain all past steps:
1. Untar and copy all BNC indexes and texts on local directory - it's all OK.
2. Install missing ICU, Xercesc, readline, termcap libraries on our server. Xaira is looking for them and I've istalled successuful !
3. Install Xaira server for indexing BNC - and that is OK too
4. Now Xaira is working and is access BNC indexes. I can use them, but only from prompt.
5. I need access Xaira (indexing BNC) from our web application. Therefore I must compile Xaira and her php libraries in specific way, according instructions :
http://sourceforge.net/docman/display_d ... _id=130289

In step 5. i have a problem!!!
I hope this explain situation of my past actions !

Thanks for your kindness!
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

Unread post by Rakel »

Hi gays, again!

I really needs your help! The problem is not solved yet
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Installing php-devel won't do any harm to Plesk. After installing php-devel you probably need to use --with-php=/usr/include/php to configure the software as that's where php-devel puts the header files (see the output of rpm -ql php-devel).
Lemonbit Internet Dedicated Server Management
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

Unread post by Rakel »

Thanks breun, I will try
Rakel
Forum User
Forum User
Posts: 9
Joined: Thu Jun 12, 2008 11:13 am
Location: Bulgaria

Unread post by Rakel »

Many thanks to breun and scott!
I want to explain to all with same problem! Yes, this is a way to install Xaira server with php libraries, if php is from rpm.
You must have installed php-devel. Than run ./configure --with-php5=/usr/include/php. Make, make install. And finally add to the end of php.ini:
extension=libphpXaira.so
[Xaira]
corpus_path="/path/to/BNC-XML/corpus_parameters.xml"
restart Apache, and that is all

Thanks again about necessary support!
peliukasss
New Forum User
New Forum User
Posts: 2
Joined: Mon May 31, 2010 11:33 am

Re: Php and Xaira

Unread post by peliukasss »

Hello,

Have someone successfully installed Xaira server with php? I'm trying to do it for almost two weeks - no success...
My steps:
./configure --with-php5=/usr/include/php5 all ended OK.
sudo make all ended OK.
sudo make isntall

I get this error:

make install-exec-hook
make[3]: Entering directory `/home/paulius/Programes/Xaira/xaira_php'
mkdir -p
mkdir: missing operand
Try `mkdir --help' for more information.
make[3]: *** [install-exec-hook] Error 1
make[3]: Leaving directory `/home/paulius/Programes/Xaira/xaira_php'
make[2]: *** [install-exec-am] Error 2
make[2]: Leaving directory `/home/paulius/Programes/Xaira/xaira_php'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/paulius/Programes/Xaira/xaira_php'
make: *** [install-recursive] Error 1

What could it be?
Post Reply