Monday, April 22, 2013

lsof for Solaris 11

 Solaris 11 default repository does not contain lsof package. So i headed for sunfreeware and downloaded lsof v4.80 and tried compiling it on Solaris 11 box. But it was not successful and seems not supported.


  If you want to download binary please find the compiled lsof below :
Download lsof for Solaris 11 x64 v 4.87 lsof_x86
Download lsof for Solaris 11 Sparc v 4.87 lsof_sparc


Later I found the latest source 4.87 at :
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
Same source file should work for sparc and x64.

I downloaded it; and it compiled like a charm.

Steps:
Required packages:

I used compiler gcc-45 ( older may work) :
developer/gcc-45
system/library/gcc-45-runtime

Header files:
system/library/gcc-45-runtime

After downloading the latest source file unzip it and compile as below :

  1. # gunzip lsof_4.87.tar.gz
  2. # tar -xvf lsof_4.87.tar
  3. # cd lsof_4.87/
  4. # tar -xvf lsof_4.87_src.tar
  5. # cd lsof_4.87_src
  6. # ./Configure solaris
  7. # make
  8. # make install
  9. # ./lsof





Enjoy !!

4 comments:

  1. Unfortunately this file is no longer available, the service has been discontinued. For details, see: http://blog.canonical.com/2014/04/02/shutting-down-ubuntu-one-file

    ReplyDelete
  2. Can it be made available somewhere else? Please...???? :)

    ReplyDelete