Installing cURL on IBM I

CompTech810
CompTech810 used Ask the Experts™
on
I'm trying to install cURL on our IBM I v.7.2 and have downloaded the AIX binary to the IFS root directory using Navigator.  I have run the command CALL QP2TERM which opens the PASE command line, CD to directory :  Mycurl\opt\freeware\bin\   which has listed curl , curl_32 and curl_64.  when I run  'curl' from the command line I get this error:
 > curl                                                                                  
   exec(): 0509-036 Cannot load program curl_64 because of the following errors:        
           0509-150   Dependent module libcurl.a(libcurl.so.4) could not be loaded.      
           0509-022 Cannot load module libcurl.a(libcurl.so.4).                          
           0509-026 System error: A file or directory in the path name does not exist.  

I can not find any simple steps on installing cURL on the IBM I.  Please help, thanks!       I downloaded cURL from:  https://curl.haxx.se/download.html   AIX
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Mihai BarbosTrying to tame bits. They're nasty.

Commented:
I'm not an AIX specialist, but I think you need to change the LD_LIBRARY_PATH so that it includes the directory where libcurl.so.4 resides
Scott SilvaNetwork Administrator

Commented:
If you have 7.2 Tr6 I believe cURL is built in. i believe it is in 5733-OPS.

Author

Commented:
Thanks for the quick responses!

I'm new to this area of the IBMi .  Where do I find cURL?
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

nociSoftware Engineer
Distinguished Expert 2018

Commented:
Home of cURL is :  https://curl.haxx.se/
Gary PattersonVP Technology / Senior Consultant

Commented:
Download the IBM i version based on the instructions in the Wiki I provided above, not from curl.haxx.se.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Working with AIX... Super ugly, hair pulling experience, on the best of days.

When you have to install public domain software, you can end up in a dark corner mumbling to yourself.

Take Gary's advice. Unless your a hardcore, uber geek, download per Gary's instructions.
Gary PattersonVP Technology / Senior Consultant

Commented:
And to make things more complex, IBM i is not AIX.  Completely separate OS, and not based on any of the Unix style OSes.   IBM i is the modern version of the AS400 operating system, OS/400.  

THere is an AIX emulation environment called PASE that runs on IBM i, and that supports execution of AIX binaries (similar to WINE or Cygwin under Windows).  As with all tools of this sort, PASE also introduces occasional complications.   In the past, my advice was simple, install the AIX binaries in PASE if you want to use cURL.

But now IBM is offering prepackaged, tested builds of common open source tools like cURL (they still run in PASE), with some limited support and updates delivered through normal IBM i delivery channels.  Most IBM i shops will find the process familiar.  So if you are on a supported IBM i release, use the IBM distributions, install methods, and update methods where they are available, and only resort to AIX binaries or compilation from source if you need a tool that IBM isnt yet supplying.

Author

Commented:
Thanks Gary and I got a kick out of David's comment!!  I'm now trying to determine if 5733-OPS is installed, because I am the only IT person I rely on a support company for OS PTF installs.

Author

Commented:
Ok,  This is driving me nuts.  Not just because I'm new to cURL and PASE, now 5733OPS is installed and I can't find any decent documentation on were to run cURL from, where is cURL installed, etc.   I know see that I have 5733OPS.  I have run the QP2TERM then try running a curl command:  curl www.google.com ......   and I get: /QOpenSys/usr/bin/-sh: curl:  not found.  Where is cURL?
Gary PattersonVP Technology / Senior Consultant

Commented:
5733 ops is a placeholder.  You need to install the ptfs too.  They contain the actual code. .or you can use RPM.  Specific steps are in the Developerworks link I posted previously.

Author

Commented:
Hi Gary, thanks for responding.  As you know I'm new to this side of the IBM i.  From what I see using GO LICPGM
5733OPS   *INSTALLED   IBM i Open Source Solutions  
5733OPS   *INSTALLED   Node.js v0 (deprecated)      
5733OPS   *INSTALLED   Python 3.4                    
5733OPS   *INSTALLED   Chroot with gcc              
5733OPS   *INSTALLED   Python 2.7                    
5733OPS   *INSTALLED   Node.js v4                    
5733OPS   *INSTALLED   Git                          
5733OPS   *INSTALLED   Tools            
5733OPS   *INSTALLED   Eclipse Orion    
5733OPS   *INSTALLED   Cloud-Init for i  
5733OPS   *INSTALLED   Node.js v6        

Where can I find the program cURL, what library is it contained in.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial