AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

LIBPATH error for curl & xmllint

  • 1.  LIBPATH error for curl & xmllint

    Posted Sat April 15, 2017 04:29 AM

    Originally posted by: Niranjan L


    Hello,

    I wish to use the commands curl xmllint on by AIX box. To make them work, I have had to add entries into my LIBPATH variable. However, I cannot seem to get them to work together.

    When my LIBPATH=/opt/freeware/lib64/:/opt/freeware/lib/:/usr/lib/xmllint works fine, but curl doesn't.  (Attached curl_error.png)

    When my LIBPATH=/opt/freeware/lib64/:/usr/libcurl works fine but xmllint doesn't. (Attached xmllint_error.png)

    Is there a way to get them both working together? I do not have much knowledge on the package installation steps though and I do not have root access.


    #AIX-Forum


  • 2.  Re: LIBPATH error for curl & xmllint

    Posted Mon April 17, 2017 06:56 AM

    Originally posted by: sanket


    From where did you get curl and xmllint ?

    Do you really have to set LIBPATH before running these commands ? Does it not work without setting LIBPATH ?

    The AIX toolbox provided curl and xmllint (libxml2) do not require to set any LIBPATH. So you may consider installing it from AIX toolbox.

     

    If you really want to set LIBPATH before running these commands one of the workaround I can think of is to creating alias and use them

    alias xmllint='LIBPATH=/opt/freeware/lib64/:/opt/freeware/lib/:/usr/lib/ xmllint'

    alias curl='LIBPATH=/opt/freeware/lib64/:/usr/lib curl'

     

    For open source tools/software related questions post on AIX open source software forum 

     

    Thanks

    Sanket

     


    #AIX-Forum