Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Installing/Building on CentOS 5/6/7

Installing/Building on CentOS 5/6/7

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 41.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    terefang
    wrote on last edited by
    #1

    giving back to the community ...

    install

    yum -y groupinstall 'Development Tools'
    yum -y install openldap-devel expat-devel zlib-devel mysql-devel sqlite-devel
    

    here is a rpm spec file verfied to build under CentOS 5+6+7:

    Name:           netxms
    Version:        2.0.6
    Release:        1.el5
    Summary:        NETXMS
    
    Group:          NETXMS
    License:        GPLv2+
    URL:            NETXMS
    Source0:        netxms-2.0.6.tar.gz
    BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    
    BuildRequires:	tar
    BuildRequires:	gzip
    BuildRequires:	curl
    BuildRequires:	jdk
    BuildRequires:	openldap-devel
    BuildRequires:	expat-devel
    BuildRequires:	zlib-devel
    BuildRequires:	mysql-devel
    BuildRequires:	sqlite-devel
    #BuildRequires:	postgresql-devel
    
    Requires:	openldap-libs
    Requires:	expat
    Requires:	sqlite
    Requires:	mysql-libs
    
    %description
    NETXMS
    
    %prep
    %setup -q
    ./configure \
    --prefix=/opt/netxms \
    --enable-unicode \
    --with-server \
    --with-client \
    --with-client-proxy \
    --with-sdk \
    --with-agent \
    --with-snmp \
    --with-sqlite \
    --with-mysql
    
    
    %build
    make %{?_smp_mflags}
    
    
    %install
    rm -rf %{buildroot}
    make install DESTDIR=%{buildroot}
    mkdir %{buildroot}/opt/netxms/sbin/
    cp contrib/startup/redhat/netxmsd %{buildroot}/opt/netxms/sbin/
    
    
    %clean
    rm -rf %{buildroot}
    
    %files
    %defattr(-,root,root,-)
    %doc
    /opt/netxms/
    
    %changelog
    
    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      Thank you.

      Can you please specify license (GPL, MIT, Public domain) - I'll include it into official packages repository.

      1 Reply Last reply
      0
      • T
        T
        terefang
        wrote on last edited by
        #3

        MIT

        Copyright (c) 2016, Alfred Reibenschuh
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is furnished
        to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
        WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
        CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups