Ad Widget

Collapse

php5-gd extension without x11 on FreeBSD 6.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baroo
    Junior Member
    • Jul 2007
    • 6

    #1

    php5-gd extension without x11 on FreeBSD 6.2

    Hi
    I`am newbe in Zabbix and I want to install it on FreeBSD 6.2 machine. Do I really need to install php5-gd extension with all other ports required by this extension:

    php5-gd-5.2.3
    The gd shared extension for php
    Long description : Sources : Package : Changes : Download
    Maintained by: [email protected]
    Requires: autoconf-2.59_2, compositeproto-0.3.1, damageproto-1.1.0_2, expat-2.0.0_1, fixesproto-4.0, fontcacheproto-0.1.2, fontconfig-2.4.2_2,1, fontsproto-2.0.2, freetype2-2.2.1_2, inputproto-1.3.2, jpeg-6b_4, kbproto-1.0.3, libFS-1.0.0, libICE-1.0.3,1, libSM-1.0.3,1, libX11-1.1.2_1,1, libXScrnSaver-1.1.2, libXTrap-1.0.0, libXau-1.0.3_2, libXaw-1.0.3,1, libXcomposite-0.3.2,1, libXcursor-1.1.8_1, libXdamage-1.1.1, libXdmcp-1.0.2, libXevie-1.0.2, libXext-1.0.3,1, libXfixes-4.0.3, libXfont-1.2.8,1, libXfontcache-1.0.4, libXft-2.1.12, libXi-1.0.2,1, libXinerama-1.0.2,1, libXmu-1.0.3,1, libXp-1.0.0,1, libXpm-3.5.6_1, libXprintAppUtil-1.0.1, libXprintUtil-1.0.1, libXrandr-1.2.1, libXrender-0.9.2, libXres-1.0.3_1, libXt-1.0.5, libXtst-1.0.2, libXv-1.0.3,1, libXvMC-1.0.4, libXxf86dga-1.0.1, libXxf86misc-1.0.1, libXxf86vm-1.0.1, libdmx-1.0.2, libfontenc-1.0.4, libiconv-1.9.2_2, liboldX-1.0.1, libxkbfile-1.0.4, libxkbui-1.0.2, libxml2-2.6.29, m4-1.4.9, perl-5.8.8, php5-5.2.3, pkg-config-0.22, png-1.2.18, printproto-1.0.3, randrproto-1.2.1, recordproto-1.13.2, renderproto-0.9.2, scrnsaverproto-1.1.0, t1lib-5.1.1_1,1, trapproto-3.4.3, videoproto-2.2.2, xextproto-7.0.2, xf86dgaproto-2.0.2, xf86miscproto-0.9.2, xf86vidmodeproto-2.2.2, xineramaproto-1.1.2, xorg-libraries-7.2_2, xproto-7.0.10, xtrans-1.0.3

    I think that It looks horrible. Are there any tips to deal with that?

    Thanks for any advices
  • aalexanderr
    Junior Member
    • Jul 2007
    • 26

    #2
    Originally posted by baroo
    Hi
    I`am newbe in Zabbix and I want to install it on FreeBSD 6.2 machine. Do I really need to install php5-gd extension with all other ports required by this extension:

    php5-gd-5.2.3
    The gd shared extension for php
    Long description : Sources : Package : Changes : Download
    Maintained by: [email protected]
    Requires: xxxxxx

    I think that It looks horrible. Are there any tips to deal with that?

    Thanks for any advices
    You don't need to install all this stuff.

    Look at first thread HOW to Install Zabbix on Freebsd 6.2: http://www.zabbix.com/forum/showthread.php?t=6721

    You can add a freetype support in gd, but this is not necessory. If you already have installed perl 5.8.8 just follow next steps : install this libraries & php from source. That's all

    6) Install zlib.
    #cd ../zlib-1.2.3
    #./configure && make && make install

    7) Install png libraries.
    #cd ../libpng-2.1.18
    #./configure && make && make install

    8) Install jpeg libraries.
    #cd ../jpeg-6b
    #./configure --prefix=/usr/local --enable-shared --enable-static && make && make install

    9) Install gd libraries. png - yes, jpeg - yes.
    #cd ../gd-2.0.35
    #./configure --x-includes=/usr/local/include --x-libraries=/usr/local/lib && make && make install

    10) Install php module for apache2.
    #cd ../php-5.2.3
    #./configure --with-mysql=/usr/local/mysql --enable-bcmath --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib --with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi --disable-ipv6 && make && make install
    #cp php.ini-recommended /usr/local/lib/php.ini
    #ee /usr/local/lib/php.ini
    doc_root = "/usr/local/apache2/htdocs/"
    max_execution_time = 300
    file_uploads = on (if file_uploads=off when we can't upload images and create icons and backgrounds)
    date.timezone = Europe/Moscow
    #ls /usr/local/apache2/modules
    httpd.exp libphp5.so
    Last edited by aalexanderr; 12-07-2007, 06:10.

    Comment

    • mrdarcy
      Junior Member
      Zabbix Certified Specialist
      • Oct 2006
      • 5

      #3
      Originally posted by baroo
      Hi
      I`am newbe in Zabbix and I want to install it on FreeBSD 6.2 machine. Do I really need to install php5-gd extension with all other ports required by this extension:
      put the following in your /etc/make.conf

      WITHOUT_X11=yes

      then re-install the port

      Comment

      • baroo
        Junior Member
        • Jul 2007
        • 6

        #4
        Originally posted by mrdarcy
        put the following in your /etc/make.conf

        WITHOUT_X11=yes

        then re-install the port

        Thanks for that advice. It`s working. Compiling from the sources is not as good as using ports collections because of upgrading simplicity.

        Comment

        • aalexanderr
          Junior Member
          • Jul 2007
          • 26

          #5
          Originally posted by baroo
          Thanks for that advice. It`s working. Compiling from the sources is not as good as using ports collections because of upgrading simplicity.
          I don't think so.. I like do all by my own hands

          Yes install from ports the easy way to install program, but optimization and configuration of each component give more speed and take less space on a disk.

          Comment

          • mrdarcy
            Junior Member
            Zabbix Certified Specialist
            • Oct 2006
            • 5

            #6
            Originally posted by aalexanderr
            Yes install from ports the easy way to install program
            Not only just an easier way, installing from the ports means better compatibility with the freebsd system in terms of the respected freebsd file location standards, dependency requirements and possibly required patches that are included when you compile from the ports. All this resulting in a potentially more stable, reliable and safer environment. Not to mention file dependency management, upgrading (portupgrade) and security checks (portaudit), which are a piece of cake when using this system.

            Originally posted by aalexanderr
            but optimization and configuration of each component give more speed
            Ports are not binary packages, the ports system uses the same sources you use to install software and so most standard configuration options can be used from the command line, e.g. this is how one could install mysql server 5.0 using the ports system:

            #zabbix(root) /usr/ports/databases/mysql50-server> make WITH_CHARSET=koi8r BUILD_OPTIMIZED=yes BUILD_STATIC=yes install && make clean

            If necessary, more options could be defined inside the 'Makefile' of that port, e.g. these are the default values defined for mysql:

            CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
            --without-debug \
            --without-readline \
            --without-libedit \
            --without-bench \
            --without-extra-tools \
            --with-libwrap \
            --with-mysqlfs \
            --with-low-memory \
            --with-comment='FreeBSD port: ${PKGNAME}' \
            --enable-thread-safe-client

            Originally posted by aalexanderr
            and take less space on a disk
            I'm not sure if disk space is an issue anymore these days but true, the ports collection will take up about 800MB of HD space.

            Comment

            Working...