Installing on Raspberry (Raspbian)

Started by mcornille, June 21, 2014, 10:36:24 AM

Previous topic - Next topic

mcornille

Hi all,

I read in another topic that someone was able to compile the netxms agen on a raspberry i tried but failed. as the other topic is closed i am creating a new one.
Here are the steps i took:

1) Download Netxms Full Source from netxms site: https://www.netxms.org/download ( netxms-1.2.14.tar.gz )
2) Extract on computer en transfer to Raspbian using SFTP
   a) put the sources in /tmp/netxms
3) Open ssh to Raspberry
4) sudo apt-get update
5) sudo apt-get upgrade
6) sudo apt-get install libssl-dev
7) go to /tmp/netxms
8) sudo sh configure --with-agent --libdir=/usr/lib --disable-iconv (This runs without any error)
9) sudo make
Getting alot of the following errors
Quote
sender.cpp:253:80: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:253:80: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:283:102: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:283:102: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:306:102: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:306:102: warning: use of 'h' length modifier with 's' type character [-Wformat]
Quote
drbd.cpp:189:66: warning: use of 'h' length modifier with 'c' type character [-Wformat]
  CXX    linux_la-hddinfo.lo
  CXX    linux_la-iostat.lo
iostat.cpp: In function 'void ParseIoStat(char*)':
iostat.cpp:118:127: warning: use of 'h' length modifier with 's' type character [-Wformat]
  CXX    linux_la-linux.lo
  CXX    linux_la-net.lo
net.cpp: In function 'LONG H_NetIfList(const char*, const char*, StringList*)':
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]

at the end i get this:
Quote
../../../tools/create_ssa_list.sh "" > static_subagents.cpp
/bin/bash: ../../../tools/create_ssa_list.sh: Permission denied
make[4]: *** [static_subagents.cpp] Error 126
make[4]: Leaving directory `/tmp/netxms/src/agent/core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/netxms/src/agent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/netxms/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/netxms'
make: *** [all] Error 2
10) sudo make install
11) cp contrib/nxagent.conf-dist /etc/nxagentd.conf
12) sudo /usr/local/bin/nxagentd –d

So after this i looked in the usr/local/bin but there is no nxagentd



am i missing something or did i forget something?

any info, tips or help is welcome :)

grtz,

Michiel

Victor Kirhenshtein

Hi!

Check that tools/create_ssa_list.sh has executable permission.

Best regards,
Victor