Using Mkmf to Verify Libraries

Discussion in 'Ruby' started by Steven Hansen, Dec 6, 2006.

  1. Hi,

    I'm trying to use the 'mkmf' library to determine if a given library is
    installed.

    I have two identical machines.

    On machine 1:
    find_library('mysqlclient', 'mysql_query', '/path/to/lib') => true


    On machine 2:
    find_library('mysqlclient', 'mysql_query', '/path/to/lib') => false


    I'm stumped. Does anyone have any idea what could be causing this?

    libmysqlclient.a is installed in the exact same location on both machines.

    Regards,
    Steven
     
    Steven Hansen, Dec 6, 2006
    #1
    1. Advertisements

  2. The last time I hit a similar situation it turned out I didn't have read
    permissions on the library I was looking for. That may be it.

    Regards,

    Dan
     
    Daniel Berger, Dec 6, 2006
    #2
    1. Advertisements

  3. Daniel and Vince, thanks for the leads. :)

    Regards,
    Steven
     
    Steven Hansen, Dec 6, 2006
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.