Menu

configure: error: arapi is needed

Help
2009-09-18
2012-10-23
  • Starwhooper

    Starwhooper - 2009-09-18

    I want install arapi on my contos system.
    When is start the ./configure, i get some information an the follow answer
    "configure: error: arapi is needed"
    I have set RTL_DIR to some folders, but i get everytime the same error.

    I hope that anybody help me .

     
  • Jens Yllman

    Jens Yllman - 2009-09-20

    HI,

    I think you are missing the arapi files. Read more at http://php-
    arapi.sourceforge.net/build.html.

    It is important that the include files you use match the shared objects that
    you have. It should work to build with version 6.3/7.0/7.1 of arapi.

    You also might have to apply a patch to RTL that I have uploaded to RTL and
    nobody have applied. But I think it is only needed if you use arapi 6.3.

     
  • Starwhooper

    Starwhooper - 2009-09-22

    HI jpyllman, thanks for your fast reply.

    I've put the file http://arswiki.org/projects/arapi/browser/releases/linux71p
    1/lib/arapi71.jar
    on my system and try to start ./configure --enable-
    arapi=/root/arapitest/arapi71/arapi71.jar
    But i get the same message.
    Is the arapi7.jar the wrong file ?

    My Remedyserver works with Version 7.1 Patch 4.

    I'm sorry, my english is not so good and my linux knowledge more terrible.

     
  • Jens Yllman

    Jens Yllman - 2009-09-24

    php-arapi uses the C version of arapi. So it is not the .jar file that is
    needed. And actually it not only ONE file. It is many of the files located in
    the arapi directory of a server install.

    First of all you need the .h files when compiling. And then some of the .a, or
    is it only .so files, files when linking.

    And when using you need some more of the .so files then needed in the linking.
    Because of all the dependencies.

    So the easiest way is to down load a complete .tar for your version. Untar.
    And then point to the include / lib dirs you get after untar. That is where
    all .h/.a/.so files are.

    Note: I assume you mean centos linux when you say contos.

     
  • Jens Yllman

    Jens Yllman - 2009-09-24

    small update, you only link to libar.a. But the resulting binary will try to
    load libar.so and all the libicu* files.

     
  • Jens Yllman

    Jens Yllman - 2009-09-24

    Another thing, if you run linux, have you tried the pre-compiled version
    available for download here on sf??

     
  • Starwhooper

    Starwhooper - 2009-09-24

    Hi jpyllman,
    a precompiled solution sounds very interresting for me and my my small linux
    knowledge.

    Now i have download the file php_arapi-0.3.3.so.arapi71.php5-20060613.gz and
    copy the contained file php_arapi.so in the folder /usr/lib/php/modules/.
    As next step i wrote the line extension=php_arapi.so in the file
    /etc/php.ini

    When i now start php in the console, i get the follow message:
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_arapi.so' - libar.so: cannot open shared object file: No such file or directory in Unknown on line 0

    I copy the file http://arswiki.org/projects/arapi/browser/releases/linux71p1
    /lib/libar.so
    in the same directory like the php_arapi.so, but i get the same
    errormessage.

    And yes: i use centOS.

    Thank you for spending me lots of your time.

    Greets, Thiemo

     
  • Jens Yllman

    Jens Yllman - 2009-09-24

    OK, you are still missing the libicu*.so files. You can find them in the same
    place where you loaded libar.so.

    To se if you have all files you can do ldd php_arapi.so. ldd is a program that
    show dependencies.

     
  • Starwhooper

    Starwhooper - 2009-09-25

    Great ! The tipp with ldd ist great.

    Now i have copy all the libi* files in the folder /lib.
    ldd missed so more files, but after i installed some libary packages, the
    errormessage was solved.

    When i now start ldd php_arapi.so i get only good replys.

    But now i get the error that arapi use API=20060613 and the php API=20050922.
    I affraid i have to upgrade the php to version 5.2.x, or have you an other
    tipp ?

     
  • Jens Yllman

    Jens Yllman - 2009-09-26

    You have two options, eather upgrade PHP. php-arapi that you've downloaded is
    compiled with PHP 5.2.9. But I guess any 5.2.x is OK.

    Or you compile php-arapi for the version of PHP you have installed.

     
  • Starwhooper

    Starwhooper - 2009-09-28

    Thank you very much for your time and help.
    Now i update the php to 5.2.9 and it works. :-)

     
  • Jens Yllman

    Jens Yllman - 2009-09-28

    Great.

    No, problem, good to share some info here so more people mange to use the
    software.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.