Having major problems trying to installPHP/Easysoft ODBC drivers on RHEL 5 system.

Discussion in 'PHP' started by ipa, Apr 30, 2009.

  1. #1
    The log file says that it (PHP) cannot open the odbc.so file:

    [30-Apr-2009 13:44:43] PHP Warning: PHP Startup: Unable to load dynamic library
    '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/odbc.so' - libodbc.so.
    1: failed to map segment from shared object: Permission denied in Unknown on lin
    e 0

    I looked up the error and came across this page:

    http://www.easysoft.com/developer/languages/php/apache_odbc.html


    scroll to the bottom it has some info about

    ‘Make sure the dynamic linker can find the unixODBC driver manager shared object libodbc.xx and any shared objects required by the ODBC driver. This means adding their paths to LD_LIBRARY_PATH, LIBPATH or SHLIBPATH environment variables or editing /etc/ld.so.conf, depending on your platform.’

    I added:

    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/easysoft/unixODBC/lib:/usr/local/easysoft/lib

    export LD_LIBRARY_PATH

    That did not make a difference either.

    On google search it seems libpath and shlibpath are versions of LD_LIBRARY_PATH for other Linux OSs?

    Anyone any idea what this error is trying to tell me?

    thanks.
     
    ipa, Apr 30, 2009 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    First off, was php working fine before you tried installing this odbc extension?

    Were you able to confirm that unixodbc was installed correctly?

    Lastly, did you recompile php with the odbc extension included? I don't think it's possible to just add the odbc extension to the php.ini file as you would do with windows. In this case, it requires recompiling php.
     
    jestep, Apr 30, 2009 IP
  3. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #3
    Estevan, Apr 30, 2009 IP