So far I have the followin result:

===>    Verifying install for /usr/local/oracle8-client/lib/libclntsh.a in /usr/ports/databases/oracle8-client
===>  oracle8-client-0.2.0_1 is only for i386, while you are running amd64.

I need oracle connectivity from PHP5, preferably thru PDO.

link|improve this question
Have you tried removing the "ONLY_FOR_ARCHS= i386" from the port's Makefile and try to build it anyway ? – mat Feb 16 '10 at 21:30
feedback

1 Answer

I think best chose available is to setup jail or chroot environment.

# cd /usr/src 
# make buildworld installworld distribution TARGET=i386 DESTDIR=/compat/i386
# chroot /compat/i386
# /etc/rc.d/ldconfig start
# mount -t devfs devfs /dev
# exit
# kldload nullfs
# mount -t nullfs /usr/ports /compat/i386/usr/ports

Don't forget to set environment:

# chroot /compat/i386
# setenv MACHINE i386
# setenv UNAME_p i386
# setenv UNAME_m i386
# cd /usr/ports/databases/oracle8-client

I have tried this for wine in FreeBSD 8.1 amd64, you can check FreeBSD wine wiki.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.