Skip to Content
avatar image
Former Member

saprfc on unix

Hi all,

i've got SAPRFC on windows. Works great. I was trying to get it on Unix too. Different distributions(Ubuntu, Gentoo, etc). Everything it's installed like in the INSTALL doc. Unfortunettely when i try to run a test i get "SAPRFC extension not loaded".

On Windows System this error apears if SAPRFC and PHP versions are not like "sisters". Anyway after finding right saprfc module for right php version, it works. But on Unix systems what should i do because there is one single new saprfc module version: 1.4.1 or an old one 1.4.

Can you tell me a hint? Has anyone experineced this kind of problem?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Jan 14, 2008 at 09:02 AM

    So..nobody has a hint. Nobody experienced this kind of trouble? Guys..pls...any idea...????

    Add comment
    10|10000 characters needed characters exceeded

    • I haven't tried it either but i believe it is developed on unix and recompiled on windows. That of course could be a vicious rumour.

      Have you - dare I ask tried building it on Unix. I the instructions are pretty clear, from memory.

      HTH

      Nigel

  • avatar image
    Former Member
    Jan 15, 2008 at 07:12 AM

    building it on Unix? i can't get the idea? are you talking about rebuild php with saprfc?

    i will explain just for 2 sec my steps for installing it. maybe you will have a clue:

    1. i've extracted SAP RFCSDK to /usr/sap/rfcsdk directory

    2. Extract source tarball 1.4.1 to /usr/sap/module

    3. in /usr/sap/module/ :

    - phpize

    - ./configure

    - make

    - make install

    4. Enabled saprfc extension editing your php.ini

    5. Restart apache

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 15, 2008 at 01:03 PM

    i've made some work arround. It seams that my compiled saprfc.so library it's not good.

    does anybody have a good library to download from?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 16, 2008 at 09:42 AM

    hi all,

    using Koucký Eduard knowledge i finally get it. Thus i will describe my steps for making it working:

    Additional steps for installing SAPRFC library on unix systems

    Tested on:

    Platform: Ubuntu 32 bit

    PHP Version: 5.1.6

    Apache Version: 2.2.3

    Saprfc library Version: 1.4.1

    1. verify system BIT (32 or 64)

    2. download RFCSDK for your system BIT (6.20 Non-Unicode or 6.40 Non-Unicode)

    3. put RFCSDK in /usr/sap/

    4. create in /usr/sap/, module directory or any other name (/usr/sap/module/)

    5. copy SAPRFC 1.4.1 library in /usr/sap/module/

    6. run install (in /usr/sap/module/) process described in INSTALL.txt (saprfc library files)

    phpize

    ./configure

    make

    make install

    7. verify if saprfc.so is installed in default php extension directory

    8. verify if rfcsdk librfccm.so is linked with saprfc.so extension Result something like:

    linux-gate.so.1 => (0xffffe000)

    librfccm.so => /usr/sap/rfcsdk/lib/librfccm.so (0xb7a60000)

    libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7920000)

    libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb791b000)

    librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7912000)

    libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb78ff000)

    libstdc++-libc6.2-2.so.3 => not found

    libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb78d9000)

    /lib/ld-linux.so.2 (0x80000000)

    9. copy (for eventual problems) librfccm.so to /usr/lib/

    10. restart apache

    11. enjoy ..drink a beer or somethinÂ’ with alcohool.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Perhaps some of you experts will get this and help me get around this problem. So here we go, I am not a Unix/Linux guy, but I have this situation where I need to use SAPRFC on our Linux box to connect to ECC.

      I have read through this post and followed that I have to compile some of the codes on Unix. Is the same on Linux too? If yes, can someone please help me on where,how and what to compile on this linux box.

      Also, where do I get this install document mentioned in this post.

      Here is my post jco-rfcsdk-on-linux

      Any help will be deeply appreciated.

  • avatar image
    Former Member
    Feb 07, 2008 at 01:19 PM

    Thanks to Eduard

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 19, 2009 at 08:04 AM

    SAPRFC for PHP installs smoohly onrecen versions like REDHAT

    f you are using FC8 or older versions you may face

    libstdc++-libc6.2-2.so.3 => not found

    ldd of all the RFCSDK bin giles will show this

    Soultion is to install (for FC8)

    compat-libstdc++-296-2.96-139.i386.rpm for FC8 by rpmfind

    http://rpm.pbone.net/index.php3/stat/4/idpl/9852545/com/compat-libstdc++-296-2.96-139.i386.rpm.html

    has this

    rfcping provided by SAP in the SDK should be the first test.

    ex. rfcping ashost=/H/YOURASNAME sysnr=20

    Add comment
    10|10000 characters needed characters exceeded