{"id":32,"date":"2015-01-05T18:04:01","date_gmt":"2015-01-05T18:04:01","guid":{"rendered":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=32"},"modified":"2023-09-23T13:46:36","modified_gmt":"2023-09-23T13:46:36","slug":"compilation","status":"publish","type":"page","link":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=32","title":{"rendered":"Compile"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Dependencies<\/h2>\n\n\n\n<p>Before you compile, you should make sure you have what&#8217;s required:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Posix-compliant Unix.&nbsp; Linuxes qualify.&nbsp; Mac OS X qualifies, too.<\/li>\n\n\n\n<li>A decent C compiler.&nbsp; On Linux, <a class=\"ext-link\" href=\"https:\/\/gcc.gnu.org\/\"><span class=\"icon\">\u200b<\/span>gcc<\/a> 2.x, 3.x or 4.x should be fine.&nbsp; On Mac OS X, you don&#8217;t have much of a choice: use the compiler provided with <a title=\"Xcode\" href=\"https:\/\/itunes.apple.com\/fr\/app\/xcode\/id497799835?mt=12\">Xcode<\/a>.<\/li>\n<\/ul>\n\n\n\n<p>The following list of packages is extremely recommended, although Orchids should compile and work without them:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a class=\"ext-link\" href=\"https:\/\/www.net-snmp.org\/\">Net-SNMP<\/a> for SNMP event handling. &nbsp;On Mac OS X, this is already installed by default.&nbsp; On Linuxes, use <code>apt-get install libsnmp-base libsnmp-dev<\/code>.<\/li>\n\n\n\n<li><a class=\"ext-link\" href=\"https:\/\/www.tcpdump.org\/\"><span class=\"icon\">\u200b<\/span>libpcap<\/a> to fetch information on network packets.&nbsp; On Linuxes, use <code>apt-get install libpcap0.8 libpcap0.8-dev<\/code>.<\/li>\n\n\n\n<li><a class=\"ext-link\" href=\"https:\/\/xmlsoft.org\/\">libxml2<\/a> to handle XML-based formats such as IDMEF and IODEF.&nbsp;&nbsp;On Mac OS X, this is already installed by default.&nbsp; On Linuxes, use <code>apt-get install libxml2 libxml2-dev<\/code>.<\/li>\n\n\n\n<li><a class=\"ext-link\" href=\"https:\/\/dev.prelude-technologies.com\/wiki\/prelude\/InstallingPreludeLibrary\"><span class=\"icon\">\u200b<\/span>libprelude, libpreludedb<\/a> to integrate with Prelude (as a source of alerts) and with Prewikka (as a graphical front-end).&nbsp; On Linuxes, use <code>apt-get install libpreludedb0 libprelude-dev libpreludedb-dev<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>You will also need to following tools:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a class=\"ext-link\" href=\"https:\/\/www.gnu.org\/software\/autoconf\/\"><span class=\"icon\">\u200b<\/span>Autoconf<\/a> (on Linuxes, <code>apt-get install autoconf<\/code>)<\/li>\n\n\n\n<li><a class=\"ext-link\" href=\"https:\/\/www.gnu.org\/software\/automake\/\"><span class=\"icon\">\u200b<\/span>Automake<\/a><\/li>\n\n\n\n<li><a class=\"ext-link\" href=\"https:\/\/www.gnu.org\/software\/libtool\/\"><span class=\"icon\">\u200b<\/span>Libtool<\/a><\/li>\n\n\n\n<li><a class=\"ext-link\" href=\"https:\/\/www.gnu.org\/software\/bison\/\"><span class=\"icon\">\u200b<\/span>Bison<\/a> (on Linuxes, <code>apt-get install bison<\/code>)<\/li>\n\n\n\n<li><a class=\"ext-link\" href=\"https:\/\/flex.sourceforge.net\/\"><span class=\"icon\">\u200b<\/span>Flex<\/a> (on Linuxes, <code>apt-get install flex<\/code>)<\/li>\n<\/ul>\n\n\n\n<p>On MacOSX, you will also need:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a class=\"ext-link\" href=\"https:\/\/developer.apple.com\/xcode\/\"><span class=\"icon\">\u200b<\/span>Xcode<\/a>; you will most likely need the command line additions, which you get by typing <code>xcode-select --install<\/code> in a Terminal window.<\/li>\n\n\n\n<li>autoconf, automake, and libtool.  Install <a href=\"https:\/\/brew.sh\">HomeBrew<\/a>, then type:<pre class=\"wiki\">brew install autoconf automake libtool <\/pre> <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Compilation proper<\/h2>\n\n\n\n<p>Go to your local svn directory, the one you created when you <a title=\"Download Orchids sources\" href=\"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=21\">downloaded<\/a> the sources.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd $OHOME\/orchids<\/pre>\n\n\n\n<p>Then type:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">autoreconf -vfi\n.\/configure\nmake\n<\/pre>\n\n\n\n<p>This should build OrchIDS in the subdirectory <code>src<\/code> (precisely, <code>$OHOME\/orchids\/src<\/code>). &nbsp; Later, we shall install OrchIDS by typing:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo make install<\/pre>\n\n\n\n<p>You don&#8217;t need the <code>sudo<\/code> if you are root, or if you install into some directory you own.&nbsp; Before that, we should perhaps look at some&nbsp; compilation options.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"CompilationOptions\">Compilation Options<\/h2>\n\n\n\n<p>The <code>configure<\/code> script accepts the following specific options, in addition to standard ones:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>--enable-dmalloc<\/code> : Turn on <code>dmalloc<\/code> (default is off)<\/li>\n\n\n\n<li><code>--enable-htmloutput<\/code> : enable HTML Output (default is on).<\/li>\n\n\n\n<li><code>--enable-debug<\/code> : enable debugging (default is off). Will print a lot of messages at runtime.<\/li>\n\n\n\n<li><code>--enable-gprof<\/code> : enable profiling through gprof (default is off).<\/li>\n\n\n\n<li><code>--enable-prelude<\/code> : compile the prelude module (default is off).<\/li>\n\n\n\n<li><code>--enable-sendmail<\/code> : include email sending primitives (default is off).<\/li>\n\n\n\n<li><code>--enable-xml<\/code> : compile the xml, IDMEF and IODEF modules (default is off).<\/li>\n\n\n\n<li><code>--enable-snmptrap<\/code> : compile the SNMP trap module (default is off).<code><\/code><\/li>\n\n\n\n<li><code>--with-doxygen<\/code> : use doxygen (default is yes).<\/li>\n\n\n\n<li><code>--with-runtime-user<\/code> : to use as user id for runtime (default is <code>nobody<\/code>).<\/li>\n<\/ul>\n\n\n\n<p>Obsolete options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>--enable-preproc<\/code> : enable preprocessor support (default used to be on).&nbsp; Suppressed for security reasons.<\/li>\n\n\n\n<li><code>--enable-demo<\/code>&nbsp;: enable demo mode (default was off). &nbsp;This printed a banner on startup and had a few subtle differences in printing stats. &nbsp;Can still be activated by providing the&nbsp;<code>-v<\/code>&nbsp;option (verbose) at startup.<\/li>\n\n\n\n<li><code>--enable-actmon<\/code> : enable activity monitor (default is off). This is&nbsp;a small character that rotates (-, \\, |, \/, -, etc.) on the screen as events come in. &nbsp;Can still be activated by&nbsp;providing the&nbsp;<code>-m<\/code>&nbsp;option (monitor) at startup.<\/li>\n\n\n\n<li><code>--with-gnuplot<\/code> : use gnuplot (default was&nbsp;yes). &nbsp;Suppressed because OrchIDS no longer has support for reporting graphical info at a prohibitive cost.<\/li>\n\n\n\n<li><code>--with-graphviz-dot<\/code> : use GraphViz dot (default was&nbsp;yes).&nbsp;&nbsp;Suppressed because OrchIDS no longer has support for reporting graphical info at a prohibitive cost.<\/li>\n\n\n\n<li><code>--with-epstopdf<\/code> : use epstopdf (default was&nbsp;yes).&nbsp;&nbsp;Suppressed because OrchIDS no longer has support for reporting graphical info at a prohibitive cost.<\/li>\n\n\n\n<li><code>--with-convert<\/code> : use ImageMagick convert (default was&nbsp;yes).&nbsp;&nbsp;Suppressed because OrchIDS no longer has support for reporting graphical info at a prohibitive cost.<\/li>\n\n\n\n<li><code>--with-swiprolog<\/code> : use SWI Prolog and compile the Prolog and Prolog history modules (default was&nbsp;yes). &nbsp;Made obsolete by the new in-memory database primitives.<\/li>\n\n\n\n<li><code>--enable-pcre<\/code> : enable Perl-compatible regular expression matching (default was&nbsp;off). &nbsp;Made obsolete by the new proprietary regexp library (which by the way is not Perl-compatible).<\/li>\n\n\n\n<li><code>--enable-bsm<\/code> : compile the BSM module (default is on); this is obsolete, the right module that handles BSM is the OpenBSM module.<\/li>\n<\/ul>\n\n\n\n<p>Now you&#8217;ve earned the right to play a bit with Orchids: go to the <a href=\"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=502\">Getting started with Orchids<\/a> page.<\/p>\n\n\n\n<p>If you prefer to learn how you can tweak Orchids, and how it works, go to the <a href=\"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=48\">configuration<\/a> page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dependencies Before you compile, you should make sure you have what&#8217;s required: The following list of packages is extremely recommended, although Orchids should compile and work without them: You will also need to following tools: On MacOSX, you will also need: Compilation proper Go to your local svn directory, the one you created when you &hellip; <a href=\"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=32\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Compile<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-32","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/pages\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":30,"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/pages\/32\/revisions"}],"predecessor-version":[{"id":752,"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/pages\/32\/revisions\/752"}],"wp:attachment":[{"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}