tora oracle-gaz konpile archlinux-en

Tora bajateko:
wget http://downloads.sourceforge.net/project/tora/tora/2.1.3/tora-2.1.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ftora%2Ffiles%2Ftora%2F2.1.3%2F&ts=1301064772&use_mirror=kent

Izen raro bategaz bajaten batzuien neuri pasa daztelez:

mv tora-2.1.3.tar.gz\?r\=http\:%2F%2Fsourceforge.net%2Fprojects%2Ftora%2Ffiles%2Ftora%2F2.1.3%2F tora-2.1.3.tar.gz
tar -zxvf tora-2.1.3.tar.gz
cd tora-2.1.3
./configure --with-oracle=/opt/oracle-instantclient-11-2 \
--with-oracle-libraries=/opt/oracle-instantclient-11-2 \
--with-instant-client=/opt/oracle-instantclient-11-2 \
--with-oracle-libraries=/opt/oracle-instantclient-11-2 \
--with-oci-version=11G \
--with-qt-dir=/usr/share/qt \
--libdir=/usr/lib

make clean
make

Nire kasuen “/opt/oracle-instantclient-11-2” karpetan dakot dana :)

1go errorie:

/src/toawr.h:57: undefined reference to `toAWR::staticMetaObject'

Konponduteko: tora-2.1.3/src/Makefile.am

topa:

BUILT_SOURCES

eta sartun: moc_toawr.cpp zerrendan, nik 1go imindxot:

...
BUILT_SOURCES = \
	moc_toawr.cpp \
	moc_toabout.cpp \
	moc_toalert.cpp \
...

oin barriro:

make clean
make

Dana juen badan ondo, okingu: tora-2.1.3/src/tora artxibue oin mobidu /usr/local/bin-era root moduen:

su
cp src/tora /usr/local/bin/tora
exit

Eskerrak:
http://sourceforge.net/projects/tora/forums/forum/131482/topic/3907194

phpize: php -ko moduloren bat konpilekeran errorie

Bueno atzokue errezeidxe ezan da gauze honerako eta oci8 konpilekeran errorie emon dost:

pecl install oci8
cp: cannot stat `shtool': No such file or directory
cp: cannot stat `libtool.m4': No such file or directory

Konponduteko

aptitude install shtool libtool

cp /usr/lib/php5/build/libtool.m4 /usr/lib/php5/build/libtool.m4.bak
ln -s /usr/share/aclocal/libtool.m4 /usr/lib/php5/build/libtool.m4

Da haur guez ostabe:

pecl install oci8
configure.in:144: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd
configure.in:144: warning: LTVERSION_VERSION is m4_require'd but not 
m4_defun'd
configure.in:144: warning: LTOBSOLETE_VERSION is m4_require'd but not 
m4_defun'd

Bueno hasi dasku ostabe popatik emoten, hori konponduteko:

cp /usr/share/local/libtool.m4 /usr/share/local/libtool.m4.bak

/usr/share/local/lt~obsolete.m4 >> /usr/share/local/libtool.m4
/usr/share/local/ltoptions.m4 >> /usr/share/local/libtool.m4
/usr/share/local/ltsugar.m4 >> /usr/share/local/libtool.m4
/usr/share/local/ltversion.m4 >> /usr/share/local/libtool.m4

Eta oin barriro:

pecl install oci8
Build process completed successfully

Oin bai!!! #WINNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

php 5.2.x instala debian squeeze gnu/linux -en

Gaur eguneko debian egonkorra: squeeze da eta bertako php bertsiñue php5.3.x duez… proba batzuk eitzeko php5.2.x instala bizandot orduen, eskerrak http://www.dotdeb.org/-ekueri .deb artxibuek dakuz prest instalateko:

aptitude install apache2-mpm-prefork build-essential autoconf
aptitude install automake1.4 libssl-dev libtool shtool
aptitude install libcurl3 libdb4.6 libkrb53 libxml2 libreadline5

# i386
wget http://packages.dotdeb.org/dists/lenny/php5/binary-i386/php5-common_5.2.17-0.dotdeb.0_i386.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-i386/libapache2-mod-php5_5.2.17-0.dotdeb.0_i386.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-i386/php5-cli_5.2.17-0.dotdeb.0_i386.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-i386/php5-cgi_5.2.17-0.dotdeb.0_i386.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-i386/php-pear_5.2.17-0.dotdeb.0_i386.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-i386/php5-curl_5.2.17-0.dotdeb.0_i386.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-i386/php5-dev_5.2.17-0.dotdeb.0_i386.deb

dpkg -i php5-common_5.2.17-0.dotdeb.0_i386.deb
dpkg -i libapache2-mod-php5_5.2.17-0.dotdeb.0_i386.deb
dpkg -i php5-cli_5.2.17-0.dotdeb.0_i386.deb
dpkg -i php5-cgi_5.2.17-0.dotdeb.0_i386.deb
dpkg -i php-pear_5.2.17-0.dotdeb.0_i386.deb
dpkg -i php5-curl_5.2.17-0.dotdeb.0_i386.deb
dpkg -i php5-dev_5.2.17-0.dotdeb.0_i386.deb

#amd64
wget http://packages.dotdeb.org/dists/lenny/php5/binary-amd64/php5-common_5.2.17-0.dotdeb.0_amd64.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-amd64/libapache2-mod-php5_5.2.17-0.dotdeb.0_amd64.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-amd64/php5-cli_5.2.17-0.dotdeb.0_amd64.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-amd64/php5-cgi_5.2.17-0.dotdeb.0_amd64.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-amd64/php-pear_5.2.17-0.dotdeb.0_amd64.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-amd64/php5-curl_5.2.17-0.dotdeb.0_amd64.deb
wget http://packages.dotdeb.org/dists/lenny/php5/binary-amd64/php5-dev_5.2.17-0.dotdeb.0_amd64.deb

dpkg -i php5-common_5.2.17-0.dotdeb.0_amd64.deb
dpkg -i libapache2-mod-php5_5.2.17-0.dotdeb.0_amd64.deb
dpkg -i php5-cli_5.2.17-0.dotdeb.0_amd64.deb
dpkg -i php5-cgi_5.2.17-0.dotdeb.0_amd64.deb
dpkg -i php-pear_5.2.17-0.dotdeb.0_amd64.deb
dpkg -i php5-curl_5.2.17-0.dotdeb.0_amd64.deb
dpkg -i php5-dev_5.2.17-0.dotdeb.0_amd64.deb

aptana / eclipse -n zelan topa espresiño erregularrak erabilitze

Aupa ba gaur haunegaz arazuegaz topa gara biarran, php-gaz biar itzen bazuien emongo zarie konture batzuk, tag laburrek erabiltzen dauiela tag luziek ordez:

<?
<?php

ordez, gero klaro proiektue itsosupetekue badan, ba hasi banan banan tag-ak topaten…

Bueno ba horretarako daku aptana / eclipse -n bilatzailie. Proiektuen gauzela:

Ctrl + H

emonda, haulako leidxo bat agertuko dasku:

Ctrl + H
Gorriz dauzenak ein bidiez marka eta bete, oin azalpena:

(\<\?[^php|xml])

Oin azalpena:

  1. ( ) Kakuek, bertan barrukue espresiño erregularra dala adierazteko
  2. \<\? = <? gauzie da honek karaktere bidxek eskapa in bidizela espresiño erregularratako karaktere berezidxek dizelako, eskapateko beti erabiltzen da\
  3. [^php|xml] php eta xml dakoienak EZ topateko, ze horrek ez daskuz interesaten, bakarrik <?(edozer) <?php eta <?xml izan ezik
  4. “File name patterns” atalan imiñi lei: *. * edozein fitxategitan topateko