Skip to Content
0
Former Member
May 06, 2007 at 06:01 PM

Using SAP RFC SDK for SAP Logon via php via Host Provider

491 Views

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?