on 05-06-2007 7:01 PM
I'm trying to do this. I have moved all the files up to one directory available via /home/sapsuper/public_html/SAPRFC by a host provider. When I do "phpize", that runs fine with just a couple of messages re: some function being recursively called.
But when I do the ./configure, I get messages which seem to imply that the php.ini system settings are not being overwritten with my own php.ini settings in the SAP directory:
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/ph
p/TSRM -I/usr/include/php/Zend
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking for saprfc support... yes, shared
configure: error: Please install Non-Unicode SAP RFCSDK 6.20 or 6.40 - I cannot find sapr
fc.h
I have the includes in /home/sapsuper/public_html/SAPRFC/include and the extensions in /home/sapsuper/public_html/SAPRFC/includes. The directory itself is /home/sapsuper/public_html/SAPRFC and here Is a list of the files it contains:
acinclude.m4
configure*
rfccal.h
.aclocal.m4
configure.in
sapclasses/
CREDITS
autom4te.cache/
example_userlist.php
saprfc.c
ChangeLog
bin/
extensions/
saprfc.dsp
INSTALL
build/
include/
saprfc.dsp5
INSTALL.hints
client.php
install-sh
saprfc.h
INSTALL.txt
config.guess*
lib/
saprfc.html
LICENSE
config.h.in
ltmain.sh
saprfc.php
Makefile.fragments
config.log
missing
saprfc_test.php
Makefile.global
config.m4
mkinstalldirs
server.php
Makefile.in
config.m4-4.0.5
php.ini
test_sso.php
Makefile.objects
config.m4-4.3.0
php_saprfc.dll
text/
PLATFORMS
config.nice*
php_saprfc.h
trfcserv.php
README.compile
config.sub*
rfccal.c
My path is set to /usr/local/jdk/bin:/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/bin:/bin:/usr/X1
1R6/bin:/usr/local/bin:/usr/X11R6/bin:/home/sapsuper/bin:/home/sapsuper/public_html/SAPRF
C/include:/home/sapsuper/public_html/SAPRFC/extensions.
My pertinent php.ini settings are:
include_path = ".:/usr/lib/php:/usr/local/lib/php:/home/sapsuper/public_html/SAPRFC/include:/home/sapsuper/public_html/SAPRFC/extensions" ;
extension_dir = ".:/home/sapsuper/public_html/SAPRFC/extensions"
extension=saprfc.so
Anyone done this before? What am I doing wrong?
Hi,
you need RFCSDK (can be downloaded from SAP Service Market Place) for compilation and run of saprfc. Standard paths where must be RFCSDK placed are: /usr/sap/rfcsdk /usr/local/rfcsdk /opt/rfcsdk . You can change this paths in the config.m4 file. You also have to shared library librfccm.so from RFCSDK in the some system library directory (/etc/ld.so.conf).
Eduard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry to bother you, but there is not so much information about saprfc and Linux set-up, and I can't wait to use your php module...
> Hi,
>
> ...You also have to shared library librfccm.so from RFCSDK in the some system library directory
> (/etc/ld.so.conf).
>
> Eduard
Hum, could you be more specific? Maybe I m missing something here....
I m trying to run SAPRFC on a Linux box (<b>Ubuntu with PHP 5.2.1</b>)
I m using the rfcsdk in /usr/sap/rfcsdk/
Everything looks fine while I run ./configure... except it say:
Checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
Buy the Way:
I did changed the php.ini, adding the lines: in /etc/php5/apache2/php.ini
;;;;;;;;;;;;;;;;;;;;;;
; SAPRFC Extension ;
;;;;;;;;;;;;;;;;;;;;;;
;http://saprfc.sourceforge.net/
;
extension=saprfc.so
;
and the php module : /etc/php5/conf.d/saprfc.in
configuration for php SAPRFC module
extension=saprfc.so
I also took care of my /etc/services
##> All those are set-up for SAP RFC
##
#
SAP services
sapdp00 3200/tcp
sapdp01 3201/tcp
...
I also tried to fix the <b>/etc/ld.so.conf</b>
Begin /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
/usr/local/lib/*
/usr/sap/rfcsdk/lib/librfccm.so
End /etc/ld.so.conf
And run ldconfig to update it... But this is the first time I hear about this file... maybe I m doing it wrong... Or maybe it doesn't work with php 5.2.1 ... or I just should move to OpenSUSE 10.1 ? All our production servers are under Debian... it will be a big fuss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.