[Linux-programlama] PHP / Java Integration

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Huseyin A. Ozbey (huseyin_ozbey@evkur.com.tr)
Date: Tue 01 Mar 2005 - 18:26:45 EET


Merhaba
PHP'ye Java'yi entegre etmeye calisiyorum.
php'nin source rpm'ini cektim, php-4.3.4-11.src.rpm.

rpm -ivh php-4.3.4-11.src.rpm ile kurdum.
sonrada
/usr/src/redhat/SPECS adresindeki php.spec dosyasinindaki

ln -sf ../configure
%configure \
        --cache-file=../config.cache \
        --with-config-file-path=%{_sysconfdir} \
        --with-config-file-scan-dir=%{_sysconfdir}/php.d \

satirlarinin en sonuna

--with-java=/usr/java/jre1.5.0_01 \

ekledim. sonra
rpmbuild --bb ./php.spec

diyorum ve asagidaki hata mesajini aliyorum.

checking Java Jar location... configure: error: Unable to locate
/usr/java/jre1.5.0_01/bin
error: Bad exit status from /var/tmp/rpm-tmp.7712 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.7712 (%build)

Tabi Java'nin kurulu oldugunu ve yolun dogru oldugunuda ifade etmeliyim.

[root@huseyinlinux SPECS]# ls -al /usr/java/jre1.5.0_01/bin
total 1336
drwxr-xr-x 2 root root 4096 Feb 10 10:51 .
drwxr-xr-x 7 root root 4096 Feb 10 10:51 ..
-rwxr-xr-x 1 root root 4153 Dec 7 06:17 ControlPanel
-rwxr-xr-x 1 root root 63664 Dec 7 06:50 java
-rwxr-xr-x 1 root root 17567 Dec 7 06:50 java_vm
-rwxr-xr-x 1 root root 164068 Dec 7 06:50 javaws
-rwxr-xr-x 1 root root 70696 Dec 7 06:50 keytool
-rwxr-xr-x 1 root root 70728 Dec 7 06:50 kinit
-rwxr-xr-x 1 root root 70728 Dec 7 06:50 klist
-rwxr-xr-x 1 root root 70728 Dec 7 06:50 ktab
-rwxr-xr-x 1 root root 71848 Dec 7 06:50 orbd
-rwxr-xr-x 1 root root 71848 Dec 7 06:50 pack200
-rwxr-xr-x 1 root root 71856 Dec 7 06:50 policytool
-rwxr-xr-x 1 root root 70696 Dec 7 06:50 rmid
-rwxr-xr-x 1 root root 70696 Dec 7 06:50 rmiregistry
-rwxr-xr-x 1 root root 70728 Dec 7 06:50 servertool
-rwxr-xr-x 1 root root 71848 Dec 7 06:50 tnameserv
-rwxr-xr-x 1 root root 221893 Dec 7 06:50 unpack200

http://tr.php.net/java adresindeki tutorial'de php'yi java destegi ile
beraber derledikten sonra php.ini içine

[Java]
java.class.path=/usr/local/lib/php/php_java.jar

yazmami soyluyor. Benim bilgisayarimda php_java.jar isminde bir dosya
yokki. Acaba derlenincemi olusacak.

Aranizda php'ye java destegi veren varmi acaba? Bu hata mesajini nasil
cozerim?

Saygilarimla

Huseyin A. Ozbey

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.