Saturday, April 09, 2011

Installing wget in Solaris 10

In Solaris 10 there is no need to install wget as it is already included in /usr/sfw/bin/wget

To install wget from sources was such a pain in this fresh box that I decided to document it all.
  1. Get the binary from ftp://ftp.sunfreeware.com/pub/freeware/ for your platform in my case it was intel so I got it from ftp://ftp.sunfreeware.com/pub/freeware/intel/10/wget-1.12-sol10-x86-local.gz
  2. Upload the file to the server and run the below commands in there:
    $ gunzip wget-1.12-sol10-x86-local.gz
    $ pkgadd -d wget-1.12-sol10-x86-local
    
  3. In my case running wget after the installation was really painful. I had to install openssl-1.0.0d-sol10-x86-local, libiconv-1.13.1-sol10-x86-local, libgcc-3.4.6-sol10-x86-local, libidn-1.19-sol10-x86-local, libintl-3.4.0-sol10-x86-local. To save time I recommend you find out if there is any dependencies missing:
    $ ldd /usr/local/bin/wget 
    
  4. If any of the dependencies is missing then find it in your system like below but be prepared you might need to install some of them if you do not find them
    $find / -name libgcc_s.so.1
    
  5. Finally add it to your dynamic libraries load path:
    $ vi ~/.bash_profile
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssl/lib
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/gcc4/lib
    $ source ~/.bash_profile
    

No comments:

Followers