CINXE.COM
Other Platforms (BSD, Solaris, AIX, AmigaOS) | Nmap Network Scanning
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Other Platforms (BSD, Solaris, AIX, AmigaOS) | Nmap Network Scanning</title><link rel="stylesheet" type="text/css" href="/shared/css/db5.css?v=2"/><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/><link rel="prev" href="inst-macosx.html" title="Apple Mac OS X"/><link rel="next" href="inst-removing-nmap.html" title="Removing Nmap"/><link rel="canonical" href="https://nmap.org/book/inst-other-platforms.html"/> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="theme-color" content="#2A0D45"> <link rel="preload" as="image" href="/images/sitelogo.png" imagesizes="168px" imagesrcset="/images/sitelogo.png, /images/sitelogo-2x.png 2x"> <link rel="preload" as="image" href="/shared/images/nst-icons.svg"> <link rel="stylesheet" href="/shared/css/nst.css?v=2"> <script async src="/shared/js/nst.js?v=2"></script> <link rel="stylesheet" href="/shared/css/nst-foot.css?v=2" media="print" onload="this.media='all'"> <link rel="stylesheet" href="/site.css"> <!--Google Analytics Code--> <link rel="preload" href="https://www.google-analytics.com/analytics.js" as="script"> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-11009417-1', 'auto'); ga('send', 'pageview'); </script> <!--END Google Analytics Code--> <META NAME="ROBOTS" CONTENT="NOARCHIVE"> <link rel="shortcut icon" href="/shared/images/tiny-eyeicon.png" type="image/png"> </head> <body><div id="nst-wrapper"> <div id="menu"> <div class="blur"> <header id="nst-head"> <a id="menu-open" href="#menu" aria-label="Open menu"> <img width="44" height="44" alt="" aria-hidden="true" src="/shared/images/nst-icons.svg#menu"> </a> <a id="menu-close" href="#" aria-label="Close menu"> <img width="44" height="44" alt="" aria-hidden="true" src="/shared/images/nst-icons.svg#close"> </a> <a id="nst-logo" href="/" aria-label="Home page"> <img alt="Home page logo" srcset="/images/sitelogo.png, /images/sitelogo-2x.png 2x" src="/images/sitelogo.png" onerror="this.onerror=null;this.srcset=this.src" height=90 width=168></a> <nav id="nst-gnav"> <a class="nlink" href="https://nmap.org/">Nmap.org</a> <a class="nlink" href="https://npcap.com/">Npcap.com</a> <a class="nlink" href="https://seclists.org/">Seclists.org</a> <a class="nlink" href="https://sectools.org">Sectools.org</a> <a class="nlink" href="https://insecure.org/">Insecure.org</a> </nav> <form class="nst-search" id="nst-head-search" action="/search/"> <input class="nst-search-q" name="q" type="search" placeholder="Site Search"> <button class="nst-search-button" title="Search"> <img style="width:100%;aspect-ratio:1/1;" alt="" aria-hidden="true" src="/shared/images/nst-icons.svg#search"> </button> </form> </header> </div> </div> <main id="nst-content"> <nav id="nst-sitenav"> <a class="nlink" href="/download.html">Download</a> <a class="nlink" href="/book/man.html">Reference Guide</a> <a class="nlink" href="/book/">Book</a> <a class="nlink" href="/docs.html">Docs</a> <a class="nlink" href="/zenmap/">Zenmap GUI</a> <a class="nlink" href="/movies/">In the Movies</a> </nav> <header><ul class="breadcrumb-nav"><li class="breadcrumb"><a href="toc.html">Nmap Network Scanning</a></li><li class="breadcrumb"><a href="install.html">Chapter 2. Obtaining, Compiling, Installing, and Removing Nmap</a></li><li class="breadcrumb current">Other Platforms (BSD, Solaris, AIX, AmigaOS)</li></ul><nav class="docnav-header"><div class="dn-unit"><a class="dn-link dn-prev" href="inst-macosx.html" accesskey="p">Prev</a></div><div class="dn-unit"><a class="dn-link dn-next" href="inst-removing-nmap.html" accesskey="n">Next</a></div></nav></header><section class="sect1" id="inst-other-platforms"><div class="titlepage"><div><div><h2 class="title" style="clear: both">Other Platforms (BSD, Solaris, AIX, AmigaOS)</h2></div></div></div><p>Most Nmap users run the software on Linux, Windows, or Mac OS X. We consider those our top priority platforms and we maintain build and test machines to ensure that each build supports them well.</p><p>Nmap also runs on many other platforms that we don't have the resources to personally test or build binaries packages for as frequently. We rely on a passionate user community to help Nmap maintain top-notch support for the platforms on this page, and we're always happy to see Nmap expand onto other platforms.</p><p>The following sections provide tips for running Nmap on specific platforms.</p><section class="sect2" id="inst-bsd"><div class="titlepage"><div><div><h3 class="title">FreeBSD / OpenBSD / NetBSD</h3></div></div></div><a id="idm45751292995680" class="indexterm"></a><a id="idm45751292994864" class="indexterm"></a><a id="idm45751292994048" class="indexterm"></a><a id="idm45751292993232" class="indexterm"></a><p>The BSD flavors are well supported by Nmap, so you can simply compile it from source as described in <a class="xref" href="inst-source.html" title="Linux/Unix Compilation and Installation from Source Code">the section called “Linux/Unix Compilation and Installation from Source Code”</a>. This provides the normal advantages of always having the latest version and a flexible build process. If you prefer binary packages, these *BSD variants each maintain their own Nmap packages. Many BSD systems also have a <span class="emphasis"><em>ports tree</em></span> which standardizes the compilation of popular applications. Instructions for installing Nmap on the most popular *BSD variants follow.</p><section class="sect3" id="inst-openbsd"><div class="titlepage"><div><div><h4 class="title">OpenBSD Binary Packages and Source Ports Instructions</h4></div></div></div><a id="idm45751292989728" class="indexterm"></a><p>According to the <a class="ulink" href="http://www.openbsd.org/faq/" target="_top">OpenBSD FAQ</a>, users <span class="quote">“<span class="quote">are HIGHLY advised to use packages over building an application from ports. The OpenBSD ports team considers packages to be the goal of their porting work, not the ports themselves.</span>”</span> That same FAQ contains detailed instructions for each method. Here is a summary:</p><div class="orderedlist"><div class="orderedlist-title">Installation using binary packages</div><ol class="orderedlist" type="1"><li class="listitem"><p>Choose a mirror from <a class="ulink" href="http://www.openbsd.org/ftp.html" target="_top"><code class="systemitem">http://www.openbsd.org/ftp.html</code></a>, then FTP in and grab the Nmap package from <code class="filename">/pub/OpenBSD/<em class="replaceable"><code><version></code></em>/packages/<em class="replaceable"><code><platform></code></em>/nmap-<em class="replaceable"><code><version></code></em>.tgz</code>. Or obtain it from the OpenBSD distribution CD-ROM.</p></li><li class="listitem"><p>As root, execute: <span class="command"><strong>pkg_add -v nmap-<em class="replaceable"><code><version></code></em>.tgz</strong></span></p></li></ol></div><div class="orderedlist"><div class="orderedlist-title">Installation using the source ports tree</div><ol class="orderedlist" type="1"><li class="listitem"><p>If you do not already have a copy of the ports tree, obtain it via CVS using instructions at <a class="ulink" href="http://openbsd.org/faq/faq15.html" target="_top"><code class="systemitem">http://openbsd.org/faq/faq15.html</code></a>.</p></li><li class="listitem"><p>As root, execute the following command (replace <code class="filename">/usr/ports</code> with your local ports directory if it differs):</p><p><span class="command"><strong>cd /usr/ports/net/nmap && make install clean</strong></span></p></li></ol></div></section><section class="sect3" id="inst-freebsd"><div class="titlepage"><div><div><h4 class="title">FreeBSD Binary Package and Source Ports Instructions</h4></div></div></div><a id="idm45751292974400" class="indexterm"></a><p>The FreeBSD project has a whole <a class="ulink" href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html" target="_top">chapter</a> in their Handbook describing the package and port installation processes. A brief summary of the process follows.</p><section class="sect4" id="idm45751292972240"><div class="titlepage"><div><div><h5 class="title">Installation of the binary package</h5></div></div></div><p>The easiest way to install the binary Nmap package is to run <span class="command"><strong>pkg_add -r nmap</strong></span>. You can then run the same command with the <code class="option">zenmap</code> argument if you want the X-Window front-end. If you wish to obtain the package manually instead, retrieve it from <a class="ulink" href="http://freshports.org/security/nmap" target="_top"><code class="systemitem">http://freshports.org/security/nmap</code></a> and <a class="ulink" href="http://freshports.org/security/zenmap" target="_top"><code class="systemitem">http://freshports.org/security/zenmap</code></a> or the CDROM and run <span class="command"><strong>pkg_add <em class="replaceable"><code><packagename.tgz></code></em></strong></span>. </p></section><section class="sect4" id="idm45751292966560"><div class="titlepage"><div><div><h5 class="title">Installation using the source ports tree</h5></div></div></div><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>The ports tree is often installed with the system itself (usually in <code class="filename">/usr/ports</code>). If you do not already have it, specific installation instructions are provided in the FreeBSD Handbook chapter referenced above.</p></li><li class="listitem"><p>As root, execute the following command (replace <code class="filename">/usr/ports</code> with your local ports directory if it differs):</p><p><span class="command"><strong>cd /usr/ports/security/nmap && make install clean</strong></span></p></li></ol></div></section></section><section class="sect3" id="inst-netbsd"><div class="titlepage"><div><div><h4 class="title">NetBSD Binary Package Instructions</h4></div></div></div><a id="idm45751292960352" class="indexterm"></a><p>NetBSD has packaged Nmap for an enormous number of platforms, from the normal i386 to PlayStation 2, PowerPC, VAX, SPARC, MIPS, Amiga, ARM, and several platforms that I have never even heard of! A list of NetBSD Nmap packages is available from <a class="ulink" href="ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/net/nmap/README.html" target="_top"><code class="systemitem">ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/net/nmap/README.html</code></a> and a description of using their package system to install applications is available at <a class="ulink" href="http://netbsd.org/Documentation/pkgsrc/using.html" target="_top"><code class="systemitem">http://netbsd.org/Documentation/pkgsrc/using.html</code></a>.</p></section></section><section class="sect2" id="inst-solaris"><div class="titlepage"><div><div><h3 class="title">Oracle/Sun Solaris</h3></div></div></div><a id="idm45751292955440" class="indexterm"></a><a id="idm45751292954624" class="indexterm"></a><a id="idm45751292953520" class="indexterm"></a><p>Solaris has long been well-supported by Nmap, though we rely heavily on the Nmap community to help keep it that way. We recommend compiling and installing Nmap from source as described in <a class="xref" href="inst-source.html" title="Linux/Unix Compilation and Installation from Source Code">the section called “Linux/Unix Compilation and Installation from Source Code”</a>. If you have trouble, try sending a report with full details to the <em class="citetitle">nmap-dev</em> mailing list<a id="idm45751292950896" class="indexterm"></a>, as described in <a class="xref" href="man-bugs.html" title="Bugs">the section called “Bugs”</a>. Also let us know if you develop a patch which improves Solaris support so we can incorporate it into Nmap for the benefit of other Solaris users.</p></section><section class="sect2" id="inst-aix"><div class="titlepage"><div><div><h3 class="title">IBM AIX</h3></div></div></div><a id="idm45751292948000" class="indexterm"></a><a id="idm45751292947184" class="indexterm"></a><p> Nmap can be installed from source on IBM AIX by following the instructions in <a class="xref" href="inst-source.html" title="Linux/Unix Compilation and Installation from Source Code">the section called “Linux/Unix Compilation and Installation from Source Code”</a>. You need only pay attention to a few details. </p><p> You must use the <span class="command"><strong>gcc</strong></span><a id="idm45751292944192" class="indexterm"></a> compiler, not <span class="command"><strong>xlc</strong></span>. Nmap's configure script will automatically find <span class="command"><strong>gcc</strong></span> if it is somewhere in the <code class="envar">PATH</code><a id="idm45751292941616" class="indexterm"></a> environment variable. </p><p> Some editions of the default <span class="command"><strong>as</strong></span><a id="idm45751292939152" class="indexterm"></a> assembler either <a class="ulink" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33577" target="_top">crash</a> or <a class="ulink" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072" target="_top">produce object files that can't be linked</a>. This is what's happening if you see compiler output like this: </p><pre class="screen">g++: internal compiler error: Segmentation fault (program as) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. </pre><p> </p><pre class="screen">ld: 0711-596 SEVERE ERROR: Object ../nsock/src/libnsock.a[nsock_core.o] An RLD for section 2 (.data) refers to symbol 1794, but the storage class of the symbol is not C_EXT or C_HIDEXT. </pre><p> </p><p> You can work around this problem by installing the <span class="command"><strong>as</strong></span> from GNU binutils<a id="idm45751292933216" class="indexterm"></a>. (But not <span class="command"><strong>ld</strong></span>; you want to continue using the default <span class="command"><strong>ld</strong></span>.) These instructions were tested on AIX 7.1 with <code class="filename">binutils-2.22</code> from <code class="literal">http://ftp.gnu.org/gnu/binutils</code>. </p><pre class="screen">$ <strong class="userinput"><code>bzip2 -dc binutils-2.22.tar.bz2 | tar -xvf -</code></strong> $ <strong class="userinput"><code>cd binutils-2.22</code></strong> $ <strong class="userinput"><code>./configure --disable-werror --disable-largefile CFLAGS="-O2 -Wall"</code></strong> $ <strong class="userinput"><code>gmake</code></strong> $ <strong class="userinput"><code>cd gas</code></strong> $ <strong class="userinput"><code>su</code></strong> # <strong class="userinput"><code>gmake install</code></strong> </pre><p> This will install <span class="command"><strong>as</strong></span> in <code class="filename">/usr/local/bin</code>. The custom <code class="varname">CFLAGS</code><a id="idm45751292921872" class="indexterm"></a> omit <code class="option">-g</code>,<a id="idm45751292920512" class="indexterm"></a> which would otherwise cause one of the <span class="command"><strong>as</strong></span> errors you are trying to work around. You must make sure that <code class="filename">/usr/local/bin</code> appears before <code class="filename">/usr/bin</code> in <code class="envar">PATH</code><a id="idm45751292916912" class="indexterm"></a> while building and configuring Nmap. </p><pre class="screen">$ <strong class="userinput"><code>export PATH="/usr/local/bin:$PATH"</code></strong> </pre><p> In some cases GCC is configured to use an absolute path to the assembler. In this case you will have to temporarily move the default assembler out of the way. You can test whether this is the case by passing the <code class="option">-print-prog-name=as</code> option to <span class="command"><strong>gcc</strong></span>: </p><pre class="screen">$ <strong class="userinput"><code>gcc -print-prog-name=as</code></strong> /usr/bin/as </pre><p> If you see the output <code class="computeroutput">/usr/bin/as</code>, then you must disable the system <code class="filename">as</code> with a command like <span class="command"><strong>mv /usr/bin/as /usr/bin/as.backup</strong></span>. If you see the output <code class="computeroutput">as</code>, then no other changes should be required. </p><p> Now follow the instructions in <a class="xref" href="inst-source.html" title="Linux/Unix Compilation and Installation from Source Code">the section called “Linux/Unix Compilation and Installation from Source Code”</a>. </p></section><section class="sect2" id="inst-amiga"><div class="titlepage"><div><div><h3 class="title">AmigaOS</h3></div></div></div><a id="idm45751292905968" class="indexterm"></a><p>One of the wonders of open source development is that resources are often directed towards what people find exciting rather than having an exclusive focus on profits as most corporations do. It is along those lines that the Amiga port came about. Diego Casorran<a id="idm45751292904624" class="indexterm"></a> performed most of the work and sent in a clean patch which was integrated into the main Nmap distribution. In general, AmigaOS users should be able to simply follow the source compilation instructions in <a class="xref" href="inst-source.html" title="Linux/Unix Compilation and Installation from Source Code">the section called “Linux/Unix Compilation and Installation from Source Code”</a>. You may encounter a few hurdles on some systems, but I presume that must be part of the fun for Amiga fanatics.</p></section><section class="sect2" id="inst-unix"><div class="titlepage"><div><div><h3 class="title">Other proprietary UNIX (HP-UX, IRIX, etc.)</h3></div></div></div><a id="idm45751292901824" class="indexterm"></a><a id="idm45751292901008" class="indexterm"></a><p>Nmap has in the past supported many proprietary Unix flavors such as HP-UX and SGI IRIX. We depend heavily on the user community to maintain adequate support for these systems. If you have trouble, try sending a report with full details to the <em class="citetitle">nmap-dev</em> mailing list<a id="idm45751292899232" class="indexterm"></a>, as described in <a class="xref" href="man-bugs.html" title="Bugs">the section called “Bugs”</a>. Also let us know if you develop a patch which improves support on your platform so we can incorporate it into Nmap.</p></section></section><footer><hr/><nav class="docnav-footer"><div class="dn-unit"><a class="dn-link dn-prev" href="inst-macosx.html">Prev</a><span class="dn-title">Apple Mac OS X</span></div><div class="dn-unit"><a class="dn-link dn-up" href="install.html" accesskey="u">Up</a><span class="dn-title">Chapter 2. Obtaining, Compiling, Installing, and Removing Nmap</span></div><div class="dn-unit"><a class="dn-link dn-home" href="toc.html" accesskey="h">Home</a></div><div class="dn-unit"><a class="dn-link dn-next" href="inst-removing-nmap.html">Next</a><span class="dn-title">Removing Nmap</span></div></nav></footer> </main><!-- content --> <footer id="nst-foot"> <form class="nst-search" id="nst-foot-search" action="/search/"> <input class="nst-search-q" name="q" type="search" placeholder="Site Search"> <button class="nst-search-button" title="Search"> <img style="width:100%;aspect-ratio:1/1;" alt="" aria-hidden="true" src="/shared/images/nst-icons.svg#search"> </button> </form> <div class="flexlists"> <div class="fl-unit"> <h2><a class="nlink" href="https://nmap.org/">Nmap Security Scanner</a></h2> <ul> <li><a class="nlink" href="https://nmap.org/book/man.html">Ref Guide</a> <li><a class="nlink" href="https://nmap.org/book/install.html">Install Guide</a> <li><a class="nlink" href="https://nmap.org/docs.html">Docs</a> <li><a class="nlink" href="https://nmap.org/download.html">Download</a> <li><a class="nlink" href="https://nmap.org/oem/">Nmap OEM</a> </ul> </div> <div class="fl-unit"> <h2><a class="nlink" href="https://npcap.com/">Npcap packet capture</a></h2> <ul> <li><a class="nlink" href="https://npcap.com/guide/">User's Guide</a> <li><a class="nlink" href="https://npcap.com/guide/npcap-devguide.html#npcap-api">API docs</a> <li><a class="nlink" href="https://npcap.com/#download">Download</a> <li><a class="nlink" href="https://npcap.com/oem/">Npcap OEM</a> </ul> </div> <div class="fl-unit"> <h2><a class="nlink" href="https://seclists.org/">Security Lists</a></h2> <ul> <li><a class="nlink" href="https://seclists.org/nmap-announce/">Nmap Announce</a> <li><a class="nlink" href="https://seclists.org/nmap-dev/">Nmap Dev</a> <li><a class="nlink" href="https://seclists.org/fulldisclosure/">Full Disclosure</a> <li><a class="nlink" href="https://seclists.org/oss-sec/">Open Source Security</a> <li><a class="nlink" href="https://seclists.org/dataloss/">BreachExchange</a> </ul> </div> <div class="fl-unit"> <h2><a class="nlink" href="https://sectools.org">Security Tools</a></h2> <ul> <li><a class="nlink" href="https://sectools.org/tag/vuln-scanners/">Vuln scanners</a> <li><a class="nlink" href="https://sectools.org/tag/pass-audit/">Password audit</a> <li><a class="nlink" href="https://sectools.org/tag/web-scanners/">Web scanners</a> <li><a class="nlink" href="https://sectools.org/tag/wireless/">Wireless</a> <li><a class="nlink" href="https://sectools.org/tag/sploits/">Exploitation</a> </ul> </div> <div class="fl-unit"> <h2><a class="nlink" href="https://insecure.org/">About</a></h2> <ul> <li><a class="nlink" href="https://insecure.org/fyodor/">About/Contact</a> <li><a class="nlink" href="https://insecure.org/privacy.html">Privacy</a> <li><a class="nlink" href="https://insecure.org/advertising.html">Advertising</a> <li><a class="nlink" href="https://nmap.org/npsl/">Nmap Public Source License</a> </ul> </div> <div class="fl-unit social-links"> <a class="nlink" href="https://twitter.com/nmap" title="Visit us on Twitter"> <img width="32" height="32" src="/shared/images/nst-icons.svg#twitter" alt="" aria-hidden="true"> </a> <a class="nlink" href="https://facebook.com/nmap" title="Visit us on Facebook"> <img width="32" height="32" src="/shared/images/nst-icons.svg#facebook" alt="" aria-hidden="true"> </a> <a class="nlink" href="https://github.com/nmap/" title="Visit us on Github"> <img width="32" height="32" src="/shared/images/nst-icons.svg#github" alt="" aria-hidden="true"> </a> <a class="nlink" href="https://reddit.com/r/nmap/" title="Discuss Nmap on Reddit"> <img width="32" height="32" src="/shared/images/nst-icons.svg#reddit" alt="" aria-hidden="true"> </a> </div> </div> </footer> </div><!-- wrapper --> </body> </html>