Installing cURL on IBM I

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
LVL 2
CompTech810Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
0
Scott SilvaNetwork AdministratorCommented:
If you have 7.2 Tr6 I believe cURL is built in. i believe it is in 5733-OPS.
1
CompTech810Author Commented:
Thanks for the quick responses!

I'm new to this area of the IBMi .  Where do I find cURL?
0
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nociSoftware EngineerCommented:
Home of cURL is :  https://curl.haxx.se/
0
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.
1
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
1
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.
0
CompTech810Author 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.
0
CompTech810Author 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?
0
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.
0
CompTech810Author 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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Curl

From novice to tech pro — start learning today.