Ad Widget

Collapse

Solaris 2.8 install issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • youngryan1
    Junior Member
    • Jul 2006
    • 5

    #1

    Solaris 2.8 install issues

    Anyone have hints on how to get past the errors below? My configure had similar warnings as other posts:

    configure --enable-server --enable-agent --with-mysql --with-ne
    t-snmp
    <snip>
    configure: WARNING: resolv.h: present but cannot be compiled
    configure: WARNING: net/if.h: present but cannot be compiled
    <snip>

    % make
    Making all in src
    make[1]: Entering directory `/opt/home/rhoffma2/bob/apps/zabbix-1.1/src'
    Making all in libs
    make[2]: Entering directory `/opt/home/rhoffma2/bob/apps/zabbix-1.1/src/libs'
    Making all in zbxcommon
    make[3]: Entering directory `/opt/home/rhoffma2/bob/apps/zabbix-1.1/src/libs/zbx
    common'
    make[4]: Entering directory `/opt/home/rhoffma2/bob/apps/zabbix-1.1/src/libs/zbx
    common'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT base64.o -MD -M
    P -MF ".deps/base64.Tpo" -c -o base64.o base64.c; \
    then mv -f ".deps/base64.Tpo" ".deps/base64.Po"; else rm -f ".deps/base6
    4.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT misc.o -MD -MP
    -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
    then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"
    ; exit 1; fi
    In file included from ../../../include/common.h:23,
    from misc.c:1:
    ../../../include/sysinc.h:83:3: invalid preprocessing directive ##
    make[4]: *** [misc.o] Error 1
    make[4]: Leaving directory `/opt/home/rhoffma2/bob/apps/zabbix-1.1/src/libs/zbxc
    ommon'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/opt/home/rhoffma2/bob/apps/zabbix-1.1/src/libs/zbxc
    ommon'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/opt/home/rhoffma2/bob/apps/zabbix-1.1/src/libs'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/opt/home/rhoffma2/bob/apps/zabbix-1.1/src'
    make: *** [all-recursive] Error 1
    %
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Please show us what is in line 83 of include/sysinc.h. Thanks!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • youngryan1
      Junior Member
      • Jul 2006
      • 5

      #3
      Solaris 2.8 install issues

      I tried commenting out ldap.h in sysinc.h rather than removing. Once removed, was able to compile.

      However, after configure/make/make install, /etc/zabbix didn't get built. Any clue why not? The results of make and make install did not see to indicate an attempt to install there with failure.

      Comment

      • stever
        Member
        • Jun 2006
        • 36

        #4
        I think I remember having to create the dir (/etc/zabbix) and copy in config files manually - its somewhere in the install docs or release notes.

        Comment

        • youngryan1
          Junior Member
          • Jul 2006
          • 5

          #5
          Thanks! Found this mentioned in another thread. Sorry.

          I'm getting close. Have the following working:
          - apache up, can view index.html in htdocs/
          - zabbix up, no errors in /tmp/zabbix_server.log

          When loading config.php with browser I get a blank screen.

          % grep -i php httpd.conf
          LoadModule php5_module modules/libphp5.so
          AddType application/x-httpd-php .php
          AddType application/x-httpd-php-source .phps
          %

          % ls /usr/local/apache2/modules/*php*
          /usr/local/apache2/modules/libphp5.so

          % pkginfo SMCphp
          application SMCphp php

          I made no changes to php.ini when installing PHP pkg from sunfreeware.

          % tail apache2.error_log
          [client 1.131.4.95] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://1.178.70.141/zabbix/php/
          [client 1.131.4.95] PHP Warning: Unknown: Failed opening '/opt/local/sol2.8/apache2/htdocs/zabbix/php/config.php' for inclusion (include_path='.:/usr/local/php/lib/php') in Unknown on line 0, referer: http://1.178.70.141/zabbix/php/

          Comment

          Working...